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

From: Date: Fri, 19 Oct 2001 07:49:54 +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-68303@lists.php.net to get a copy of this message
DB>> Essentially, to answer your question. include_once() is a very DB>> poor way to write modular code that will be used across DB>> different projects and across different developers. You are Why? DB>> placing the responsibility of not accidentally redefining DB>> function names on the user of the function library or code file DB>> and not on the file itself as it should be and as it is in other DB>> languages such as C. To put it shortly, it's a backwards way of PHP is not C. So PHP can not be "such as C". You are placing responcibility of including a module onto the engine, and that is completely OK with me. I agree that it would be good to have more developed concept of a package and all the hoopla that is going with that - but until then, I see nothing wrong in include_once. DB>> including files and it's a poor programming technique. Why? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.dev (#68303) next »