Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7951 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55227 invoked by uid 1010); 18 Feb 2004 14:27:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55202 invoked by uid 1007); 18 Feb 2004 14:27:57 -0000 To: internals@lists.php.net Date: Wed, 18 Feb 2004 15:27:56 +0100 Message-ID: <20040218152756.1f958513@localhost.localdomain> Organization: Freelancer X-Newsreader: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Posted-By: 213.196.192.45 Subject: HEAD, include(_once), bug in variable declaration From: paj@pearfr.org (Pierre-Alain Joye) Hello, Having the scripts pasted below: include_once fails to declare the variable 'foo'. Replace include_once by include and it works. I got the same behavior using require and require_once. Am I wrong to see that as a bug? inc.php -------- testinc.php ----------- hth pierre