Re: ZendEngine2 and $argc,$argv
| From: | (Marcus Börger) | Date: | Tue, 25 Jun 2002 08:58:51 +0000 |
| Subject: | Re: ZendEngine2 and $argc,$argv | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85571@lists.php.net to get a copy of this message | ||
Works now, THX
marcus
At 06:22 25.06.2002, Andi Gutmans wrote:
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