php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27888 php.exe Application error when calling sybase_free_result() function
Submitted: 2004-04-06 10:50 UTC Modified: 2004-04-06 11:01 UTC
From: eduard at seua dot am Assigned:
Status: Not a bug Package: Sybase-ct (ctlib) related
PHP Version: 4.3.5 OS: Windows XP
Private report: No CVE-ID: None
 [2004-04-06 10:50 UTC] eduard at seua dot am
Description:
------------
When calling sybase_free_result() "php.exe - Application Error" window appeared with the "The memory could not be "written"" message.

This is happen only when calling sybase_free_result() function.

OS: Windows XP (Version 5.1, Service Pack 1)
PHP Ver: 4.3.5 
Web Server: IIS (Version. 5.1)
PHP running in CGI mode
Sybase: Sybase ASE 12.5 (Sybase running on other Windows NT machine)



Reproduce code:
---------------
<?php 

$syb_con = sybase_connect("LOCAL_SYBASE", "sa", "");
sybase_select_db ("master", $syb_con);
$res = sybase_query("select * from spt_jdbc_conversion", $syb_con) or die(sybase_get_last_message());
while ($line = sybase_fetch_assoc($res))
	$all[] = $line;
sybase_free_result($res);
sybase_close($syb_con); 
?>

Expected result:
----------------
Associated result memory will be freed  without php.exe error.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-06 11:01 UTC] sniper@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.

See bug #27828
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed May 22 19:01:32 2019 UTC