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 » MDB2 » Bug #8256

mapNativeDatatype incorrect regular expresions

Details

Submitted2006-07-20 09:42 UTC
Fromioz at ionosfera dot com
Assignedquipo
StatusClosed
PackageMDB2
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2006-07-20 09:42 UTC] ioz at ionosfera dot com

Description:
------------
In the mapNativeDatatype functions of Datatype libraries of most of the drivers, there are incorrect regular expressions when checking for the existence of 'is' or 'has' on the field names.

This preg_match:
preg_match('/^[is|has]/', $field['name'])
must be:
preg_match('/^(is|has)/', $field['name'])

This causes returning boolean values when it isn't.