php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38740 mysqli_stmt::$errno not available
Submitted: 2006-09-07 10:50 UTC Modified: 2006-09-28 04:57 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dave at psntn dot com Assigned: georg (profile)
Status: Closed Package: MySQLi related
PHP Version: 6CVS-2006-09-07 (CVS) OS: Linux (SUSE 9.3)
Private report: No CVE-ID: None
 [2006-09-07 10:50 UTC] dave at psntn dot com
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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-07 10:57 UTC] tony2001@php.net
>This might be due to the extension not having been upgraded for unicode

Yes.
Assigned to the maintainer.
 [2006-09-28 04:57 UTC] georg@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Unicode support for mysqli is now available.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC