Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74792 invoked by uid 1010); 13 Oct 2005 17:02:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74777 invoked from network); 13 Oct 2005 17:02:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2005 17:02:56 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:33607] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7A/C9-18540-E339E434 for ; Thu, 13 Oct 2005 13:02:55 -0400 Received: (qmail 8363 invoked from network); 13 Oct 2005 17:02:50 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 13 Oct 2005 17:02:50 -0000 Message-ID: <434E9306.6050909@zend.com> Date: Thu, 13 Oct 2005 21:01:58 +0400 User-Agent: Thunderbird 1.4.1 (X11/20051006) MIME-Version: 1.0 To: Marcus Bointon CC: PHP Internals References: <2794B48D-7B1B-41AC-B9DA-04210699BD14@synchromedia.co.uk> In-Reply-To: <2794B48D-7B1B-41AC-B9DA-04210699BD14@synchromedia.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Globals unavailable, require oddity From: antony@zend.com (Antony Dovgal) 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. > require_once 'Config.php'; > $a = new Config; > ?> > > Fatal error: Class 'Config' not found Use absolute path everywhere ? I can't reproduce it either. -- Wbr, Antony Dovgal