Welcome! Log In Create A New Profile

Advanced

PHP returns warnings even when disabled in php.ini

Posted by Ray 
Hi,

I'm using a FPM-nginx setup, and I've been getting massive number of
warnings (especially about the date() functions) in my nginx error
logs (passed via sysout) even with my php.ini config set to show only
errors and nothing else.

Is there something that I'm doing wrong?

Ray
Hi,

I'm using a FPM-nginx setup, and I've been getting massive number of
warnings (especially about the date() functions) in my nginx error
logs (passed via stderr) even with my php.ini config set to show only
errors and nothing else.

FastCGI sent in stderr: "PHP Warning:

Is there something that I'm doing wrong?

Ray
Re: PHP returns warnings even when disabled in php.ini
September 24, 2009 01:12PM
Ray wrote:
> Hi,
>
> I'm using a FPM-nginx setup, and I've been getting massive number of
> warnings (especially about the date() functions) in my nginx error
> logs (passed via sysout) even with my php.ini config set to show only
> errors and nothing else.
>
> Is there something that I'm doing wrong?
>
> Ray

Are you using php 5.3.0?

--
Jim Ohlstein
Yes I'm using 5.3.0.
On Fri, Sep 25, 2009 at 1:11 AM, Jim Ohlstein <jim@ohlste.in> wrote:

>
> Ray wrote:
>
>> Hi,
>>
>> I'm using a FPM-nginx setup, and I've been getting massive number of
>> warnings (especially about the date() functions) in my nginx error
>> logs (passed via sysout) even with my php.ini config set to show only
>> errors and nothing else.
>>
>> Is there something that I'm doing wrong?
>>
>> Ray
>>
>
> Are you using php 5.3.0?
>
> --
> Jim Ohlstein
>
Re: PHP returns warnings even when disabled in php.ini
September 24, 2009 01:28PM
Ray wrote:
> Yes I'm using 5.3.0.
>
> On Fri, Sep 25, 2009 at 1:11 AM, Jim Ohlstein <jim@ohlste.in
> <mailto:jim@ohlste.in>> wrote:
>
>
> Ray wrote:
>
> Hi,
>
> I'm using a FPM-nginx setup, and I've been getting massive number of
> warnings (especially about the date() functions) in my nginx error
> logs (passed via sysout) even with my php.ini config set to show
> only
> errors and nothing else.
>
> Is there something that I'm doing wrong?
>
> Ray
>
>
> Are you using php 5.3.0?
>
> --
> Jim Ohlstein
>
>

This is a php 5.3.0 issue. I believe you can eliminate these by setting
the timezone in your php.ini. Or you can revert to 5.2.11 and they will
go away.

Something like:

date.timezone = "America/New_York"

should work. You will need to restart php-fpm after the change. A full
list of supported timezones are at http://php.net/manual/en/timezones.php.

--
Jim Ohlstein
Thanks. I think I'll revert versions, since it's not only the timezone
problem that throws up errors, but a whole lot of other functions too.
Ray

On Fri, Sep 25, 2009 at 1:26 AM, Jim Ohlstein <jim@ohlste.in> wrote:

>
> Ray wrote:
>
>> Yes I'm using 5.3.0.
>>
>> On Fri, Sep 25, 2009 at 1:11 AM, Jim Ohlstein <jim@ohlste.in <mailto:
>> jim@ohlste.in>> wrote:
>>
>>
>> Ray wrote:
>>
>> Hi,
>>
>> I'm using a FPM-nginx setup, and I've been getting massive number
>> of
>> warnings (especially about the date() functions) in my nginx error
>> logs (passed via sysout) even with my php.ini config set to show
>> only
>> errors and nothing else.
>>
>> Is there something that I'm doing wrong?
>>
>> Ray
>>
>>
>> Are you using php 5.3.0?
>>
>> -- Jim Ohlstein
>>
>>
>>
> This is a php 5.3.0 issue. I believe you can eliminate these by setting the
> timezone in your php.ini. Or you can revert to 5.2.11 and they will go away.
>
> Something like:
>
> date.timezone = "America/New_York"
>
> should work. You will need to restart php-fpm after the change. A full list
> of supported timezones are at http://php.net/manual/en/timezones.php.
>
> --
> Jim Ohlstein
>
Re: PHP returns warnings even when disabled in php.ini
September 24, 2009 01:42PM
Ray wrote:
> Thanks. I think I'll revert versions, since it's not only the timezone
> problem that throws up errors, but a whole lot of other functions too.

If they all go away then it is possible that your code requires
functions that are deprecated in 5.3 series. 5.3.x involves some major
changes and is not fully backward compatible. See
http://www.php.net/releases/5_3_0.php.


>
> Ray
>
> On Fri, Sep 25, 2009 at 1:26 AM, Jim Ohlstein <jim@ohlste.in
> <mailto:jim@ohlste.in>> wrote:
>
>
> Ray wrote:
>
> Yes I'm using 5.3.0.
>
> On Fri, Sep 25, 2009 at 1:11 AM, Jim Ohlstein <jim@ohlste.in
> <mailto:jim@ohlste.in> <mailto:jim@ohlste.in
> <mailto:jim@ohlste.in>>> wrote:
>
>
> Ray wrote:
>
> Hi,
>
> I'm using a FPM-nginx setup, and I've been getting
> massive number of
> warnings (especially about the date() functions) in my
> nginx error
> logs (passed via sysout) even with my php.ini config set
> to show
> only
> errors and nothing else.
>
> Is there something that I'm doing wrong?
>
> Ray
>
>
> Are you using php 5.3.0?
>
> -- Jim Ohlstein
>
>
>
> This is a php 5.3.0 issue. I believe you can eliminate these by
> setting the timezone in your php.ini. Or you can revert to 5.2.11
> and they will go away.
>
> Something like:
>
> date.timezone = "America/New_York"
>
> should work. You will need to restart php-fpm after the change. A
> full list of supported timezones are at
> http://php.net/manual/en/timezones.php.
>
> --
> Jim Ohlstein
>
>


--
Jim Ohlstein
Thanks Jim. The errors have indeed all gone away, the sign of depreciated
methods being used as you said.

ray

On Fri, Sep 25, 2009 at 1:39 AM, Jim Ohlstein <jim@ohlste.in> wrote:

>
> Ray wrote:
>
>> Thanks. I think I'll revert versions, since it's not only the timezone
>> problem that throws up errors, but a whole lot of other functions too.
>>
>
> If they all go away then it is possible that your code requires functions
> that are deprecated in 5.3 series. 5.3.x involves some major changes and is
> not fully backward compatible. See http://www.php.net/releases/5_3_0.php.
>
>
>
>> Ray
>>
>> On Fri, Sep 25, 2009 at 1:26 AM, Jim Ohlstein <jim@ohlste.in <mailto:
>> jim@ohlste.in>> wrote:
>>
>>
>> Ray wrote:
>>
>> Yes I'm using 5.3.0.
>>
>> On Fri, Sep 25, 2009 at 1:11 AM, Jim Ohlstein <jim@ohlste.in
>> <mailto:jim@ohlste.in> <mailto:jim@ohlste.in
>> <mailto:jim@ohlste.in>>> wrote:
>>
>>
>> Ray wrote:
>>
>> Hi,
>>
>> I'm using a FPM-nginx setup, and I've been getting
>> massive number of
>> warnings (especially about the date() functions) in my
>> nginx error
>> logs (passed via sysout) even with my php.ini config set
>> to show
>> only
>> errors and nothing else.
>>
>> Is there something that I'm doing wrong?
>>
>> Ray
>>
>>
>> Are you using php 5.3.0?
>>
>> -- Jim Ohlstein
>>
>>
>>
>> This is a php 5.3.0 issue. I believe you can eliminate these by
>> setting the timezone in your php.ini. Or you can revert to 5.2.11
>> and they will go away.
>>
>> Something like:
>>
>> date.timezone = "America/New_York"
>>
>> should work. You will need to restart php-fpm after the change. A
>> full list of supported timezones are at
>> http://php.net/manual/en/timezones.php.
>>
>> -- Jim Ohlstein
>>
>>
>>
>
> --
> Jim Ohlstein
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 270
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready