RE: [PHP-QA] Re: RC6 doesn't mind function redefinition
| From: | Cynic | Date: | Wed, 04 Apr 2001 14:51:44 +0000 |
| Subject: | RE: [PHP-QA] Re: RC6 doesn't mind function redefinition | ||
| References: | 1 2 3 4 5 6 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-2791@lists.php.net to get a copy of this message | ||
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:
>>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 only evaluated in
>>>run-time of their parent script. So it's compile-time for them, but run-time in general.
>>>
>>>Zeev
>
>
>cynic@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