php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42145 mysqli extension can't compile with Mysql 5.1.20-beta release
Submitted: 2007-07-30 14:20 UTC Modified: 2007-07-31 11:07 UTC
From: thierry dot darnaudet at thalesatm dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.3 OS: Linux
Private report: No CVE-ID: None
 [2007-07-30 14:20 UTC] thierry dot darnaudet at thalesatm dot com
Description:
------------
Since Mysql release 5.1.20-beta, 'gptr' char pointer (previously defined in include/mysql.h) does no more exist.
Consequently, as mysqli extension intensively needs this definition, the compilation crashes for this extension.

I propose to add these three lines within the ext/mysqli/mysqli.h file, just after the 'mysql.h' include line:

#if MYSQL_VERSION_ID > 50119
typedef char * gptr;
#endif

This works fine! 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-30 14:51 UTC] scottmac@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

Pretty sure this was fixed last week already.
 [2007-07-30 14:57 UTC] thierry dot darnaudet at thalesatm dot com
[Precision]It should be read 'ext/mysqli/php_mysqli.h' i.s.o. 'ext/mysqli/mysqli.h'
 [2007-07-30 15:47 UTC] scottmac@php.net
Did the snapshot work for you?
 [2007-07-31 06:44 UTC] thierry dot darnaudet at thalesatm dot com
The last snapshot fixed my compilation problem!
That's OK for me
Thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Dec 02 22:00:02 2025 UTC