mysqli parse error

php.internals

Juergen Mueller

22 years ago
hi, got the following parsing error with latest php5 snapshot and php5beta4. ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/install/mysql/ --with-apxs2=/usr/local/apache/bin/apxs /install/php-5.0.0b4/ext/mysqli/php_mysqli.h:48: parse error before `MYSQL_STMT' /install/php-5.0.0b4/ext/mysqli/php_mysqli.h:48: warning: no semicolon at end of struct or union /install/php-5.0.0b4/ext/mysqli/php_mysqli.h:51: parse error before `}' /install/php-5.0.0b4/ext/mysqli/php_mysqli.h:51: warning: data definition has no type or storage class /install/php-5.0.0b4/ext/mysqli/php_mysqli.h:108: parse error before `*' /install/php-5.0.0b4/ext/mysqli/mysqli.c:90: parse error before `*' /install/php-5.0.0b4/ext/mysqli/mysqli.c: In function `php_clear_stmt_bind': /install/php-5.0.0b4/ext/mysqli/mysqli.c:92: `stmt' undeclared (first use in this function) /install/php-5.0.0b4/ext/mysqli/mysqli.c:92: (Each undeclared identifier is reported only once /install/php-5.0.0b4/ext/mysqli/mysqli.c:92: for each function it appears in.) /install/php-5.0.0b4/ext/mysqli/mysqli.c: In function `mysqli_objects_free_storage': /install/php-5.0.0b4/ext/mysqli/mysqli.c:121: parse error before `)' /install/php-5.0.0b4/ext/mysqli/mysqli.c: In function `zm_startup_mysqli': /install/php-5.0.0b4/ext/mysqli/mysqli.c:448: `MYSQL_NO_DATA' undeclared (first use in this function) /install/php-5.0.0b4/ext/mysqli/mysqli.c: In function `php_mysqli_fetch_into_hash': /install/php-5.0.0b4/ext/mysqli/mysqli.c:557: parse error before `)' make: *** [ext/mysqli/mysqli.lo] Error 1
-- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz

Jani Taskinen

22 years ago
Get the latest CVS snapshot from http://snaps.php.net as this and many other problems have already been fixed. --Jani On Tue, 9 Mar 2004, Juergen Mueller wrote:

Juergen Mueller

22 years ago
> Get the latest CVS snapshot from http://snaps.php.net > as this and many other problems have already been fixed. > > --Jani
sorry, but with the latest CVS snapshot from http://snaps.php.net I got the same Error: /bin/sh /install/php5-200403100030/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/ctype/ -I/install/php5-200403100030/ext/ctype/ -DPHP_ATOM_INC -I/install/php5-200403100030/include -I/install/php5-200403100030/main -I/install/php5-200403100030 -I/install/php5-200403100030/Zend -I/install/mysql//include/mysql -I/usr/local/mysql/include/mysql -I/install/php5-200403100030/TSRM -g -O2 -prefer-pic -c /install/php5-200403100030/ext/ctype/ctype.c -o ext/ctype/ctype.lo /bin/sh /install/php5-200403100030/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysql/ -I/install/php5-200403100030/ext/mysql/ -DPHP_ATOM_INC -I/install/php5-200403100030/include -I/install/php5-200403100030/main -I/install/php5-200403100030 -I/install/php5-200403100030/Zend -I/install/mysql//include/mysql -I/usr/local/mysql/include/mysql -I/install/php5-200403100030/TSRM -g -O2 -prefer-pic -c /install/php5-200403100030/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo /bin/sh /install/php5-200403100030/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysqli/ -I/install/php5-200403100030/ext/mysqli/ -DPHP_ATOM_INC -I/install/php5-200403100030/include -I/install/php5-200403100030/main -I/install/php5-200403100030 -I/install/php5-200403100030/Zend -I/install/mysql//include/mysql -I/usr/local/mysql/include/mysql -I/install/php5-200403100030/TSRM -g -O2 -prefer-pic -c /install/php5-200403100030/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo In file included from /install/php5-200403100030/ext/mysqli/mysqli.c:31: /install/php5-200403100030/ext/mysqli/php_mysqli.h:47: error: parse error before "MYSQL_STMT" /install/php5-200403100030/ext/mysqli/php_mysqli.h:47: warning: no semicolon at end of struct or union /install/php5-200403100030/ext/mysqli/php_mysqli.h:50: error: parse error before '}' token /install/php5-200403100030/ext/mysqli/php_mysqli.h:50: warning: data definition has no type or storage class /install/php5-200403100030/ext/mysqli/php_mysqli.h:107: error: parse error before '*' token /install/php5-200403100030/ext/mysqli/mysqli.c:90: error: parse error before '*' token /install/php5-200403100030/ext/mysqli/mysqli.c: In function `php_clear_stmt_bind': /install/php5-200403100030/ext/mysqli/mysqli.c:92: error: `stmt' undeclared (first use in this function) /install/php5-200403100030/ext/mysqli/mysqli.c:92: error: (Each undeclared identifier is reported only once /install/php5-200403100030/ext/mysqli/mysqli.c:92: error: for each function it appears in.) /install/php5-200403100030/ext/mysqli/mysqli.c: In function `mysqli_objects_free_storage': /install/php5-200403100030/ext/mysqli/mysqli.c:121: error: parse error before ')' token /install/php5-200403100030/ext/mysqli/mysqli.c: In function `zm_startup_mysqli': /install/php5-200403100030/ext/mysqli/mysqli.c:450: error: `MYSQL_NO_DATA' undeclared (first use in this function) /install/php5-200403100030/ext/mysqli/mysqli.c: In function `php_mysqli_fetch_into_hash': /install/php5-200403100030/ext/mysqli/mysqli.c:559: error: parse error before ')' token best regards juergen mueller
-- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz