Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87441 invoked from network); 18 Mar 2003 05:15:53 -0000 Received: from unknown (HELO ogi.bezeqint.net) (192.115.106.62) by pb1.pair.com with SMTP; 18 Mar 2003 05:15:53 -0000 Received: from mr5.bezeqint.net (pip-17.bezeqint.net [192.115.106.17]) by ogi.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id E31E713E6D for ; Tue, 18 Mar 2003 07:14:14 +0200 (IST) Received: from mail.zend.com (bzq-117-235-230.cust.bezeqint.net [192.117.235.230]) by mr5.bezeqint.net (Mirapoint Messaging Server MOS 3.2.2-GA) with SMTP id ACZ24816; Tue, 18 Mar 2003 07:15:47 +0200 (IST) Received: (qmail 4466 invoked from network); 18 Mar 2003 05:15:41 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 18 Mar 2003 05:15:41 -0000 Message-ID: <5.1.0.14.2.20030318071611.03d60cd0@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 18 Mar 2003 07:16:49 +0200 To: Andrei Zmievski , PHP Internals Cc: Zeev Suraski 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: andi@zend.com (Andi Gutmans) References: <20030317215120.GA29815@hyperion.gravitonic.com> At 04:51 PM 3/17/2003 -0500, 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. My extension needs access to the $_SERVER['argv'] and >$_SERVER['argc'] variables internally, even if the user code doesn't. >How am I supposed to retrieve those variable if they aren't even >registered? Just out of curiosity (I don't think it's a long term fix) but does eval_string()'ing a string with $_SERVER['argv'] solve the problem? Andi