|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-24 16:22 UTC] jani@php.net
[2008-10-27 12:33 UTC] andrey@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 00:00:02 2025 UTC |
Description: ------------ When trying to compile PHP 5.3 Alpha2 against MySQL 4.0.21 the build would fail because a number of DEFINES and functions were not available in that version. A diff of my (semi-hack) fix is included. Reproduce code: --------------- --- php-5.3.0alpha2/ext/mysql/php_mysql.c 2008-08-06 15:25:03.000000000 -0400 +++ php-5.3.0alpha2-PATCHED/ext/mysql/php_mysql.c 2008-10-08 14:40:40.000000000 -0400 @@ -130,10 +130,23 @@ static MYSQLND_QCACHE *mysql_mysqlnd_qcache; #endif + +#ifndef CLIENT_MULTI_STATEMENTS +# define CLIENT_MULTI_STATEMENTS 0 +#endif + +#ifndef MYSQL_OPTION_MULTI_STATEMENTS_OFF +# define MYSQL_OPTION_MULTI_STATEMENTS_OFF 0 +#endif + +#if MYSQL_VERSION_ID >= 40101 #define MYSQL_DISABLE_MQ if (mysql->multi_query) { \ mysql_set_server_option(mysql->conn, MYSQL_OPTION_MULTI_STATEMENTS_OFF); \ mysql->multi_query = 0; \ } +#else +#define MYSQL_DISABLE_MQ +#endif /* {{{ mysql_functions[] */