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

From: Date: Thu, 18 Oct 2001 15:53:06 +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-68255@lists.php.net to get a copy of this message
BM>> It is not a matter of the functions. If everything were a function or class BM>> ( like Java ) this would not be an issue. But, we have variables and such BM>> in these files that prevent us from be able to trust include_once. Ah. Now I see what you mean. Then the solution would be or use classes, or make functions and variables different includes (since they are anyway different in the function context - former are global and later are not). BM>> And my fix will keep a function from being defined twice. It BM>> will simply also allow people who have become accustomed to BM>> using the language this way to keep doing it. I'm not sure that being allowed to use a language in a buggy way is a right thing to do... This would hide many "double include" errors, and would *not* restore the backwards compatibility - since code that didn't work then would work now with your patch. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.dev (#68255) next »