Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #4000 phpversion() compare doesn't match for custom builds
Submitted: 2005-03-30 09:27 UTC
From: mfischer at php dot net Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: 4.3.10 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 46 - 46 = ?

 
 [2005-03-30 09:27 UTC] mfischer at php dot net
Description: ------------ The following code in DataObjects.php: if ((phpversion() == '4.3.10') && !defined('DB_DATAOBJECT_NO_OVERLOAD')) { is troublesome in packaged builds on e.g. debian, because there the version number reported is 4.3.10-9 . I was told that the EXTRAVERSION is perfectly valid and that version_compare() would be better suited to handle such checks.

Comments

 [2005-04-20 07:41 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.