2008年12月9日星期二

[fw-db] segmentation fault error

Hello,

I'm not new to Zend DB, but now I've a strange segmentation fault.
My configuration:
- server: Ubuntu 8.04.1, Kernel Version 2.6.24-22-generic (SMP)
- PHP Version 5.2.4-2ubuntu5.3
- ZendFramework-1.7.0
- data base: PostgeSQL 8.3

Any command that call the db return a Seg Fault in the Apache and in the
console (PHP5-cli), anyway the code seems to work correctly, but in the
error.log of Apache or in the console I've the Seg Fault

I've done a small code for test:

<code>

$path_zend = $path_libs . "/ZendFramework-1.7.0";

...

require_once "Zend/Config/Xml.php";
require_once "Zend/Db/Table/Abstract.php";
require_once "Zend/Db.php";

$db_config = new Zend_Config_Xml("db_test_config.xml", "database");
echo $db_config->params->dbname; // TEST: prints "dbname"

$db = Zend_Db::factory($db_config);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
print_r($db->listTables()); //TEST: print db tables

</code>

The "echo" test do not return a Seg Fault, so the problem isn't in all the
Zend library
The "print_r" return the seg fault after print the tables in the db.

I try some query with the psql commands directly in the PostgreSQL and all
work well.


Thanks a lot!

--
View this message in context: http://www.nabble.com/segmentation-fault-error-tp20912766p20912766.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: