|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-13 15:54 UTC] yannick at agl dot fr
Description:
------------
i see the number of file descriptor to ocius.msg is growing for each apache child. so i reproduce problem with this script.
Reproduce code:
---------------
<?
while (1) {
$conn=OCILogon($username,$password,$database);
$stmt=OCIParse($conn,"select 50 as toto from dual");
OCIDefineByName($stmt,"TOTO",&$total);
OCIExecute($stmt);
OCIFetch($stmt);
echo ":::$total:::\n";
OCILogoff($conn);
OCILogoff($conn);
sleep(10);
}
?>
Expected result:
----------------
1 file descriptor to ocius.msg
1 connection to database
Actual result:
--------------
the number of file descriptor to ocius.msg is growing.
1 connection to database
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Yes it works perfectly for FDs but introduces segfault at php shutdown, when I use the code: for ($i=0; $i < 200; $i++) { $c1 = @ociplogon($valid_user, $valid_password, $db); } Note that the credentials are valid here. It seems that the ENV handle is freed more than once somewhere :-)