mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- update compact_variation1.phpt to take into account fix for bug #29044
This commit is contained in:
parent
f238cbb0a0
commit
566fa19dec
1 changed files with 22 additions and 2 deletions
|
@ -29,12 +29,22 @@ var_dump (compact ($arr2));
|
||||||
var_dump (compact ($arr3));
|
var_dump (compact ($arr3));
|
||||||
echo "Done";
|
echo "Done";
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECTF--
|
||||||
*** Testing compact() : usage variations - arrays containg references ***
|
*** Testing compact() : usage variations - arrays containg references ***
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
array(1) {
|
array(1) {
|
||||||
["a"]=>
|
["a"]=>
|
||||||
int(1)
|
int(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
array(2) {
|
array(2) {
|
||||||
["a"]=>
|
["a"]=>
|
||||||
int(1)
|
int(1)
|
||||||
|
@ -46,12 +56,22 @@ array(1) {
|
||||||
int(3)
|
int(3)
|
||||||
}
|
}
|
||||||
Done
|
Done
|
||||||
--UEXPECT--
|
--UEXPECTF--
|
||||||
*** Testing compact() : usage variations - arrays containg references ***
|
*** Testing compact() : usage variations - arrays containg references ***
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
array(1) {
|
array(1) {
|
||||||
[u"a"]=>
|
[u"a"]=>
|
||||||
int(1)
|
int(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
|
|
||||||
|
Warning: compact(): recursion detected in %s on line %d
|
||||||
array(2) {
|
array(2) {
|
||||||
[u"a"]=>
|
[u"a"]=>
|
||||||
int(1)
|
int(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue