Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92294 invoked by uid 1010); 14 Oct 2005 07:20:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92279 invoked from network); 14 Oct 2005 07:20:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2005 07:20:13 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:49272] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CB/9A-04211-B2C5F434 for ; Fri, 14 Oct 2005 03:20:12 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j9E7K9Oe016796; Fri, 14 Oct 2005 09:20:09 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j9E7K3ix016782; Fri, 14 Oct 2005 09:20:03 +0200 Date: Fri, 14 Oct 2005 09:20:02 +0200 (CEST) X-X-Sender: derick@localhost To: Antony Dovgal cc: Marcus Bointon , PHP Internals In-Reply-To: <434E9306.6050909@zend.com> Message-ID: References: <2794B48D-7B1B-41AC-B9DA-04210699BD14@synchromedia.co.uk> <434E9306.6050909@zend.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] Globals unavailable, require oddity From: derick@php.net (Derick Rethans) On Thu, 13 Oct 2005, Antony Dovgal wrote: > On 13.10.2005 20:51, Marcus Bointon wrote: > > > in a.inc.php: > > > > > $a = 1; > > ?> > > > > in b.class.php: > > > > > require 'a.inc.php'; > > class b { > > function test() { > > global $a; > > echo $a; > > } > > } > > ?> > > Works fine here. I can't reproduce it either with 4.4.0rc2-dev - and nothing from valgrind. Our huge application doesn't have any problems with it either. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org