Re: Packaging a pecl extension for the first time.

From: Date: Tue, 15 Mar 2011 16:36:58 +0000
Subject: Re: Packaging a pecl extension for the first time.
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-8057@lists.php.net to get a copy of this message
On 15 March 2011 16:02, Pierre Joye <pierre.php@gmail.com> wrote: > On Tue, Mar 15, 2011 at 4:12 PM, Richard Quadling <rquadling@gmail.com> wrote: >> Hi. >> >> I'm running pecl package-validate for the first time and getting the >> date.timezone complaint. >> >> Looking into C:\PHP5\pecl.bat, I see ... >> >> :RUN >> "%PHP_PEAR_PHP_BIN%" -C -n -d output_buffering=1 -d safe_mode=0 -d >> "include_path='%PHP_PEAR_INSTALL_DIR%'" -d >> register_argc_argv="On" -d >> variables_order=EGPCS -f "%PHP_PEAR_INSTALL_DIR%\peclcmd.php" -- %1 %2 >> %3 %4 %5 %6 %7 %8 %9 >> >> Most importantly, the -n option inhibits the use of an INI file, so >> the runtime warning is inescapable. >> >> [2011-03-15 15:09:32] [L:\BuildPHP\php53dev\vc9\x86\pecl\win32service] >> [\\bv-dev-svr-4\d$ ] >pecl package-validate >> >> 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 'Europe/London' for >> '0.0/no DST' instead in PEAR\Validate.php on line 456 >> >> 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 'Europe/London' for >> '0.0/no DST' instead in C:\PHP5\PEAR\PEAR\Validate.php on line 456 >> Analyzing sample.php >> Validation: 0 error(s), 0 warning(s) > > the date warning is due to the pecl command, which is called with php > -n. Edit pecl.bat and add "-d date.timezone=gmt". > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | > http://www.libgd.org > I'd recommend taking the date.timezone from the current PHP environment during the creation of pecl.bat. Where is the code that is packaged into go-phar.phar? That should be where the fix goes. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

« previous php.pecl.dev (#8057) next »