note 66291 deleted from function.defined by danbrown
| From: | danbrown@php.net | Date: | Fri, 30 Jan 2009 21:35:31 +0000 |
| Subject: | note 66291 deleted from function.defined by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150016@lists.php.net to get a copy of this message | ||
Note Submitter: Harald Ponce de Leon
----
Beware that some PHP versions return an integer (1 or 0) instead of a boolean.
Confirmed PHP versions that return an integer are 4.3.2 and 4.3.4.
Relevant bug report:
http://bugs.php.net/bug.php?id=27443
This make it impossible to use the following, when the PHP version is not known:
if (defined('CONSTANT') === true) {
}
Relevant commit for PHP 4.3.5 (thanks to Pollita at #php.thinktank):
http://cvs.php.net/viewcvs.cgi/Zend/zend_builtin_functions.c?
r1=1.124.2.13&r2=1.124.2.14