ID:               44982
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pcdinh at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         MySQL related
 Operating System: CentOS 5.1
 PHP Version:      5.3CVS-2008-05-13 (CVS)
 Assigned To:      andrey
 New Comment:

Please don't mix 5.2 and 5.3 code. Times are gone that this was a valid
*hack*...


Previous Comments:
------------------------------------------------------------------------

[2008-05-13 18:22:20] pcdinh at gmail dot com

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 this bug report at http://bugs.php.net/?id=44982&edit=1

Reply via email to