Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33179 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13719 invoked by uid 1010); 16 Nov 2007 20:54:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13703 invoked from network); 16 Nov 2007 20:54:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2007 20:54:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:48710] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/8A-51194-7930E374 for ; Fri, 16 Nov 2007 15:54:47 -0500 Received: from [65.207.49.92] (port=57466) by scottsdale.servershost.net with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1It8D8-00058F-PS for internals@lists.php.net; Fri, 16 Nov 2007 14:54:46 -0600 To: internals@lists.php.net In-Reply-To: <8D.46.01128.768AD374@pb1.pair.com> References: <8D.46.01128.768AD374@pb1.pair.com> Content-Type: text/plain Date: Fri, 16 Nov 2007 15:53:11 -0500 Message-ID: <1195246391.21084.15.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Question about superglobals From: sam@sambarrow.com (Sam Barrow) I am trying to develop a patch for personal use to enable custom superglobals. I seemed to have had it working, but am I allowed to specify superglobals in my script, or do they have to be specified in an ini file or statically in the PHP code? I created a superglobal keyword and a function that calls zend_register_auto_global upon the use of this keyword, but it doesn't work. It calls zend_register_auto_global correctly and passes the variable name and length of the variable name, but when i try to access the variable inside a function in my PHP script, it is undefined. However I am able to hard code my superglobal into the PHP source files and it works. Is there some type of restriction on setting superglobals at runtime, or does the structure of the PHP interpreter not allow this, or am I doing something wrong? Thanks in advanced for your help.