ID: 37591 Updated by: [EMAIL PROTECTED] Reported By: msho at exabytes dot com -Status: Open +Status: Bogus Bug Type: IIS related Operating System: Windows 2003 PHP Version: 4.4.2 New Comment:
You configured your IIS to run PHP on every requestm but you didn't really want that? That doesn't make any sense and I don't see how it is PHP problem. Previous Comments: ------------------------------------------------------------------------ [2006-05-25 16:29:58] msho at exabytes dot com Description: ------------ When adding PHP Engine mapping to IIS with "Verify that file exists" option turned off, IIS will execute PHP engine to serve the requested php file (not matter the file is exist or not exist). PHP loaded with certain amount of memory usage which will be in deep trouble if there is a lot of request to an invalid files via http. To have this issue reproduce: 1. Mapped the PHP engine to IIS with "Verify that file exists" option turned off. 2. Setup a normal php script that query on the webserver for an invalid php file via http infinitely, for example: http://<server_ip>//<invalid_path> 3. Run multiple (more than 100) instances at a time for the same script. The sample script on requesting the script infinitely can be retrieved on the "Reproduce code" section. Reproduce code: --------------- <? while(1) { $request_url = "<enter_the_url_here>"; //eg. http://<server_ip>//<invalid_path> $temp = file($request_url); unset($temp); } ?> Expected result: ---------------- You will see the CPU usage and MEM usage will shoot on the Windows webserver. Actual result: -------------- It will be great if PHP can reduce the CPU and MEM usage when dealing with the invalid file request via http. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37591&edit=1