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_Driver_mysql » Bug #6550

Notice: undefined offset

Details

Submitted2006-01-22 15:42 UTC
Fromreg at dav-muz dot net
Assignedlsmith
StatusClosed
PackageMDB2_Driver_mysql
PHP Version4.4.0
OSLinux Slackware 10.2
Roadmaps(Not assigned)

Comments

[2006-01-22 15:42 UTC] reg at dav-muz dot net

Description:
------------
MDB2 2.0.0RC4 beta
MDB2_Driver_mysql 0.2.3 beta
MDB2_Schema 0.4.2 beta

MySQL version: 4.1.14

Notice: Undefined offset: 1 in pear/MDB2/Driver/mysql.php on line 570

Test script:
---------------
Use a MySQL database with MySQL version like x.x.xx and not like x.x.xx-x

Expected result:
----------------
Dump of $server_info, $tmp and $tmp2 in pear/MDB2/Driver/mysql.php on line 570:

Same as actual result but without a notice error, that decrease performances and display unuseful errors in the log file.

Actual result:
--------------
Dump of $server_info, $tmp and $tmp2 variables in pear/MDB2/Driver/mysql.php on line 570:

$server_info:
'major' => 4
'minor' => 1
'patch' => 14,
'extra' => null
'native' => array()

$tmp:
0 = 4
1 = 1
2 = 14

$tmp2:
0 = 14