01-24-2008, 01:14 PM
Probably hopeless, but I'll try asking anyway.
On a PHP 4.3.11 server, I was a little befuddled with this:
The above code would basically cause the script to run forever (well, the page would never load).
I found the issue to be the unset() statement - commenting it out, the script would run fine.
Anyone have any ideas as to why this happens?
On a PHP 4.3.11 server, I was a little befuddled with this:
PHP Code:
function somefunction()
{
global $somevariable;
if(is_array($somevariable))
{
// do some stuff
unset($GLOBALS['somevariable']);
}
}
The above code would basically cause the script to run forever (well, the page would never load).
I found the issue to be the unset() statement - commenting it out, the script would run fine.
Anyone have any ideas as to why this happens?