PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #4000

phpversion() compare doesn't match for custom builds

Details

Submitted2005-03-30 09:27 UTC
Frommfischer at php dot net
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version4.3.10
Roadmaps(Not assigned)

Comments

[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.