|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36420 segfault when access result->num_rows after calling result->close()
Submitted: 2006-02-16 16:32 UTC Modified: 2006-02-16 17:05 UTC
From: grikdotnet at aim dot com Assigned:
Status: Closed Package: MySQLi related
PHP Version: 5.1.2 OS: Linux
Private report: No CVE-ID: None
 [2006-02-16 16:32 UTC] grikdotnet at aim dot com
I think, the bug #29656 (closed for 5.0.1) persists in 5.1.2

Segfault when trying to access 
after calling $result->close() method

Reproduce code:
$mysqli = new mysqli('localhost','user','pass','db');
$result = $mysqli->query('select 1');

echo $result->num_rows;



Expected result:

Actual result:
segmentation fault

I can post backtrace a bit later when recompile PHP with debugging if required.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-16 17:05 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 23:01:31 2024 UTC