RE: [PHP-QA] Re: RC6 doesn't mind function redefinition
| From: | Andi Gutmans | Date: | Wed, 04 Apr 2001 15:07:46 +0000 |
| Subject: | RE: [PHP-QA] Re: RC6 doesn't mind function redefinition | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-2792@lists.php.net to get a copy of this message | ||
The main reason was that it was supposed to improve performance and it didn't. It actually tended to slow things down.
Removing this also allowed us to reduce the memory usage of PHP scripts (not as important).
Andi
At 04:51 PM 4/4/2001 +0200, Cynic wrote:
that's a pity IMO. out of pure curiosity: why was it changed? (or around what date was it discussed & changed, I'll read it in archives) At 16:38 4.4. 2001, Zeev Suraski wrote the following: -------------------------------------------------------------- require() now works very much like in include(), only it bails out if it fails. Zeev At 16:41 4/4/2001, Cynic wrote:evaluated in run-time of their parent script. So it's compile-time for them, but run-time in general.It's in a require()d file. I thought require() was a compile-time thing (as opposed to runtime include()), but looks like I'm wrong. At 00:19 4.4. 2001, Zeev Suraski wrote the following: --------------------------------------------------------------At 22:02 3/4/2001, Cynic wrote:Anyway, shouldn't PHP terminate the script during compilation? I thought function redeclarations were compile errors, but it looks as if they're runtime errors, and the whole script got executed(?).If it's inside an include file, then remember include files are onlycynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7 -- PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-qa-unsubscribe@lists.php.net For additional commands, e-mail: php-qa-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netZeev