php: fiexed unpacker

This commit is contained in:
advect 2010-10-30 16:06:50 +09:00
parent b4ae6bf82c
commit bad69fd397
33 changed files with 2206 additions and 742 deletions

View file

@ -3,8 +3,8 @@ Cyclic array test
--INI--
--SKIPIF--
<?php
if (version_compare(PHP_VERSION, '5.3.3') >= 0) {
echo "skip tests in PHP 5.3.2 and lower";
if (version_compare(PHP_VERSION, '5.3.2') <= 0) {
echo "skip tests in PHP 5.3.3 or newer";
}
--FILE--
<?php
@ -62,17 +62,7 @@ array(2) {
string(1) "e"
}
["f"]=>
&array(2) {
["a"]=>
array(2) {
["b"]=>
string(1) "c"
["d"]=>
string(1) "e"
}
["f"]=>
*RECURSION*
}
*RECURSION*
}
}
OK
@ -84,17 +74,7 @@ array(1) {
[1]=>
int(2)
[2]=>
array(1) {
["foo"]=>
&array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
*RECURSION*
}
}
*RECURSION*
}
}
array(1) {
@ -107,17 +87,7 @@ array(1) {
[2]=>
array(1) {
["foo"]=>
&array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
array(1) {
["foo"]=>
*RECURSION*
}
}
*RECURSION*
}
}
}
@ -131,17 +101,7 @@ array(1) {
[2]=>
array(1) {
["foo"]=>
&array(3) {
[0]=>
int(1)
[1]=>
string(1) "b"
[2]=>
array(1) {
["foo"]=>
*RECURSION*
}
}
*RECURSION*
}
}
}