rasmus                                   Tue, 01 Dec 2009 21:39:19 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291572

Log:
Fix broken build.
This constant is not in older versions of MySQL.

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/mysqli/mysqli_api.c
    U   php/php-src/trunk/ext/mysqli/mysqli_api.c

Modified: php/php-src/branches/PHP_5_3/ext/mysqli/mysqli_api.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysqli/mysqli_api.c        2009-12-01 
21:23:29 UTC (rev 291571)
+++ php/php-src/branches/PHP_5_3/ext/mysqli/mysqli_api.c        2009-12-01 
21:39:19 UTC (rev 291572)
@@ -1604,7 +1604,9 @@
 #endif
 #endif /* MYSQLI_USE_MYSQLND */
                case MYSQL_OPT_CONNECT_TIMEOUT:
+#ifdef MYSQL_REPORT_DATA_TRUNCATION
                 case MYSQL_REPORT_DATA_TRUNCATION:
+#endif
                 case MYSQL_OPT_LOCAL_INFILE:
                 case MYSQL_OPT_NAMED_PIPE:
 #ifdef MYSQL_OPT_PROTOCOL

Modified: php/php-src/trunk/ext/mysqli/mysqli_api.c
===================================================================
--- php/php-src/trunk/ext/mysqli/mysqli_api.c   2009-12-01 21:23:29 UTC (rev 
291571)
+++ php/php-src/trunk/ext/mysqli/mysqli_api.c   2009-12-01 21:39:19 UTC (rev 
291572)
@@ -1657,7 +1657,9 @@
 #endif
 #endif /* MYSQLI_USE_MYSQLND */
                case MYSQL_OPT_CONNECT_TIMEOUT:
+#ifdef MYSQL_REPORT_DATA_TRUNCATION
                 case MYSQL_REPORT_DATA_TRUNCATION:
+#endif
                 case MYSQL_OPT_LOCAL_INFILE:
                 case MYSQL_OPT_NAMED_PIPE:
 #ifdef MYSQL_OPT_PROTOCOL

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to