PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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.