note 96030 modified in migration5.incompatible by danbrown

From: Date: Thu, 04 Feb 2010 02:05:42 +0000
Subject: note 96030 modified in migration5.incompatible by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165644@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 <?php 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. --was-- 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. http://php.net/manual/en/migration5.incompatible.php

« previous php.notes (#165644) next »