Edit report at http://bugs.php.net/bug.php?id=54914&edit=1
ID: 54914 User updated by: mr dot efrem at gmail dot com Reported by: mr dot efrem at gmail dot com Summary: Don't work shared module php5-interbase -Status: Open +Status: Closed Type: Bug Package: InterBase related Operating System: Freebsd 8.2 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: All it's work. I compile lang/php5 without option Link Threaded. Previous Comments: ------------------------------------------------------------------------ [2011-05-24 07:23:44] mr dot efrem at gmail dot com Description: ------------ If i build lang/php5-extensions with module interbase then don't work connect firebird. If build lang/php5 with argument in MakeFile "--with-interbase=/usr/local" then connect it's work. Test script: --------------- <?php $link=ibase_connect('test:base_test.gdb','user','user','win1251',0,1,'main'); ?> Actual result: -------------- In the course of debugging by means of GDB I have pressed Ctrl-C because the program hangs up, can be goes in cycles. (gdb) run temp.php Starting program: /usr/local/bin/php temp.php [New LWP 100068] [New Thread 80171b1c0 (LWP 100068)] ^C Program received signal SIGINT, Interrupt. [Switching to Thread 80171b1c0 (LWP 100068)] 0x000000080228b3ca in __error () from /lib/libthr.so.3 (gdb) bt #0 0x000000080228b3ca in __error () from /lib/libthr.so.3 #1 0x000000080228b0bc in __error () from /lib/libthr.so.3 #2 0x0000000802285f5a in pthread_mutex_getprioceiling () from /lib/libthr.so.3 #3 0x0000000802286b4d in pthread_mutex_trylock () from /lib/libthr.so.3 #4 0x00000008013489c9 in _malloc_prefork () from /lib/libc.so.7 #5 0x000000080134b011 in calloc () from /lib/libc.so.7 #6 0x0000000802285d78 in pthread_mutexattr_init () from /lib/libthr.so.3 #7 0x0000000802286004 in pthread_mutex_getprioceiling () from /lib/libthr.so.3 #8 0x0000000802286b4d in pthread_mutex_trylock () from /lib/libthr.so.3 #9 0x00000008013489c9 in _malloc_prefork () from /lib/libc.so.7 #10 0x000000080134b631 in malloc () from /lib/libc.so.7 #11 0x0000000802287c85 in pthread_kill () from /lib/libthr.so.3 #12 0x000000080228157d in pthread_create () from /lib/libthr.so.3 #13 0x0000000801c7c3ad in ThreadStart::start () from /usr/local/lib/libfbclient.so.2 #14 0x0000000801c7c419 in gds__thread_start () from /usr/local/lib/libfbclient.so.2 #15 0x0000000801c80eaf in (anonymous namespace)::YEntry::YEntry () from /usr/local/lib/libfbclient.so.2 #16 0x0000000801c8d983 in isc_attach_database () from /usr/local/lib/libfbclient.so.2 #17 0x0000000801b3b5a1 in _php_ibase_attach_db () from /usr/local/lib/php/20090626-debug/interbase.so #18 0x0000000801b3bc14 in _php_ibase_connect () from /usr/local/lib/php/20090626-debug/interbase.so #19 0x0000000801b3bf1b in zif_ibase_connect () from /usr/local/lib/php/20090626-debug/interbase.so #20 0x000000000066463c in zend_do_fcall_common_helper_SPEC (execute_data=0x8058c0098) at zend_vm_execute.h:316 #21 0x000000000066a79e in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x8058c0098) at zend_vm_execute.h:1606 #22 0x000000000066360a in execute (op_array=0x80163cce0) at zend_vm_execute.h:107 #23 0x000000000062a07d in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/ports/lang/php5/work/php-5.3.6/Zend/zend.c:1266 #24 0x00000000005a77d2 in php_execute_script (primary_file=0x7fffffffe9c0) at /usr/ports/lang/php5/work/php-5.3.6/main/main.c:2283 #25 0x000000000072436a in main (argc=2, argv=0x7fffffffeb80) at /usr/ports/lang/php5/work/php-5.3.6/sapi/cli/php_cli.c:1197 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54914&edit=1