Re: Packaging a pecl extension for the first time.
| From: | Pierre Joye | Date: | Tue, 15 Mar 2011 16:02:09 +0000 |
| Subject: | Re: Packaging a pecl extension for the first time. | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8056@lists.php.net to get a copy of this message | ||
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