Edit report at https://bugs.php.net/bug.php?id=39058&edit=1
ID: 39058 Comment by: dbabits at gmail dot com Reported by: mpcribeiro at yahoo dot com Summary: Memory Leak Status: No Feedback Type: Bug Package: Sybase-ct (ctlib) related Operating System: Solaris 10 PHP Version: 5.1.6 Block user comment: N Private report: N New Comment: getting the same problem. -PHP 5.4.3 (cgi-fcgi) (built: May 9 2013 17:03:23) -built --with-sybase-ct=/path/to/freetds -code: $con = sybase_connect('server', 'user', 'pwd'); $q = sybase_query("select col=1", $con); Output: <b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 30064771074 bytes) Previous Comments: ------------------------------------------------------------------------ [2009-09-23 04:45:09] gi_mike2002 at yahoo dot com No movement on this since 2006?! tsk, tsk... ------------------------------------------------------------------------ [2008-06-24 14:55:08] jjsainzc at gmail dot com I'm use freetds and php5.1.6 I have the same problem: Source (part): $connect_sybase_id=sybase_connect("Database","login","pass"); if ($connect_sybase_id) echo "Conectado\n"; else echo "No conectado\n"; if (sybase_select_db("Database")) echo "Seleccionada la base\n"; else echo "No pude seleccionar la base\n"; $query="SELECT field FROM DBA.tabla WHERE codigo=1"; $result = false; $result = sybase_query($query); if ($result) { $r=sybase_fetch_row($result); echo "Resultado\n"; print_r($r); } else echo "No pude hacer el query\n"; sybase_close($connect_sybase_id); Result: Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 56 bytes) in /home/support/prueba.php on line 30 ------------------------------------------------------------------------ [2008-06-13 09:46:49] daniel dot buschke at nextiraone dot de Noticed that mpcribeiro is using sybase bindings. I use freetds! So it is not a problem of the bindings, is it? ------------------------------------------------------------------------ [2008-06-13 09:44:21] daniel dot buschke at nextiraone dot de # php -v PHP 5.2.6RC4-pl0-gentoo (cli) (built: Jun 13 2008 11:18:19) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies Still the same problem. Please reopen 'cause bug seems not fixed. Let me know how I can provide further informations - if needed. ------------------------------------------------------------------------ [2008-03-03 07:33:51] kristjan at laborint dot com Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2560000 bytes) PHP: PHP Version 5.2.5 System: Linux z37 2.6.9-67.0.4.ELsmp #1 SMP Sun Feb 3 07:06:14 EST 2008 x86_64 Server API: CGI/FastCGI Sybase: Client API Version $Id: dblib.c,v 1.244.2.1 2006/01/31 08:45:20 freddy77 Exp $ ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=39058 -- Edit this bug report at https://bugs.php.net/bug.php?id=39058&edit=1