Re: Date function kill lots time !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yes,it is set in php.ini .

2012/1/5 Adam Richardson <simpleshot@xxxxxxxxx>

> On Wed, Jan 4, 2012 at 11:07 PM, xucheng <helloworldjerry@xxxxxxxxx>wrote:
>
>> hi all,
>>   I have a webapp which track visitors, and use xhprof for profiling my
>> codes .
>>   After reading some reports produced by xhprof, i found that function
>> Date() kills most time of my app !
>>   how can this happen ? Is this function has some internal issue that i
>> should kown ?
>>   Any comment appreciate ! thanks !
>>
>> --
>> RTFSC - Read The F**king Source Code :)!
>>
>
>
> Did you set the timezone? If not, PHP raises a notice, which causes
> terrible performance (see the comment at the bottom):
> https://bugs.php.net/bug.php?id=39968
>
> Adam
>
> --
> Nephtali:  A simple, flexible, fast, and security-focused PHP framework
> http://nephtaliproject.com
>



-- 
RTFSC - Read The F**king Source Code :)!

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux