FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16237&edit=1

ID: 16237
Updated by: daniel.oconnor@gmail.com
Reported By: jkaehler at meteomedia dot ch
Summary: Illegal Dates not checked
Status: Open
Type: Bug
Package: Date
Operating System: Suse
Package Version: 1.5.0a1
PHP Version: 5.2.0
Roadmap Versions:
New Comment:

WFM:
PHP 5.2.9-1, 1.4.7 and 1.5.0a1

<?php
require_once 'Date.php';

$d = new Date("20090231120000");

print_r($d);


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

[2009-05-18 17:30:55] jkaehler

Description:
------------
38.1. or 31.2. are an illegal dates. If you instanciate a Date Object
with this Kind of illegal dates the script hangs up...

Test script:
---------------
new Date("20090231120000");

Expected result:
----------------
Some kind of exception should be thrown...

Actual result:
--------------
PHP Fatal error: Maximum execution time of 30
seconds exceeded in
/home/jkaehler/public_html/[...].php on line 182

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

Search Discussions

  • Daniel Oconnor at May 19, 2009 at 7:39 am
    Edit report at http://pear.php.net/bugs/bug.php?id=16237&edit=1

    ID: 16237
    Updated by: daniel.oconnor@gmail.com
    Reported By: jkaehler at meteomedia dot ch
    Summary: Illegal Dates not checked
    -Status: Open
    +Status: Bogus
    Type: Bug
    Package: Date
    Operating System: Suse
    Package Version: 1.5.0a1
    PHP Version: 5.2.0
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Bogus

    Try updating your php, or making a proper test case.


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

    [2009-05-19 09:37:32] doconnor

    WFM:
    PHP 5.2.9-1, 1.4.7 and 1.5.0a1

    <?php
    require_once 'Date.php';

    $d = new Date("20090231120000");

    print_r($d);

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

    [2009-05-18 17:30:55] jkaehler

    Description:
    ------------
    38.1. or 31.2. are an illegal dates. If you instanciate a Date Object
    with this Kind of illegal dates the script hangs up...

    Test script:
    ---------------
    new Date("20090231120000");

    Expected result:
    ----------------
    Some kind of exception should be thrown...

    Actual result:
    --------------
    PHP Fatal error: Maximum execution time of 30
    seconds exceeded in
    /home/jkaehler/public_html/[...].php on line 182

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 19, '09 at 7:38a
activeMay 19, '09 at 7:39a
posts2
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 2 posts

People

Translate

site design / logo © 2022 Grokbase