[MacPorts] #20374: PHP CLI complains of timezone setting although it's set in php.ini

MacPorts noreply at macports.org
Mon Jul 20 03:40:18 PDT 2009


#20374: PHP CLI complains of timezone setting although it's set in php.ini
------------------------------+---------------------------------------------
 Reporter:  shoanm@…          |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  ports             |     Version:  1.7.1                                
 Keywords:  php 5.3           |        Port:  php5 @5.3.0_1                        
------------------------------+---------------------------------------------
 I set the date.timezone variable to Asia/Calcutta, but the PHP CLI still
 complains about it.

 {{{
 Nirvana:~ shoan$ php -i
 PHP Warning:  PHP Startup: 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 'Asia/Calcutta' for 'IST/5.0/no DST'
 instead in Unknown on line 0
 PHP Warning:  PHP Startup: 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 'Asia/Calcutta' for 'IST/5.0/no DST'
 instead in Unknown on line 0
 PHP Warning:  PHP Startup: 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 'Asia/Calcutta' for 'IST/5.0/no DST'
 instead in Unknown on line 0
 phpinfo()
 PHP Version => 5.3.0

 System => Darwin Nirvana.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar
 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
 Build Date => Jul 16 2009 13:15:16
 Configure Command =>  './configure'  '--prefix=/opt/local' '--
 mandir=/opt/local/share/man' '--infodir=/opt/local/share/info' '--with-
 config-file-path=/opt/local/etc/php5' '--with-config-file-scan-
 dir=/opt/local/var/db/php5' '--enable-calendar' '--with-iconv=/opt/local'
 '--enable-exif' '--enable-ftp' '--enable-wddx' '--with-bz2=/opt/local'
 '--with-libxml-dir=/opt/local' '--with-gettext=/opt/local' '--with-
 libexpat-dir=/opt/local' '--with-xmlrpc' '--enable-soap' '--enable-bcmath'
 '--enable-mbstring' '--enable-dba' '--enable-zip' '--with-
 openssl=/opt/local' '--with-mhash=/opt/local' '--with-pcre-
 regex=/opt/local' '--disable-cgi' '--with-ldap=/usr' '--with-iodbc=/usr'
 '--with-apxs2=/opt/local/apache2/bin/apxs' '--with-
 mysql=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/work/mysql5'
 '--with-pdo-mysql=/opt/local/bin/mysql_config5' '--with-mysql-
 sock=/opt/local/var/run/mysql5/mysqld.sock' '--with-
 mysqli=/opt/local/bin/mysql_config5' '--with-sqlite' '--with-pdo-
 sqlite=/opt/local' '--enable-sqlite-utf8' '--with-pear=/opt/local/lib/php'
 Server API => Command Line Interface
 Virtual Directory Support => disabled
 Configuration File (php.ini) Path => /opt/local/etc/php5
 Loaded Configuration File => /opt/local/etc/php5/php.ini
 Scan this dir for additional .ini files => /opt/local/var/db/php5
 Additional .ini files parsed => /opt/local/var/db/php5/apc.ini,
 /opt/local/var/db/php5/suhosin.ini,
 /opt/local/var/db/php5/xdebug.ini

 .... SNIP ....

 Nirvana:~ shoan$ grep date.timezone /opt/local/etc/php5/php.ini
 date.timezone = 'Asia/Calcutta';
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/20374>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list