ID: 46660 Updated by: [email protected] Reported By: michael at laccetti dot com -Status: Open +Status: Feedback Bug Type: MSSQL related Operating System: Solaris 10 (SPARC) PHP Version: 5.2.6 New Comment:
Any chance you could provide some more information, such as: MSSQL version, query trying to execute, tables in a reproduce script that always fails. Does this happen on other systems than Solaris, etc. Previous Comments: ------------------------------------------------------------------------ [2008-11-26 23:37:16] michael at laccetti dot com Well, I have a strange problem - when I turn --enable-debug on, the crash stops crashing - everything works as expected. If I turn it off, it breaks again. Without --enable-debug, I cannot create the backtrace. ------------------------------------------------------------------------ [2008-11-24 18:52:56] [email protected] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2008-11-24 16:35:38] michael at laccetti dot com Description: ------------ After calling a stored procedure that returns multiple resultsets, trying to call mssql_next_result causes PHP to coredump. Reproduce code: --------------- $this->RecordSet = mssql_query($query, $this->DBConn ); if(mssql_next_result($this->RecordSet)) { error_log("We got more results!"); } else { error_log("No more results. Waah."); } Expected result: ---------------- I expect to see either "We got more results" or "No more results. Waah." in the logs. Actual result: -------------- [Mon Nov 24 11:18:03 2008] [notice] child pid 5515 exit signal Bus error (10), possible coredump in /usr/local/apache2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46660&edit=1
