From:             jvillarroel at dazasoftware dot com
Operating system: Windows 2003
PHP version:      5.2.9
PHP Bug Type:     OCI8 related
Bug description:  Oracle connection handler passing by reference to a function 
does not close

Description:
------------
Oracle connection handler passing by reference to a function does not
close.
Php.ini include these extensions:
extension=php_mbstring.dll
extension=php_oci8.dll
Web server is:Apache 2.2.10

Reproduce code:
---------------
function CloseConnection(&$strConnection1)
  {    
    OCILogOff ($strConnection1);
  };

$strConnection = OCILogon("SCOTT", 'TIGER', "SERVICE_NAME");  
  
echo "Before CloseConnection strConexion=".$strConnection."-<br>";
CloseConnection($strConnection);
echo "After CloseConnection strConexion=".$strConnection."-<br>";
die();

Expected result:
----------------
Before CloseConnection strConnection=Resource id #2-
After CloseConnection strConnection=-

Actual result:
--------------
Before CloseConnection strConnection=Resource id #2-
After CloseConnection strConnection=Resource id #2-

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

Reply via email to