Date: 01/14/00
- Next message: Sascha Schumann: "[PHP-DEV] ATTN: ORBS' Above.net block"
- Previous message: nekhoroshkov <email protected>: "[PHP-DEV] Bug #3212: getdate() returns incorrect time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: phil <email protected>
Operating system: NT4 SP4 IIS4
PHP version: 4.0 Beta 3
PHP Bug Type: ODBC related
Bug description: odbc_close with bad connection ID causes server to hang
I'm using the downloaded ISAPI binary of php4.0b3 on NT4 SP4 with IIS4.
Having just converted a script from odbc calls to use direct mysql calls, I had a problem with IIS hanging. I had forgotten to remove one odbc_close call, and was passing the connection id from mysql_connect to the odbc_close call.
php generated a suitable warning message:
Warning: Supplied resource is not a valid ODBC-Link resource in f:\php\nyorks\mysql\index.php on line 107
but then server ourput to the browser stalled.
The index.php file was left open, and I was unable to stop the server using 'net stop iisadmin'
After a reboot, subsequent attempts to reproduce the problem no longer caused the server to hang, but after the output page was displayed, the index.php file remained open until the server was stopped using net stop iisadmin (which now works ok).
I realise that is my own stupid fault for having the faulty odbc_close in the script, but php probably ought to react more kindly to the error.
The following script is sufficient to show the problem.
<?php
$db=mysql_connect();
if(!$db)
{
die("dead");
}
odbc_close($db);
?>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sascha Schumann: "[PHP-DEV] ATTN: ORBS' Above.net block"
- Previous message: nekhoroshkov <email protected>: "[PHP-DEV] Bug #3212: getdate() returns incorrect time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

