From: Operating system: Freebsd 8.2 PHP version: 5.3.6 Package: InterBase related Bug Type: Bug Bug description:Don't work shared module php5-interbase
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 bug report at http://bugs.php.net/bug.php?id=54914&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54914&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54914&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54914&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54914&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54914&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54914&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54914&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54914&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54914&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54914&r=support Expected behavior: http://bugs.php.net/fix.php?id=54914&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54914&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54914&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54914&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54914&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54914&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54914&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54914&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54914&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54914&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54914&r=mysqlcfg