Hi ppl,
It seems like there are several CRITICAL problems with PHP-ODBC.
Please make a miserable man (that’s me) happy by telling me if you had the same/similar/close problem(s).
I would appreciate ANY information.
I wrote a 3 lines script the cause NT to display the following error message after being executed number of times. After getting this error I must close rerun apache.
Title - "drwtsn32.exe - DLL initialization Failed"
Message - "Initialization of the dynamic link library C:\WINNT\system32\USER32.dll failed. The process is terminating abnormally”
I got this error CONSISTENTLY after script was executed 828 times (see script on the “on the client side” section). I performed this test several times.
On the server side
Here is the script:
$MY_DB = odbc_connect("phptest","","");
odbc_close($MY_D😎;
echo "DONE!";
The DB I used is access97, the database itself (phptest) is empty. I created it but I didn’t create any table.
On the client side:
I used PHP.EXE with the following script:
function my_get_url($url)
{
if (!($fp = fopen($url, "r"))) die("could not open url");
$ret="";
while (!feof ($fp)) {
$buffer = fgets($fp, 1024*10);
$ret.=$buffer;
}
fclose ($fp);
return $ret;
}
for ($i=1; $i<=2000;$i++) {
$s=my_get_url("http://www.mysite.com/mypage.php?id=$i");
$len=strlen($s);
echo "$i] len=$len $s\n";
}
My server configuration is:
Winnt 4.0 with sp 6a.
Apache 1.3.12 (official version downloaded from apache.net)
PHP 4.0.3pl1 (official version from php.net) – module version
I’d be happy to get some feedback before reporting this bug to bugs.php.net
Tnx in advanced,
Dror.