Re: [patch] expose PHP version details as constants

From: Date: Tue, 12 Feb 2008 18:14:30 +0000
Subject: Re: [patch] expose PHP version details as constants
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-35417@lists.php.net to get a copy of this message
On Tue, 2008-02-12 at 19:05 +0100, Pierre Joye wrote: > On Feb 12, 2008 6:56 PM, Jani Taskinen <jani.taskinen@sci.fi> wrote: > > And for the reasons why they're not needed in 5.2 apply to any other PHP > > version. version_compare() is there for a reason, USE IT! No more > > constants for same thing, thankyouverymuch. > > Read: > > it is easier, faster handier to use than version_compare. It makes > perfectly sense to have them as other pointed out too, they can even > be used in php.ini when the [if] is available. I thought nobody noticed my comment about constants and php.ini usage.. You could still use PHP_VERSION there too. :D But to keep php.ini syntax simple, it's better to just keep on adding more constants in PHP side. ;) .oO(..so this is how it feels like when something comes back and bites you in the ass..) -- Patches/Donations: http://pecl.php.net/~jani/

« previous php.internals (#35417) next »