From:             a dot bodemer at brillux dot de
Operating system: Linux x86
PHP version:      5.1.4
PHP Bug Type:     OCI8 related
Bug description:  oci_bind_by_name return memory dump

Description:
------------
Hallo,

we use a Linux/Apache/Oracle/PHP on a X86 system. 
We tested the Codesample on PHP 5.1.4 with Oracle 8.1/10.1 and Apache
2.0.46/2.0.58. Every times the same result, a memory dump from the current
apache.



Reproduce code:
---------------
<?php
$query= "declare
  n_status NUMBER(2);
begin
  n_status := -1 ;
  IF :n_status = 0 THEN
    :retValue := :n_status;
  END IF;
end;";

$conn = OCILogon("wws", "wws", "zente");
$stmt = OCIParse($conn, $query);
OCIBindByName($stmt, ":retValue", $returnValue,50);
OCIBindByName($stmt, ":n_status", $n_status,50);
$ret=OCIExecute($stmt);

print "\n<pre><br>OCIExecute() ret=$ret";
print "\n<br> Return Value=".$returnValue;
?>

Expected result:
----------------
The return value must be NULL.

Actual result:
--------------
The result is a memory dump from the current apache.

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

Reply via email to