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

From: Date: Thu, 18 Oct 2001 17:00:04 +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-68259@lists.php.net to get a copy of this message
An earlier thread with the following subject makes some of our points: [PHP-DEV] Bug #13616 Updated: Compiler complains about function declaration after return is calle Essentially, to answer your question. include_once() is a very poor way to write modular code that will be used across different projects and across different developers. You are placing the responsibility of not accidentally redefining function names on the user of the function library or code file and not on the file itself as it should be and as it is in other languages such as C. To put it shortly, it's a backwards way of including files and it's a poor programming technique. Daniel ----- Original Message ----- From: "Stanislav Malyshev" <stas@zend.com> To: "Brian Moon" <brianm@dealnews.com> Cc: "PHP Development" <php-dev@lists.php.net> Sent: Thursday, October 18, 2001 10:14 AM Subject: Re: [PHP-DEV] New zend_compile.c to solve all of the duplicate function problems > BM>> See bug 13616. > > I see. I think you should really use include_once - I just do not see the > reason why not to do it and why patch the code instead. Could you explain? > > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#68259) next »