ID:               43388
 User updated by:  bearsite at gmail dot com
 Reported By:      bearsite at gmail dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         InterBase related
 Operating System: FreeBSD/amd64 7.0_beta3
 PHP Version:      5.2.5
 New Comment:

I've solve this problem for me. In fact, I think, problem wath in
firebird-client2.0.3.
As a solution, I 've replace `libfbclient.so.2.0.3` (on my
FreeBSD/amd64  7.0_beta3) with a precompiled same file from
firebird-client-2.0.3.tbz package for FreeBSD/amd64 6.2STABLE . And than
rebuild `php5-interbase` and now everything looks fine.


Previous Comments:
------------------------------------------------------------------------

[2007-11-26 10:45:48] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi



------------------------------------------------------------------------

[2007-11-23 11:15:17] bearsite at gmail dot com

Description:
------------
It looks like php5 - works fine. Until I try to php5-interbase
functions.
# Options for php5-5.2.5
WITH_CLI=true
WITH_CGI=true
WITH_SUHOSIN=true
WITH_MULTIBYTE=true
WITH_FASTCGI=true
WITH_PATHINFO=true

And php5 compiled only with one extension 'php5-interbase'. No other
etnension is used.

Firebird-server running on the same mashine and it looks works fine, I
can simple connect and make queries from other mashine.
//firebird-client-2.0.3_1 //firebird-server-2.0.3_1

Reproduce code:
---------------
<? $ibdbc = ibase_connect ('localhost:/baza/DB1.GDB', 'SYSDBA',
'masterkey'); 
echo "OK"; 
?>

Expected result:
----------------
I expecting to see.
>'OK'

Actual result:
--------------
But every time I get: 
>'Segementation fault( core dumped )'
or 
>'Segementation fault: 11'


(gdb) bt
#0  0x000000080153abf9 in ThreadData::restoreSpecific () from
/usr/local/lib/libfbclient.so.2
#1  0x000000080154fc19 in error () from
/usr/local/lib/libfbclient.so.2
#2  0x0000000801557d66 in REM_attach_database () from
/usr/local/lib/libfbclient.so.2
#3  0x000000080154551b in isc_attach_database () from
/usr/local/lib/libfbclient.so.2
#4  0x000000080140732f in _php_ibase_attach_db () from
/usr/local/lib/php/20060613-debug/interbase.so
#5  0x00000008014078c2 in _php_ibase_connect () from
/usr/local/lib/php/20060613-debug/interbase.so
#6  0x0000000801407b7f in zif_ibase_connect () from
/usr/local/lib/php/20060613-debug/interbase.so
#7  0x0000000000594c09 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fffffffc7e0) at zend_vm_execute.h:200
#8  0x000000000059afc1 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x7fffffffc7e0) at zend_vm_execute.h:1681
#9  0x0000000000594697 in execute (op_array=0x801331558) at
zend_vm_execute.h:92
#10 0x0000000000594d98 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fffffffd0d0) at zend_vm_execute.h:234
#11 0x00000000005959a5 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fffffffd0d0) at zend_vm_execute.h:322
#12 0x0000000000594697 in execute (op_array=0x80132e718) at
zend_vm_execute.h:92
#13 0x0000000000569f76 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /usr/ports/lang/php5/work/php-5.2.5/Zend/zend.c:1215
#14 0x000000000050e410 in php_execute_script
(primary_file=0x7fffffffea10)
    at /usr/ports/lang/php5/work/php-5.2.5/main/main.c:2025
#15 0x00000000005f0325 in main (argc=2, argv=0x7fffffffeba0) at
/usr/ports/lang/php5/work/php-5.2.5/sapi/cli/php_cli.c:1146


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43388&edit=1

Reply via email to