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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: valery at blagovest dot com
New email:
PHP Version: OS:

 

 [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 19:01:30 2024 UTC