note 96030 added to migration5.incompatible
| From: | michael dot darmousseh at gmail dot com | Date: | Thu, 04 Feb 2010 01:53:00 +0000 |
| Subject: | note 96030 added to migration5.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165643@lists.php.net to get a copy of this message | ||
Hack way to fix the array_merge problem so that it works with your existing php4 code
function array_merge5()
{
$args = func_get_args();
foreach($args as $key=>$arg)
$args[$key] = (array) $arg;
return call_user_func_array("array_merge", $args);
}
just put it somewhere completely accessible to your codebase and change all of your calls to
array_merge to array_merge5.
----
Server IP: 69.147.83.197
Probable Submitter: 76.196.69.110
----
Manual Page -- http://www.php.net/manual/en/migration5.incompatible.php
Edit -- https://master.php.net/note/edit/96030
Del: integrated -- https://master.php.net/note/delete/96030/integrated
Del: useless -- https://master.php.net/note/delete/96030/useless
Del: bad code -- https://master.php.net/note/delete/96030/bad+code
Del: spam -- https://master.php.net/note/delete/96030/spam
Del: non-english -- https://master.php.net/note/delete/96030/non-english
Del: in docs -- https://master.php.net/note/delete/96030/in+docs
Del: other reasons-- https://master.php.net/note/delete/96030
Reject -- https://master.php.net/note/reject/96030
Search -- https://master.php.net/manage/user-notes.php