Re: Why is mktime(0,0,0,0,0,0) E_STRICT?
| From: | Pierre | Date: | Mon, 23 Oct 2006 15:26:48 +0000 |
| Subject: | Re: Why is mktime(0,0,0,0,0,0) E_STRICT? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26185@lists.php.net to get a copy of this message | ||
Hello,
On 10/23/06, Ilia Alshanetsky <ilia@prohost.org> wrote:
On 23-Oct-06, at 6:41 AM, Pierre wrote: If you read the other replies to your initial question (which was wrong :), you will realize another thing, this is easily fixable with minimum effort and impact: http://pecl.php.net/~pierre/remove_mktime_strict.txt No visible speed difference I see no reason to make mktime() an alias of time(), you are basically advocating misuse of functions. Yes there are over 2,000 results on google showing people calling mktime(), but I bet there are even more register_globals users and yet we've all decided to remove it in PHP6.Ilia, it is not about making an alias. It is about restoring a widely use behavior in mktime and about making gmktime useable. This change is nothing but a unilateral break (even in E_STRICT).