Re: New zend_compile.c to solve all of the duplicate function problems
| From: | Edin Kadribasic | Date: | Fri, 19 Oct 2001 10:52:13 +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-68331@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.
Now that's totally weird. I get output like this:
[ek@scpno test]$ ../php -v
4.1.0RC1
[ek@scpno test]$ ../php -q test.php
Function test()
Can anyone reproduce this?
Edin