Hello all,
My configure command is as follows:
./configure --disable-xml --disable-dom --disable-libxml
--disable-simplexml --without-pear --disable-xmlreader
--disable-xmlwriter --without-iconv
I then archive the result and use it to build various PHP extensions,
among which MySQLi.
Since I did not configure with mysqlnd, I do not have ext/mysqlnd copied
onto $PHP_PREFIX/include/php/ext, causing this following code to fail
compilation:
#include "ext/mysqlnd/mysqlnd_portability.h"
Attached is a suggested patch for php-5.3.1/ext/mysqli/mysqli.c and
php-5.3.1/ext/mysqli/mysqli_api.c, basically:
+#ifdef MYSQLI_USE_MYSQLND
#include "ext/mysqlnd/mysqlnd_portability.h"
+#endif
Thanks in advance,
--
May the source be with you,
Best regards,
Jess Portnoy
--- php-5.3.1/ext/mysqli/mysqli.c 2009-10-14 15:51:25.000000000 +0200
+++ php-5.3.1/ext/mysqli/mysqli.c.mod 2010-01-11 18:04:57.000000000 +0200
@@ -32,7 +32,9 @@
#include "ext/standard/php_string.h"
#include "php_mysqli_structs.h"
#include "zend_exceptions.h"
+#ifdef MYSQLI_USE_MYSQLND
#include "ext/mysqlnd/mysqlnd_portability.h"
+#endif
ZEND_DECLARE_MODULE_GLOBALS(mysqli)
static PHP_GINIT_FUNCTION(mysqli);
--- php-5.3.1/ext/mysqli/mysqli_api.c 2009-10-14 15:51:25.000000000 +0200
+++ php-5.3.1/ext/mysqli/mysqli_api.c.mod 2010-01-11 18:25:23.000000000 +0200
@@ -31,7 +31,9 @@
#include "php_globals.h"
#include "ext/standard/info.h"
#include "php_mysqli_structs.h"
+#ifdef MYSQLI_USE_MYSQLND
#include "ext/mysqlnd/mysqlnd_portability.h"
+#endif
/* {{{ proto mixed mysqli_affected_rows(object link)
Get number of affected rows in previous MySQL operation */
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php