|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-01 21:25 UTC] sixd@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
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-