|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-21 18:41 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 11:00:01 2025 UTC |
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.