Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96216 invoked from network); 17 Mar 2003 21:59:56 -0000 Received: from unknown (HELO carmine.bestweb.net) (209.94.102.73) by pb1.pair.com with SMTP; 17 Mar 2003 21:59:56 -0000 Received: from [192.168.1.100] (unknown [216.179.71.153]) by carmine.bestweb.net (Postfix) with ESMTP id 03E60239BF; Mon, 17 Mar 2003 17:01:02 -0500 (EST) To: Andrei Zmievski Cc: PHP Internals , Zeev Suraski In-Reply-To: <20030317215120.GA29815@hyperion.gravitonic.com> References: <20030317215120.GA29815@hyperion.gravitonic.com> Content-Type: text/plain Organization: Message-ID: <1047937312.17590.1.camel@hasele> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 17 Mar 2003 16:42:03 -0500 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] $_SERVER registration issue From: sterling@bumblebury.com (Sterling Hughes) On Mon, 2003-03-17 at 16:51, 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? > We should add internal constructors for accessing these variables. -Sterling > -Andrei http://www.gravitonic.com/ > * "UNIX, isn't that some archaic form of DOS?" - our job applicant * -- "First they ignore you, then they laugh at you, then they fight you, then you win." - Gandhi