Re: Date function kill lots time !

From: Date: Thu, 05 Jan 2012 08:29:08 +0000
Subject: Re: Date function kill lots time !
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-316176@lists.php.net to get a copy of this message
yes,it is set in php.ini . 2012/1/5 Adam Richardson <simpleshot@gmail.com> > On Wed, Jan 4, 2012 at 11:07 PM, xucheng <helloworldjerry@gmail.com>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 :)!

« previous php.general (#316176) next »