|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-05 20:33 UTC] georg@php.net
[2010-12-20 11:42 UTC] jani@php.net
-Package: Tidy
+Package: MySQL related
-Assigned To:
+Assigned To: jani
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 00:00:02 2025 UTC |
Description: ------------ Use of $result->num_rows in any case causes PHP/Apache crash. Env: Windows XP Apache 2.0.48 MySQL 4.1.2 alpha PHP RC2 (in previous releases the bug also existed) php.ini: zend.ze1_compatibility_mode = Off allow_call_time_pass_reference = Off error_reporting = E_ALL register_argc_argv = Off extension_dir = "./" extension=php_mysqli.dll extension=php_mysql.dll extension=php_gd2.dll extension=php_imap.dll extension=php_tidy.dll Reproduce code: --------------- if($stmt = $sql->prepare('...')) { $stmt->bind_param('s', $s); $s = 'cat'; $stmt->execute(); $stmt->num_rows; OR if($stmt->num_rows > 0) { In other words, any use of num_rows. Expected result: ---------------- I expect that no crash will happen:) Actual result: -------------- Internal Server Error Error report: szAppName : php-cgi.exe szAppVer : 5.0.0.0 szModName : php_mysqli.dll szModVer : 5.0.0.0 offset : 000094b6