From:             sunil_met at yahoo dot com
Operating system: Linux 9
PHP version:      4.3.11
PHP Bug Type:     Apache related
Bug description:  Segmentation Fault(11)

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

Reply via email to