|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-14 06:20 UTC] mboeren@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 17:00:01 2025 UTC |
Description: ------------ PHP is running on the local http-server IIS. A script loaded in IE 5 causes a new instance of php.exe running on the server. It instantly consumes 100% of the cpu power. This blocks the server, so the query could not be completed. The IIS sends a Timeout after 30 seconds. I can't change it, due to the MMC which says, there is no IIS. Even after closing the IE-Window php.exe is consuming 100% of the cpu power for the next say 5 minutes. During this php.exe dis- and appears in the process list again and again. In php.ini php_iisfunc.dll is commented out. It is no fun. Reproduce code: --------------- <html><head><title>Import</title></head> <body><h3>Daten holen</h3> <form action='daten.php' method="POST"> <input name=ok type=submit value=OK> </form></body></html> <?php if($_POST['ok']){get_data();} function get_data() { $query = "SELECT * FROM corpus WHERE gms is not null and id>590 and id<691"; $result = query($query, $source); for($i = 0; $i < $result->rows; $i++) { $query = "UPDATE corpus SET strasse ='" . $result->data[$i]['field'] . "' WHERE id = " . $result->data[$i]['id']; query($query); } } } function query($query) { $link = dbx_connect (DBX_MSSQL, "1.2.3.4", "db", "user", "pwd", DBX_PERSISTENT| DBX_RESULT_INFO) or die ("Fehler beim Verbinden"); $result = dbx_query($link, $query); dbx_close ($link); return $result; } ?> Expected result: ---------------- Query completed Actual result: -------------- Timeout after 30 sec