Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62822 invoked from network); 18 Mar 2003 08:37:07 -0000 Received: from unknown (HELO marco2.bezeqint.net) (192.115.106.14) by pb1.pair.com with SMTP; 18 Mar 2003 08:37:07 -0000 Received: from mr2.bezeqint.net (pip-17.bezeqint.net [192.115.106.17]) by marco2.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id 3226255BF for ; Tue, 18 Mar 2003 10:37:03 +0200 (IST) Received: from mail.zend.com (bzq-117-235-230.cust.bezeqint.net [192.117.235.230]) by mr2.bezeqint.net (Mirapoint Messaging Server MOS 3.2.2-GA) with SMTP id AUO51036; Tue, 18 Mar 2003 10:36:53 +0200 (IST) Received: (qmail 11260 invoked from network); 18 Mar 2003 08:36:49 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 18 Mar 2003 08:36:49 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20030318103438.06243f20@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 18 Mar 2003 10:36:51 +0200 To: Andrei Zmievski Cc: PHP Internals In-Reply-To: <20030317215120.GA29815@hyperion.gravitonic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] $_SERVER registration issue From: zeev@zend.com (Zeev Suraski) References: <20030317215120.GA29815@hyperion.gravitonic.com> At 23:51 17/03/2003, Andrei Zmievski wrote: >Today I tried to run PHP-GTK with ZE2 changes against current CVS and it >segfaulted. I traced it to the fact that >PG(http_globals)[TRACK_SERVER_VARS] is no longer available if $_SERVER >is not present in the PHP code, due to the changes Zeev (I think) made >in order to improve efficiency. I don't quite agree with the way it >works right now. Well, it works well though :) All you have to do is hint PHP that you're going to touch it, and it will be available for you immediately. To do that, simply call: zend_is_auto_global("_SERVER", sizeof("_SERVER")-1 TSRMLS_CC); and you're done. ext/standard/info.c already makes use of this. Zeev