Home » Database » DB_DataObject » Bug #1293
DB_DataObject relies on PHP4.2 function is_a() but lists dependencies of PHP4.1
Details
| Submitted | 2004-04-27 06:37 UTC |
|---|---|
| From | david at edeca dot net |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | Irrelevant |
| OS | All |
| Roadmaps | (Not assigned) |
Comments
[2004-04-27 06:37 UTC] david at edeca dot net
Description:
------------
The page on pear.php.net lists DB_DataObject as having dependencies of
PHP4.1 however uses the function is_a() which was introduced in PHP4.2.
This affects older versions too, verified back to DB_DataObject version
1.3.
As a fix, the function shown at http://php.net/is_a may be used for
installations with previous versions of PHP. This was tested on PHP4.1.2
and allows the use of newer DB_DataObject versions that use is_a().