#32480 [Fbk->Opn]: PHP exiting with non-zero status or seg fault
| From: | steve dot cersosimo at bellsouth dot com | Date: | Tue, 29 Mar 2005 15:44:58 +0000 |
| Subject: | #32480 [Fbk->Opn]: PHP exiting with non-zero status or seg fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75988@lists.php.net to get a copy of this message | ||
ID: 32480
User updated by: steve dot cersosimo at bellsouth dot com
Reported By: steve dot cersosimo at bellsouth dot com
-Status: Feedback
+Status: Open
Bug Type: OCI8 related
Operating System: Solaris 5.8
PHP Version: 5.0.3
New Comment:
That seems to have fixed the problem. Should I wait for an official
release, or is it safe to run the code you provided in a production
environment.
Unless it is too much for this format, what was the problem?
Previous Comments:
------------------------------------------------------------------------
[2005-03-29 11:09:26] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2005-03-29 11:01:48] steve dot cersosimo at bellsouth dot com
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 this bug report at http://bugs.php.net/?id=32480&edit=1