|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-02 09:59 UTC] shtabnoi at mail dot ru
[2008-04-07 09:09 UTC] roman dot demenkov at gmail dot com
[2008-08-13 19:01 UTC] jani@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 15:00:01 2025 UTC |
Description: ------------ ibase_connect Apache/2.2.6 (FreeBSD) [Fri Mar 28 13:43:17 2008] [notice] child pid 1840 exit signal Segmentation fault (11) Firebird-2.0.3 runs normally (isq, EMS SQL Manager and so on) Any php code without ibase_ functions runs normally. Reproduce code: --------------- class TDB { var $host; var $dbh; var $username; var $password; var $SQL; var $rows; var $error; var $rowcount; var $fields; function TDB($h,$u,$p) { $this->host=$h; $this->username=$u; $this->password=$p; $this->dbh=$this->Connect(); } function Connect() { $this->dbh=ibase_connect($this->host,$this->username,$this->password); } Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x28401100 (LWP 100072)] 0x28be3dff in ThreadData::restoreSpecific () from /usr/local/lib/libfbclient.so.2 (gdb) (gdb) bt #0 0x28be3dff in ThreadData::restoreSpecific () from /usr/local/lib/libfbclient.so.2 #1 0x28bf8c5f in return_success () from /usr/local/lib/libfbclient.so.2 #2 0x28c0061a in REM_attach_database () from /usr/local/lib/libfbclient.so.2 #3 0x28bedb1b in isc_attach_database () from /usr/local/lib/libfbclient.so.2 #4 0x288fb44e in _php_ibase_attach_db (args=0xbfbfcc00, len=0xbfbfcbec, largs=0xbfbfcc3c, db=0xbfbfcc54) at /tmp/php-5.2.5/ext/interbase/interbase.c:614 #5 0x288fb7da in _php_ibase_connect (ht=Variable "ht" is not available. ) at /tmp/php-5.2.5/ext/interbase/interbase.c:718 #6 0x28aa67dc in zend_do_fcall_common_helper_SPEC (execute_data=0xbfbfcdc0) at zend_vm_execute.h:200 #7 0x28a98f5f in execute (op_array=0x28f1afcc) at zend_vm_execute.h:92 #8 0x28aa624b in zend_do_fcall_common_helper_SPEC (execute_data=0xbfbfcfa0) at zend_vm_execute.h:234 #9 0x28a98f5f in execute (op_array=0x28f1abe8) at zend_vm_execute.h:92 #10 0x28aa624b in zend_do_fcall_common_helper_SPEC (execute_data=0xbfbfd310) at zend_vm_execute.h:234 #11 0x28a98f5f in execute (op_array=0x28f17c80) at zend_vm_execute.h:92 #12 0x28a7c0fa in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /tmp/php-5.2.5/Zend/zend.c:1134 #13 0x28a3cc35 in php_execute_script (primary_file=0xbfbfe8e8) at /tmp/php-5.2.5/main/main.c:2004 #14 0x28af406b in php_handler (r=0x2900c050) at /tmp/php-5.2.5/sapi/apache2handler/sapi_apache2.c:631 #15 0x080743a9 in ap_run_handler () #16 0x08077677 in ap_invoke_handler () #17 0x080822d0 in ap_process_request () #18 0x0807f5fb in ap_process_http_connection () #19 0x0807b4c9 in ap_run_process_connection () #20 0x08086577 in child_main () #21 0x08086843 in make_child () #22 0x080873f1 in ap_mpm_run () #23 0x08061fa5 in main ()