Segfault using ibase (firebird) with PEAR

From: Date: Sun, 16 Nov 2003 03:24:18 +0000
Subject: Segfault using ibase (firebird) with PEAR
Groups: php.general 
Request: Send a blank email to php-general+get-169801@lists.php.net to get a copy of this message
Hi folks, I'm very new to PHP and PEAR. But I'm having very strange troubles with this simple thing. I'm trying to run the following script into a php file: <?php require_once 'DB.php'; $db = DB::Connect('ibase(firebird)://SYSDBA:masterkey@192.168.1.254//var/lib/firebird/data/database.gdb'); // The same error ocurrs with or with out the (firebird) string in // the DSN $res = $db->query('SELECT * FROM USERS'); echo $res->numRows(); while ($row = $res->fetchRow()) { echo $row[0]; } ?> So simply, uh? But when the line containing "$res = $db->query('SELECT * FROM USERS');" is executed inmediatly I've a segfault of PHP in the Apache's access.log file and a 404 Error in my browser. Commenting this line out , the page is shown empty, as usual. Using ADODB or ibase* functions, the same procedure (stablish the connection, run the query and show the results) is done with out any problem. Thanx in advance, -- José Romero Sistemas JG Isla de Margarita - Venezuela mailto:sistemasjg@telcel.net.ve -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT$ d+(-) s+:+ a- C++(+++)$ UL>$ P+>++ L+>++$ !E W++ N++ ?o ?K w--(++)$ O-- M-(--) !V PS+ PE++ Y PGP t 5(+) X+ R tv+ b+ DI(+) D+ G(+) e++ h! r(-) y+ ------END GEEK CODE BLOCK------

« previous php.general (#169801) next »