php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51259 PHP 5.3.2 + PDO MySQL not compatible with MySQL 4.0
Submitted: 2010-03-10 12:50 UTC Modified: 2010-08-18 12:50 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: aron dot ujvari at microsec dot hu Assigned: mysql (profile)
Status: Wont fix Package: PDO related
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
 [2010-03-10 12:50 UTC] aron dot ujvari at microsec dot hu
Description:
------------
PHP 5.3.2 with PDO MySQL support cannot be built with MySQL 4.0.


MYSQLND support added to ext/pdo_mysql/mysql_statement.c brakes old MySQL version support, file cannot be compiled.

Some C macro conditionals probably incorrectly updated, so MySQL version don't have support for prepared statements cannot be used for building. I think this can be corrected by reorganizing some macro condinitional. I have created a patch to solve the problem but it probably needs some review and testing.

Patch file attached.


Patches

pdo-mysql-4.0-proposed-fix (last revision 2010-03-10 11:51 UTC by aron dot ujvari at microsec dot hu)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-10 22:06 UTC] jani@php.net
-Package: Compile Failure +Package: PDO related
 [2010-03-23 17:31 UTC] uw@php.net
Well, if you ask me, MySQL 4.0 is out of the game, http://www.mysql.de/about/legal/lifecycle/ . MySQL finally stopped supporting 4.0 about 1.5yrs ago.
 [2010-04-23 16:14 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql
 [2010-08-05 15:29 UTC] johannes@php.net
Automatic comment from SVN on behalf of johannes
Revision: http://svn.php.net/viewvc/?view=revision&revision=301877
Log: - Drop (broken) support for libmysql 3.23 and 4.0 from pdo_mysql, see bug #51259
 [2010-08-18 12:50 UTC] johannes@php.net
-Status: Assigned +Status: Wont fix
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 13:01:30 2024 UTC