Re: New zend_compile.c to solve all of the duplicate function problems

From: Date: Fri, 19 Oct 2001 10:42:02 +0000
Subject: Re: New zend_compile.c to solve all of the duplicate function problems
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68330@lists.php.net to get a copy of this message
> I guess I do not understand. The following example works just fine in PHP > 4.1.0RC1: > > test.php > ===== > <?php > include 'testlib.php'; > include 'testlib.php'; > test(); > ?> > testlib.php > ====== > <?php > if (!defined('_TESTLIB_PHP')) { > define ('_TESTLIB_PHP', 1); > > function test() { > print "Function test()\n"; > } > } > ?> Doesn't work in my 4.1 here. I get redefined function errors. -Rasmus

« previous php.dev (#68330) next »