Bug #51948 [Bgs]: Bug when you provide the absolute php-interpreter path
| From: | seizu at gmx dot at | Date: | Tue, 01 Jun 2010 08:43:14 +0000 |
| Subject: | Bug #51948 [Bgs]: Bug when you provide the absolute php-interpreter path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-150984@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51948&edit=1
ID: 51948
User updated by: seizu at gmx dot at
Reported by: seizu at gmx dot at
Summary: Bug when you provide the absolute php-interpreter path
Status: Bogus
Type: Bug
Package: Scripting Engine problem
Operating System: Win32
PHP Version: 5.3.2
New Comment:
C:\php>php -v
PHP 5.3.2 (cli) (built: Mar 3 2010 20:47:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
C:\php>c:\php\php.exe -v
PHP 5.3.2 (cli) (built: Mar 3 2010 20:47:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
I have only one php.ini located in c:\php\...
Problem does not occur in version 5.2.8
Previous Comments:
------------------------------------------------------------------------
[2010-05-30 11:38:34] pajoye@php.net
It is only about PHP finding or not a php.ini with a timezone defined in
it. If no tz is set you will get this error.
------------------------------------------------------------------------
[2010-05-30 11:27:30] johannes@php.net
Make sure you are running the same PHP interpreter, two times. It looks
like another PHP is in the PATH first.
The error message tells you that c:\php\php.exe is configured wrong.
------------------------------------------------------------------------
[2010-05-30 11:18:29] seizu at gmx dot at
Description:
------------
Bug occurs even when you run the script from the command line and you
provide the absolute path of your php interpreter like c:\php\php.exe
.....
also described in #51890 (but marked as bogus by kalle)
Test script:
---------------
just tpye in the command line
got an error:
=============
c:\php\php.exe -r "echo strftime('%H:%M:%S',time());"
no error:
=========
php.exe -r "echo strftime('%H:%M:%S',time());"
Expected result:
----------------
11:04:54
Actual result:
--------------
PHP Warning: strftime(): 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 'Europe/Paris' for '2.0/DST' instead in Command
line code on line 1
Warning: strftime(): 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 stil
l getting this warning, you most likely misspelled the timezone
identifier. We selected 'Europe/Paris' for '2.0/DST' instead in Command
line code on line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51948&edit=1