ZendEngine2 and $argc,$argv

From: Date: Mon, 24 Jun 2002 21:04:25 +0000
Subject: ZendEngine2 and $argc,$argv
Groups: php.dev 
Request: Send a blank email to php-dev+get-85553@lists.php.net to get a copy of this message
Since i use ZendEngine2 i cannot use global $argc,$argv. Example: function somefunction() {
        global $argc, $argv;
} worked before ZE2, PHP-3.0-dev now i get: Fatal error - Can't assign by reference non-referencable value! function somefunction() {
        $argc = $GLOBALS['argc'];
        $argv = $GLOBALS['argv'];
} works just fine. I assume global creates a reference and checks if the variable is writeable. But a readonly variable or constant *should* also be referenceable. regards marcus

« previous php.dev (#85553) next »