Unilateral break? lol...
Actually it is no break at all, take PHP4 code move it to PHP and you
won't even see the warning because E_STRICT is not even shown by
default.
On 23-Oct-06, at 11:26 AM, Pierre wrote:
Hello,
On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> 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).
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Ilia Alshanetsky
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php