Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

array_merge: different behaviour between servers 1

Status
Not open for further replies.

TonyGroves

Programmer
Aug 13, 2003
2,389
IE
I'm totally new to PHP, but I've taken over the maintenance of a website which uses PHP, and have copied it for testing purposes to my local Debian server which runs Apache 2.2 with the PHP 5.2.0 module. I notice that on my local server, the PHP function array_merge($arg1,$arg2) aborts if the first argument is undefined, but on the live server (I don't know which PHP version it runs, but I suspect it's quite old) it works as you'd expect. It's no problem to patch the script to suit, but if it was possible to set some global configuration option instead, that would better.

So, can somebody tell me is there some way to set a global option to handle that type of situation, or is there something else I can do? Remember, I'm new to PHP!

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top