Re: ZendEngine2 and $argc,$argv

From: Date: Tue, 25 Jun 2002 04:22:14 +0000
Subject: Re: ZendEngine2 and $argc,$argv
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85561@lists.php.net to get a copy of this message
Can you try the latest CVS version? It should be fixed there. Let me know... Thanks, Andi At 11:04 PM 6/24/2002 +0200, Marcus Boerger wrote:
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 (#85561) next »