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

ID: 19252
Updated by: daniel.oconnor@gmail.com
Reported By: hm2k at php dot net
Summary: Warning: date(): ...in
/usr/share/pear/PEAR/Command/Test.php on line 294
Status: Open
Type: Bug
Package: PEAR
Operating System: CentOS5
Package Version: 1.9.4
PHP Version: 5.3.3
Roadmap Versions:
New Comment:

... surely you'd just set the appropriate php.ini settings for your
local copy?


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

[2012-01-27 15:00:26] hm2k

Description:
------------
Whenever I run a test I receive this error.

Actual result:
--------------
[root@elite tests]# pear run-tests test_members_biglist.phpt
Running 1 tests
FAIL Test for Services_Mailman members
biglist[test_members_biglist.phpt]

Warning: date(): It is not safe to rely on the system's
timezone settings. You are *required* to use the
date.timezone setting or the date_default_timezone_set()
function. In case you used any of those methods and you are
still getting this warning, you most likely misspelled the
timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST'
instead in PEAR/Command/Test.php on line 294
PHP Warning: date(): It is not safe to rely on the system's
timezone settings. You are *required* to use the
date.timezone setting or the date_default_timezone_set()
function. In case you used any of those methods and you are
still getting this warning, you most likely misspelled the
timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST'
instead in /usr/share/pear/PEAR/Command/Test.php on line
294
PHP Stack trace:
PHP 1. {main}() /usr/share/pear/pearcmd.php:0
PHP 2. PEAR_Command_Common->run()
/usr/share/pear/pearcmd.php:305
PHP 3. PEAR_Command_Test->doRunTests()
/usr/share/pear/PEAR/Command/Common.php:271
PHP 4. date() /usr/share/pear/PEAR/Command/Test.php:294
wrote log to
"/home/share/www/dev/projects/mailman/Services_Mailman/t
ests/run-tests.log"
TOTAL TIME: 00:00
0 PASSED TESTS
0 SKIPPED TESTS
1 FAILED TESTS:
test_members_biglist.phpt

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

Search Discussions

  • Daniel Oconnor at Feb 6, 2012 at 2:09 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19252&edit=1

    ID: 19252
    Updated by: daniel.oconnor@gmail.com
    Reported By: hm2k at php dot net
    Summary: Warning: date(): ...in
    /usr/share/pear/PEAR/Command/Test.php on line 294
    -Status: Open
    +Status: Feedback
    Type: Bug
    Package: PEAR
    Operating System: CentOS5
    Package Version: 1.9.4
    PHP Version: 5.3.3
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Feedback



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

    [2012-02-06 15:10:59] doconnor

    ... surely you'd just set the appropriate php.ini settings for your
    local copy?

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

    [2012-01-27 15:00:26] hm2k

    Description:
    ------------
    Whenever I run a test I receive this error.

    Actual result:
    --------------
    [root@elite tests]# pear run-tests test_members_biglist.phpt
    Running 1 tests
    FAIL Test for Services_Mailman members
    biglist[test_members_biglist.phpt]

    Warning: date(): It is not safe to rely on the system's
    timezone settings. You are *required* to use the
    date.timezone setting or the date_default_timezone_set()
    function. In case you used any of those methods and you are
    still getting this warning, you most likely misspelled the
    timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST'
    instead in PEAR/Command/Test.php on line 294
    PHP Warning: date(): It is not safe to rely on the system's
    timezone settings. You are *required* to use the
    date.timezone setting or the date_default_timezone_set()
    function. In case you used any of those methods and you are
    still getting this warning, you most likely misspelled the
    timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST'
    instead in /usr/share/pear/PEAR/Command/Test.php on line
    294
    PHP Stack trace:
    PHP 1. {main}() /usr/share/pear/pearcmd.php:0
    PHP 2. PEAR_Command_Common->run()
    /usr/share/pear/pearcmd.php:305
    PHP 3. PEAR_Command_Test->doRunTests()
    /usr/share/pear/PEAR/Command/Common.php:271
    PHP 4. date() /usr/share/pear/PEAR/Command/Test.php:294
    wrote log to
    "/home/share/www/dev/projects/mailman/Services_Mailman/t
    ests/run-tests.log"
    TOTAL TIME: 00:00
    0 PASSED TESTS
    0 SKIPPED TESTS
    1 FAILED TESTS:
    test_members_biglist.phpt

    ------------------------------------------------------------------------
  • Hm2k at Feb 6, 2012 at 2:23 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19252&edit=1

    ID: 19252
    Updated by: hm2k@php.net
    Reported By: hm2k at php dot net
    Summary: Warning: date(): ...in
    /usr/share/pear/PEAR/Command/Test.php on line 294
    Status: Feedback
    Type: Bug
    Package: PEAR
    Operating System: CentOS5
    Package Version: 1.9.4
    PHP Version: 5.3.3
    Roadmap Versions:
    New Comment:

    At first I couldn't figure out what was producing the error.

    Then I saw it was from "PEAR/Command/Test.php".

    Looking at this a bit further, I'm not sure which php.ini (if any) is
    induced when
    pear run-tests is called from the command line.

    I couldn't seem to rid of the warning by using
    date_default_timezone_set().

    I certainly see no mention of GMT in /etc/php.ini as it suggests.

    All in all, this seems like poor handling on PEAR's part, rather than a
    configuration
    issue.


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

    [2012-02-06 15:11:10] doconnor

    -Status: Open
    +Status: Feedback


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

    [2012-02-06 15:10:59] doconnor

    ... surely you'd just set the appropriate php.ini settings for your
    local copy?

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

    [2012-01-27 15:00:26] hm2k

    Description:
    ------------
    Whenever I run a test I receive this error.

    Actual result:
    --------------
    [root@elite tests]# pear run-tests test_members_biglist.phpt
    Running 1 tests
    FAIL Test for Services_Mailman members
    biglist[test_members_biglist.phpt]

    Warning: date(): It is not safe to rely on the system's
    timezone settings. You are *required* to use the
    date.timezone setting or the date_default_timezone_set()
    function. In case you used any of those methods and you are
    still getting this warning, you most likely misspelled the
    timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST'
    instead in PEAR/Command/Test.php on line 294
    PHP Warning: date(): It is not safe to rely on the system's
    timezone settings. You are *required* to use the
    date.timezone setting or the date_default_timezone_set()
    function. In case you used any of those methods and you are
    still getting this warning, you most likely misspelled the
    timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST'
    instead in /usr/share/pear/PEAR/Command/Test.php on line
    294
    PHP Stack trace:
    PHP 1. {main}() /usr/share/pear/pearcmd.php:0
    PHP 2. PEAR_Command_Common->run()
    /usr/share/pear/pearcmd.php:305
    PHP 3. PEAR_Command_Test->doRunTests()
    /usr/share/pear/PEAR/Command/Common.php:271
    PHP 4. date() /usr/share/pear/PEAR/Command/Test.php:294
    wrote log to
    "/home/share/www/dev/projects/mailman/Services_Mailman/t
    ests/run-tests.log"
    TOTAL TIME: 00:00
    0 PASSED TESTS
    0 SKIPPED TESTS
    1 FAILED TESTS:
    test_members_biglist.phpt

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedFeb 6, '12 at 2:09p
activeFeb 6, '12 at 2:23p
posts3
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 2 posts Hm2k: 1 post

People

Translate

site design / logo © 2022 Grokbase