Re: Declare minimum PHP version required?

From: Date: Mon, 03 Feb 2014 21:31:30 +0000
Subject: Re: Declare minimum PHP version required?
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-72127@lists.php.net to get a copy of this message
Hi Lester, On Tue, Feb 4, 2014 at 6:22 AM, Lester Caine <lester@lsces.co.uk> wrote: > Yasuo Ohgaki wrote: > >> Since it is evaluated at compile time, run time check is not needed at >> all when >> byte code cache is used. >> >> There are many code out there checks if (!extention_loaded(foo')) >> die('You need >> foo'). This is waste of CPU resources once it is checked. These >> requirements for >> scripts may be evaluated at compile time and script runs a little faster. >> > > And if the system you are running no longer has your 'byte code cache'? > I'm still running eaccelerator as it's the base for all the legacy systems. I don't think type of byte code cache matters. I could be wrong. Anyone? BTW, if you use legacy system with legacy code, there would not be declare('requirements') or like. If there is, you get E_WARNING. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#72127) next »