Home » Database » DB » Bug #5451
segment error
Details
| Submitted | 2005-09-19 06:45 UTC |
|---|---|
| From | dozoyousan at gmail dot com |
| Assigned | lsmith |
| Status | Closed |
| Package | DB |
| PHP Version | 4.4.0 |
| OS | Linux debian 2.6.8-1-386 |
| Roadmaps | (Not assigned) |
Comments
[2005-09-19 06:45 UTC] dozoyousan at gmail dot com
Description:
------------
Hello.
I use PEAR::DB 1.7.6 with firebird 1.5.3 and php4.4(cli) database.
If execute test script then echo "Segment Error" and shutdown script.
But If I use PEAR::MDB and almost same script
("change DB => MDB")
then successful.
Test script:
---------------
<?
require_once("DB.php");
// configure firebird
$phptype = "ibase(firebird)";
$username = "SYSDBA";
$password = "masterkey";
$hostspec = "localhost";
$port = "3050";
$dbfile = "/opt/firebird/examples/employee.fdb";
$dsn = "$phptype://$username:$password@$hostspec:$port/$dbfile";
// start connection
$dbObj = & DB :: connect( $dsn );
$stmt = "SELECT PO_NUMBER, ORDER_STATUS, ITEM_TYPE FROM SALES";
$result = & $dbObj->getAll( $stmt );
print_r( $result );
?>
Expected result:
----------------
Segment Error