Re: New zend_compile.c to solve all of the duplicate function problems
| From: | Daniel Beckham | Date: | Fri, 19 Oct 2001 14:19:36 +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-68396@lists.php.net to get a copy of this message | ||
By all means, if you have a decent proposal that doesn't involve exclusively
using include_once() or if/endif everywhere possible, we would love to hear
it.
Daniel
----- Original Message -----
From: "Stanislav Malyshev" <stas@zend.com>
To: "Rasmus Lerdorf" <rasmus@php.net>
Cc: "Daniel Beckham" <danbeck@dealnews.com>; "Brian Moon"
<brianm@dealnews.com>; "PHP Development" <php-dev@lists.php.net>
Sent: Friday, October 19, 2001 3:43 AM
Subject: Re: [PHP-DEV] New zend_compile.c to solve all of the duplicate
function problems
> RL>> which is which is not great. It would be nice if you could trigger
the
> RL>> include_once functionality from the file being included.
>
> I fear this won't sit well with how the engine works... But maybe you
> won't need this, in fact. I think that this should be done in more
> systematic way, so that if you include some code bunch, you are sure this
> and that is defined, without checking each thing by itself. Especially
> when we talk about functions and classes, which are not the same small
> change as variables and should be handled more systematically. There still
> be the cases when you do need such hacks, in one way or another, but I
> think that a systematic approach to the problem will do better than a
> hackish 'patch there, fiddle here' approach.
>
> --
> Stanislav Malyshev, Zend Products Engineer
> stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115
>
>
>
>