#46283 [Fbk->Opn]: array_merge_recursive() Warning recursion detected in...
| From: | name at email dot com | Date: | Fri, 28 Nov 2008 20:04:03 +0000 |
| Subject: | #46283 [Fbk->Opn]: array_merge_recursive() Warning recursion detected in... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131459@lists.php.net to get a copy of this message | ||
ID: 46283
User updated by: name at email dot com
Reported By: name at email dot com
-Status: Feedback
+Status: Open
Bug Type: Arrays related
Operating System: *
PHP Version: 5CVS-2008-11-17
New Comment:
@lbarnaud
you are correct about the warning.
it might be unrelated to this problem, i thought it was.
about the weird output,
i thought the function supposed to preserve the object, please correct
me if im wrong.
thanks
Previous Comments:
------------------------------------------------------------------------
[2008-11-26 02:41:32] lbarnaud@php.net
I can't reproduce with 5.3CVS (no warnings).
The weird output is caused by two null bytes and the class name added
to private properties. You get the same output when casting a class to
an array.
------------------------------------------------------------------------
[2008-11-17 13:42:33] name at email dot com
@jani
PHP Version 5.2.7RC4-dev
Build Date Nov 17 2008 11:39:11
array(1) {
["name"]=>
array(1) {
["�A�variable"]=>
array(2) {
[0]=>
string(3) "foo"
[1]=>
string(3) "foo"
}
}
}
------------------------------------------------------------------------
[2008-11-12 13:10:31] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-10-29 15:18:38] name at email dot com
@jani
1. passing two arrays.
2. they both contain a reference to an object.
3. i expect the function to preserve the structure of the object.
4. notice: ["�A�variable"] <-- whats that?
------------------------------------------------------------------------
[2008-10-26 19:19:46] jani@php.net
What's the problem here? You're passing an object to a function
expecting arrays and think it will work..?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/46283
--
Edit this bug report at http://bugs.php.net/?id=46283&edit=1