From:             steve dot cersosimo at bellsouth dot com
Operating system: Solaris 5.8
PHP version:      5.0.3
PHP Bug Type:     OCI8 related
Bug description:  PHP exiting with non-zero status or seg fault

Description:
------------
I currently have my Oracle 8 environment set up properly as far as I can
tell.  With the simple code below, I do not understand why PHP is exiting
with a 255.  I think it should exit with a 0 status.  In other cases I get
a segmentation fault, but I believe if the problem here is solved, the seg
fault will go away.

Interestingly, the connection works fine, I can query and update
perfectly.  This is causing me problems when it generates a segmentation
fault and dumps that string to the browser.

Reproduce code:
---------------
# cat ocitest
#!/usr/local/bin/php
<?php
 error_reporting(E_ALL);

 $db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
                     (HOST = 172.16.0.153)(PORT=1521))
                     (CONNECT_DATA=(SERVICE_NAME=SPEED.WORLD)))";
 $connection = oci_connect("speed", "pass", $db);
 var_dump($connection);
?>
# ocitest
resource(6) of type (oci8 connection)
# echo $?
255


-- 
Edit bug report at http://bugs.php.net/?id=32480&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32480&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32480&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32480&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32480&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32480&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32480&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32480&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32480&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32480&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32480&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32480&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32480&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32480&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32480&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32480&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32480&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32480&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32480&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32480&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32480&r=mysqlcfg

Reply via email to