#33124 [Opn]: Segmentation Fault(11)

From: Date: Tue, 24 May 2005 11:19:20 +0000
Subject: #33124 [Opn]: Segmentation Fault(11)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79437@lists.php.net to get a copy of this message
ID: 33124 User updated by: sunil_met at yahoo dot com Reported By: sunil_met at yahoo dot com Status: Open Bug Type: Apache related Operating System: Linux 9 PHP Version: 4.3.11 New Comment: Expected Result :- COL1=1 COL@=Frank Previous Comments: ------------------------------------------------------------------------ [2005-05-24 13:15:12] sunil_met at yahoo dot com Description: ------------ I am facing this strange problem wherein I am able to see the output of a php script when executed in the shell prompt. But the same script is failing at the Apache level with the following error [Tue May 24 13:10:43 2005] [notice] child pid 26742 exit signal Segmentation fault (11) [Tue May 24 13:18:40 2005] [notice] child pid 26743 exit signal Segmentation fault (11) Reproduce code: --------------- <?php PutEnv("ORACLE_SID=oracle9i"); PutEnv("ORACLE_HOME=/oracle9i"); PutEnv("TNS_ADMIN=/oracle9i/network/admin"); $db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) (HOST = 172.16.7.100)(PORT=1521)) (CONNECT_DATA=(SERVER=DEDICATED) (SERVICE_NAME=oracle9i)))"; $c=OCILogon("support1", "support1",$db); echo "Connected"; if ( ! $c ) { echo "Unable to connect: " . var_dump( OCIError() ); die(); $s = OCIParse($c, "select * from tab1"); echo "trace1"; OCIExecute($s, OCI_DEFAULT); while (OCIFetch($s)) { echo "COL1=" . ociresult($s, "COL1") ; ", COL2=" . ociresult($s, "COL2") . "\n"; } OCILogoff($c); ?> Expected result: ---------------- The page cannot be displayed ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33124&edit=1

« previous php.bugs (#79437) next »