ID:               29557
 Updated by:       [EMAIL PROTECTED]
 Reported By:      javier at evaloportunidades dot insp dot mx
-Status:           Assigned
+Status:           Closed
 Bug Type:         *General Issues
 Operating System: Debian GNU/Linux 3.0 2.6.7
 PHP Version:      5.0.0
 Assigned To:      derick
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2004-09-12 02:05:18] javier at evaloportunidades dot insp dot mx

Thanks cp, I uncommented the part of the condition in the lines you
said, recompile php, and it worked. This is the part of the condition:

|| (date.yyHaveRel && !date.yyHaveDate && !date.yyHaveDay)


    Does anybody know why this part of the condition is commented??


  After recompiling php whith these lines uncommented, the
strtotime("now") returns a different value every second (as it should
be):

1094947473
1094947474
1094947475
1094947476


    Thank you very much,

    Javier Carlos R.

------------------------------------------------------------------------

[2004-08-24 09:34:03] never_slept at yahoo dot com

Yes I read that bug report and although them sounded to potentially be
the same thing... my strtotime("now") does in fact spit out a different
value every second and that bug report makes no mention of using the
second argument for strtotime()

------------------------------------------------------------------------

[2004-08-23 06:01:05] cplee at buzzcity dot com

The problem still exists in 5.0.1! Anyway, the problem lies in some
"conditions" being commented in the ext/standard/parsedate.y (and
parsedate.c) under the php_parse_date() function. (parsedate.y:1082,
parsedate.c: 2325). I basically uncomment those lines and did a
recompile. Now the following command gives the correct result:

Command:
php -r 'echo strtotime("now");'

Result:
1093234981

Hope this helps!

--cp

------------------------------------------------------------------------

[2004-08-09 09:33:14] [EMAIL PROTECTED]

"now" returns midnight of the current day. I think this is wrong too.

------------------------------------------------------------------------

[2004-08-09 09:12:44] javier at evaloportunidades dot insp dot mx

But the problem is that even after n seconds with PHP 5.0.0 I get the
same result.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29557

-- 
Edit this bug report at http://bugs.php.net/?id=29557&edit=1

Reply via email to