Hello,

On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote:

gmmktime() without parameters is broken in PHP 4 anyway. If you don't
give it arguments than it should default to the current date
and hour (in GMT for gmmktime() and in localtime for
mktime()). In both places this should result in the same timestamp,
which gmmktime() doesn't even do on PHP 4:

Our point is to do not raise any warning in these two functions when
they are called without arguments. Misunderstanding of the GMT idea by
the previous implementation is another topic.

I do not understand why it is a problem to add three lines to
php_mktime and forget about it rather than adding more pain to the
e_strict stack.

You like to use only time()? fine, but we still have no way to use
"gmmktime();" without warning and we are forced to change our mktime()
calls, for no reason.

--Pierre

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to