Bug #67186 [NEW]: PHP 5.6.0beta2 fails to compile when compiling mysqli extension with libmysql
| From: | andy at webtatic dot com | Date: | Sat, 03 May 2014 07:13:20 +0000 |
| Subject: | Bug #67186 [NEW]: PHP 5.6.0beta2 fails to compile when compiling mysqli extension with libmysql | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185593@lists.php.net to get a copy of this message | ||
From: andy at webtatic dot com
Operating system: all
PHP version: 5.6.0beta2
Package: MySQLi related
Bug Type: Bug
Bug description:PHP 5.6.0beta2 fails to compile when compiling mysqli extension with libmysql
Description:
------------
Due to the way the new fetching mode for mysqlnd was added, it fails to
compile the extension with libmysql.
The reason is because of a typo in the non-mysqlnd constant definition
#define MYSQLI_STORE_RESULT_OFS 0
This should be
#define MYSQLI_STORE_RESULT_COPY_DATA 0
The constant is used outside of a #ifdef MYSQLI_USE_MYSQLN, and setting
it to 0 appears to be the correct way to use it from looking at how
MYSQLI_ASYNC works
Test script:
---------------
./configure --with-mysqli=shared,/usr/lib64/mysql/mysql_config
make
Expected result:
----------------
Successful compilation
Actual result:
--------------
ext/mysqli/mysqli_nonapi.c: In function 'zif_mysqli_query':
ext/mysqli/mysqli_nonapi.c:578: error: 'MYSQLI_STORE_RESULT_COPY_DATA'
undeclared (first use in this function)
ext/mysqli/mysqli_nonapi.c:578: error: (Each undeclared identifier is
reported only once
ext/mysqli/mysqli_nonapi.c:578: error: for each function it appears in.)
--
Edit bug report at https://bugs.php.net/bug.php?id=67186&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67186&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67186&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67186&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67186&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67186&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67186&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67186&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67186&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67186&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67186&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67186&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67186&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67186&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67186&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67186&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67186&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67186&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67186&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67186&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67186&r=mysqlcfg