#35456 [Opn->Asn]: function strtotime

From: Date: Mon, 28 Nov 2005 19:08:04 +0000
Subject: #35456 [Opn->Asn]: function strtotime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89302@lists.php.net to get a copy of this message
 ID:               35456
 Updated by:       tony2001@php.net
 Reported By:      webmaster at smiliz dot info
-Status:           Open
+Status:           Assigned
 Bug Type:         Date/time related
 Operating System: Windows XP PRO
 PHP Version:      5.1.1
-Assigned To:      
+Assigned To:      derick
 New Comment:

Assigned to the maintainer.


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

[2005-11-28 19:48:01] webmaster at smiliz dot info

test php 5.1.1 
var_dump(strtotime("+1 day"));
result => int(1133289924)

and test :
var_dump(strtotime("+ $duree_quantite $duree_unite"));
result => bool(false)

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

[2005-11-28 19:25:25] tony2001@php.net

And what this code outputs for you?
<?php
var_dump(strtotime("+1 day"));
?>

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

[2005-11-28 19:21:48] webmaster at smiliz dot info

test php5.1.1 :
var_dump("+ $duree_quantite $duree_unite"); 

result => string(7) "+ 1 day"

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

[2005-11-28 19:03:07] tony2001@php.net

And var_dump("+ $duree_quantite $duree_unite"); gives you ... ?

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

[2005-11-28 18:33:14] webmaster at smiliz dot info

In PHP v5.0.5, this code will be run !
strtotime("+ $duree_quantite $duree_unite")

In PHP v5.1.1, strtotime("+ $duree_quantite $duree_unite")
is empty.

sorry for my bad description !

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

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/35456

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


Thread (8 messages)

« previous php.bugs (#89302) next »