|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-30 14:17 UTC] sterling@php.net
[2004-06-29 22:33 UTC] fep at cs dot uiuc dot edu
[2004-06-29 23:04 UTC] danielc@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
Description: ------------ A simple PEAR DB test script causes a segfault. My configure line: ./configure' '--prefix=/home/mattm/local/php5-apache' '--with-apache=../apache_1.3.27' '--with-pgsql=/usr' '--with-gd=/home/mattm/local/php5-apache' '--with-freetype-dir=/home/mattm/local/php5-apache' '--with-jpeg-dir=/usr' '--enable-calendar' '--with-libxml-dir=/home/mattm/local/php5-apache' '--without-simplexml' '--enable-debug' Reproduce code: --------------- <?php error_reporting(E_ALL); require_once 'DB.php'; $db = Db::connect('pgsql://postgres:@127.0.0.1/mattm', false); if (Db::isError($db)) { die($db->getMessage()); } $res = $db->query("SELECT * FROM employee"); if (Db::isError($res)) { die($res->getMessage()); } ?> Expected result: ---------------- no output, but shouldn't segfault Actual result: -------------- (gdb) bt #0 0x80b64c8 in instanceof_function () #1 0x80c3399 in zend_startup_builtin_functions () #2 0x80c3404 in zend_startup_builtin_functions () #3 0x80d006f in zend_do_fcall_common_helper () #4 0x80d06a6 in zend_do_fcall_handler () #5 0x80cbb9b in execute () #6 0x80d01dd in zend_do_fcall_common_helper () #7 0x80d05aa in zend_do_fcall_by_name_handler () #8 0x80cbb9b in execute () #9 0x80b9979 in zend_execute_scripts () #10 0x8087fd3 in php_execute_script () #11 0x80d625a in apache_php_module_main () #12 0x807e1d6 in ap_get_server_built () #13 0x807e232 in ap_get_server_built () #14 0x81efa69 in ap_invoke_handler () #15 0x820560f in ap_some_auth_required () #16 0x8205676 in ap_process_request () #17 0x81fbf16 in ap_child_terminate () #18 0x81fc0d1 in ap_child_terminate () #19 0x81fc24c in ap_child_terminate () #20 0x81fc8dd in ap_child_terminate () #21 0x81fd14c in main () #22 0x4033165f in __libc_start_main () from /lib/libc.so.6