From: dave at psntn dot com Operating system: Linux (SUSE 9.3) PHP version: 6CVS-2006-09-07 (CVS) PHP Bug Type: MySQLi related Bug description: mysqli_stmt::$errno not available
Description: ------------ When using PHP6.0.0-dev (checked out from CVS, updated in the last 20 mins) the $errno property of mysqli_stmt is not defined. This only happens when unicode.semantics = on. This might be due to the extension not having been upgraded for unicode but I can't quickly find any list of the status of the various extensions. PHP Configure statement: ./configure --prefix=/srv/httpd/php6/php6 --with-apxs2=/srv/httpd/php6/httpd/bin/apxs --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql --with-pear --with-gd --with-png-dir=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-zlib-dir=/usr --enable-sockets --with-bz2 --with-dom --with-ftp --with-pdf --with-cpdf --with-sqlite --with-freetype-dir=/usr --enable-bcmath --with-tiff-dir=/usr --enable-exif --enable-simplexml --enable-soap --with-zip --enable-mbstring --enable-mbstr-enc-trans --disable-mbregex --with-curl --with-pdo --with-pdo_mysql=/usr/local/mysql/bin/mysql_config php.ini: unicode.semantics = on Reproduce code: --------------- http://php4.david-salisbury.co.uk/mysqli.phps Expected result: ---------------- unicode.semantics = off // just to show unicode semantics status Error code for insert of (1, 2, 3, 4): 0 Error code for insert of (1, 5, 6, 7): 1062 Actual result: -------------- unicode.semantics = on // just to show unicode semantics status Error code for insert of (1, 2, 3, 4): Notice: Undefined property: mysqli_stmt::$errno in /www/testingServer/php6test/mysqli.php on line 31 Error code for insert of (1, 5, 6, 7): Notice: Undefined property: mysqli_stmt::$errno in /www/testingServer/php6test/mysqli.php on line 41 -- Edit bug report at http://bugs.php.net/?id=38740&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38740&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38740&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38740&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38740&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38740&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38740&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38740&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38740&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38740&r=support Expected behavior: http://bugs.php.net/fix.php?id=38740&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38740&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38740&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38740&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38740&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38740&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38740&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38740&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38740&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38740&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38740&r=mysqlcfg