php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51948 Bug when you provide the absolute php-interpreter path
Submitted: 2010-05-30 11:18 UTC Modified: 2010-06-01 12:10 UTC
From: seizu at gmx dot at Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3.2 OS: Win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: seizu at gmx dot at
New email:
PHP Version: OS:

 

 [2010-05-30 11:18 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-30 11:27 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2010-05-30 11:27 UTC] 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:38 UTC] 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-06-01 10:43 UTC] seizu at gmx dot at
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
 [2010-06-01 10:51 UTC] seizu at gmx dot at
Ohhh mate!!! :( You are absolute right
It's a search-path problem! Sorry
 [2010-06-01 12:10 UTC] seizu at gmx dot at
But could you verify this, thx

http://bugs.php.net/bug.php?id=51890
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 02 22:00:02 2025 UTC