From: pcdinh at gmail dot com Operating system: CentOS 5.1 PHP version: 5.3CVS-2008-05-13 (CVS) PHP Bug Type: MySQL related Bug description: File ext/mysqlnd/php_mysqlnd_config.h is missing from mysqlnd
Description: ------------ When I tried to build Mysqlnd library with PHP 5.2.6 using ext/mysql, ext/mysqli, ext/mysqlnd from PHP 5.3 CVS as drop-in replacement to bundled ext/mysql, ext/mysqli in PHP 5.2.6, there were a lot of errors that occurred. One of messages showed that one file is missing /usr/local/src/php-5.2.6/ext/mysqlnd/mysqlnd_portability.h:35:46: error: ext/mysqlnd/php_mysqlnd_config.h: No such file or directory Reproduce code: --------------- Configure: ./configure --prefix=/usr/local/php \ --with-config-file-path=/usr/local/php \ --disable-cgi \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-curl \ --with-curlwrappers \ --with-pdo-oci=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server \ --with-pdo-sqlite \ --with-oci8=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server \ --with-zend-vm=GOTO \ --with-pdo-mysqlnd=mysqlnd \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-iconv \ --with-gd \ --with-png-dir=/usr/lib \ --with-jpeg-dir=/usr/lib \ --with-ttf \ --with-freetype-dir=/usr/include/freetype2 \ --with-zlib \ --with-bz2 \ --with-xmlrpc \ --with-mime-magic \ --without-pear \ --enable-dom \ --enable-calendar \ --enable-sysvsem \ --enable-sysvshm \ --enable-bcmath \ --enable-ctype \ --enable-exif \ --enable-ftp \ --enable-sockets \ --enable-shmop \ --enable-wddx \ --enable-gd-native-ttf \ --enable-mbstring \ --enable-inline-optimization \ --enable-debug=no \ --enable-mbregex \ --disable-magic-quotes \ --enable-zip \ --enable-spl \ --enable-libxml \ --enable-simplexml \ --enable-soap \ --enable-sigchild \ --disable-static Expected result: ---------------- Build process should go smoothly or at least php_mysqlnd_config.h should exist. Actual result: -------------- After a while, there were a lot of errors that occurred In file included from /usr/local/src/php-5.2.6/ext/mysqlnd/mysqlnd.h:59, from /usr/local/src/php-5.2.6/ext/mysql/php_mysql_structs.h:39, from /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:69: /usr/local/src/php-5.2.6/ext/mysqlnd/mysqlnd_portability.h:35:46: error: ext/mysqlnd/php_mysqlnd_config.h: No such file or directory /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:237: warning: initialization discards qualifiers from pointer target type /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:242: warning: initialization discards qualifiers from pointer target type /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c: In function 'zif_mysql_db_query': /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1465: error: 'E_DEPRECATED' undeclared (first use in this function) /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1465: error: (Each undeclared identifier is reported only once /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1465: error: for each function it appears in.) /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c: In function 'zif_mysql_escape_string': /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1765: error: 'E_DEPRECATED' undeclared (first use in this function) make: *** [ext/mysql/php_mysql.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=44982&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44982&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44982&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44982&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44982&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44982&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44982&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44982&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44982&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44982&r=support Expected behavior: http://bugs.php.net/fix.php?id=44982&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44982&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44982&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44982&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44982&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44982&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44982&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44982&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44982&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44982&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44982&r=mysqlcfg