#42145 [Fbk->Opn]: mysqli extension can't compile with Mysql 5.1.20-beta release
| From: | thierry dot darnaudet at thalesatm dot com | Date: | Tue, 31 Jul 2007 06:44:13 +0000 |
| Subject: | #42145 [Fbk->Opn]: mysqli extension can't compile with Mysql 5.1.20-beta release | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115579@lists.php.net to get a copy of this message | ||
ID: 42145
User updated by: thierry dot darnaudet at thalesatm dot com
Reported By: thierry dot darnaudet at thalesatm dot com
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: Linux
PHP Version: 5.2.3
New Comment:
The last snapshot fixed my compilation problem!
That's OK for me
Thanks
Previous Comments:
------------------------------------------------------------------------
[2007-07-30 15:47:01] scottmac@php.net
Did the snapshot work for you?
------------------------------------------------------------------------
[2007-07-30 14:57:57] 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 14:51:35] 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:20:33] 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!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42145&edit=1