php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28472 Call to mssql_free_result() crashes Apache
Submitted: 2004-05-21 14:17 UTC Modified: 2004-05-21 18:41 UTC
From: valery at blagovest dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.6 OS: FreeBSD 4.9-RELEASE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 31 = ?
Subscribe to this entry?

 
 [2004-05-21 14:17 UTC] valery at blagovest dot com
Description:
------------
Script in Reproduce code section cause crash.
If call to mssql_free_result() is commented all work fine.
This script worked on PHP 4.2.2 with no problem.
Database table from which select is performed contains integer and char fields (nothing unusual).

---------------------------
FreeBSD 4.9-RELEASE
Apache/1.3.22
PHP 4.3.6
Configure Command: '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf' '--with-sybase-ct=/usr/local/freetds' '--with-mysql=/usr/local/mysql' '--with-zlib' '--with-gettext' '--with-xml' '--with-imap=../imap-2004' 


Reproduce code:
---------------
mssql_connect('server', 'user', 'passw');
mssql_select_db('database');
$res = mssql_query('select * from Table');
while ($row = mssql_fetch_object($res)) {
  /* do smth */
}
mssql_free_result($res);


Expected result:
----------------
All but no crash.

Actual result:
--------------
Apache crashes with Segmentation Fault.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-21 18:41 UTC] iliaa@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Dupe of bug #28354 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 23:01:31 2024 UTC