|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-05-10 22:28 UTC] alahaye at fmlogistic dot com
Description:
------------
When using sybase_free_result, apache Segmentation fault.
PB doesn't exist with PHP 4.3.4.
Reproduce code:
---------------
<?
$query = "EXEC MyPROC";
$id = sybase_connect(SERVER,LOGIN,PASSWORD);
sybase_select_db(BASE,$id);
$result = sybase_query($query,$id);
While ($row = sybase_fetch_row ($result))
{
print $row[0]."<BR>";
}
sybase_free_result($result);
sybase_close($id);
?>
Expected result:
----------------
result of stored procedure
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
Here the backtrace (gdb) bt #0 0x40ba7df0 in chunk_free (ar_ptr=0x40c50f00, p=0x8436518) at malloc.c:3131 #1 0x40ba7d59 in __libc_free (mem=0x84368e8) at malloc.c:3054 #2 0x0816ed49 in shutdown_memory_manager (silent=0, clean_cache=0) at /users/sources/php/php-4.3.6/Zend/zend_alloc.c:492 #3 0x08154c44 in php_request_shutdown (dummy=0x0) at /users/sources/php/php-4.3.6/main/main.c:1003 #4 0x0819870d in main (argc=2, argv=0xbffff70c) at /users/sources/php/php-4.3.6/sapi/cli/php_cli.c:873 #5 0x40b44177 in __libc_start_main (main=0x8197bd4 <main>, argc=2, ubp_av=0xbffff70c, init=0x8086330 <_init>, fini=0x82500c0 <_fini>, rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff6fc) at ../sysdeps/generic/libc-start.c:129