From: grikdotnet at aim dot com Operating system: Linux PHP version: 5.1.2 PHP Bug Type: MySQLi related Bug description: segfault when access result->num_rows after calling result->close()
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 bug report at http://bugs.php.net/?id=36420&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36420&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36420&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36420&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36420&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36420&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36420&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36420&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36420&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36420&r=support Expected behavior: http://bugs.php.net/fix.php?id=36420&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36420&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36420&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36420&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36420&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36420&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36420&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36420&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36420&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36420&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36420&r=mysqlcfg