ID: 36420 Updated by: [EMAIL PROTECTED] Reported By: grikdotnet at aim dot com -Status: Open +Status: Closed Bug Type: MySQLi related Operating System: Linux PHP Version: 5.1.2 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2006-02-16 16:32:22] grikdotnet at aim dot com Description: ------------ I think, the bug #29656 (closed for 5.0.1) persists in 5.1.2 Segfault when trying to access $result->num_rows after calling $result->close() method Reproduce code: --------------- <?php $mysqli = new mysqli('localhost','user','pass','db'); $result = $mysqli->query('select 1'); $result->close(); echo $result->num_rows; $mysqli->close(); ?> Expected result: ---------------- 1 Actual result: -------------- segmentation fault I can post backtrace a bit later when recompile PHP with debugging if required. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36420&edit=1