Re: version_compare

From: Date: Thu, 30 Sep 2010 18:58:37 +0000
Subject: Re: version_compare
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-308373@lists.php.net to get a copy of this message
Brian Smither wrote: >> Personally, I would change that to be >> if ( function_exists('filter_var') ) { > > So would I: > *But it's not my code. > *I wish to learn and understand the cause of the problem - not walk around it. > >> It means condition (PHP_VERSION >= 5.2.0) > > I understand that. There was a second, more relevant, part to my question. > > I have found the version of PHP used as reported in the HTTP header responses. > > filter_var() is undefined in PHP/5.2.4_p20070914-pl2-gentoo > As Paul pointed out, maybe your version of PHP was built without the filter_var function compiled in.

« previous php.general (#308373) next »