mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix bug #62271 test bug - ext/wddx/tests/bug48562.phpt
This commit is contained in:
parent
b55e69285b
commit
a18cede1c5
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ $a['x'] = &$a;
|
||||||
|
|
||||||
var_dump(wddx_serialize_vars($a));
|
var_dump(wddx_serialize_vars($a));
|
||||||
|
|
||||||
|
// replace $a - the recursion detection seems to be causing $a to be not an array here, maybe its internally a pointer
|
||||||
|
// replacing $a with a new array() allows this test to still check for 2 things
|
||||||
|
// 1. recursion detection in &$a;
|
||||||
|
// 2. recursion detection in adding $a to itself and then serializing $a
|
||||||
|
// the one thing the test won't check is using $a as an array after doing &$a; which isn't really a wddx problem.
|
||||||
|
$a = array();
|
||||||
$a['x'] = 'foo';
|
$a['x'] = 'foo';
|
||||||
$a['x'] = $a;
|
$a['x'] = $a;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue