Bug #80563 [NEW]: Development Server gives 404 on directory called "/horseisle.swf"

From: Date: Wed, 30 Dec 2020 02:12:45 +0000
Subject: Bug #80563 [NEW]: Development Server gives 404 on directory called "/horseisle.swf"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231305@lists.php.net to get a copy of this message
From: earsyum at gmail dot com Operating system: Windows 10 PHP version: 8.0.0 Package: *Directory/Filesystem functions Bug Type: Bug Bug description:Development Server gives 404 on directory called "/horseisle.swf" Description: ------------ I have a directory called "horseisle.swf" which contains an "index.php" the code for which is as follows: <?php # Decide which version to use if($_SERVER['HTTP_USER_AGENT'] == "Shockwave Flash") # Projector { $file = file_get_contents("horseisle_projector.swf"); header("Content-Type: application/x-shockwave-flash"); header("Content-Length: ".sizeof($file)); echo($file); } else { $file = file_get_contents("horseisle_patched.swf"); header("Content-Type: application/x-shockwave-flash"); header("Content-Length: ".sizeof($file)); echo($file); } ?> i do php -S 127.0.0.1:80 but when i goto http://127.0.0.1/horseisle.swf i get told "127.0.0.1:56396 [404]: GET /horseisle.swf - No such file or directory" Test script: --------------- <?php # Decide which version to use if($_SERVER['HTTP_USER_AGENT'] == "Shockwave Flash") # Projector { $file = file_get_contents("horseisle_projector.swf"); header("Content-Type: application/x-shockwave-flash"); header("Content-Length: ".sizeof($file)); echo($file); } else { $file = file_get_contents("horseisle_patched.swf"); header("Content-Type: application/x-shockwave-flash"); header("Content-Length: ".sizeof($file)); echo($file); } ?> Expected result: ---------------- the swf file that meets the criteria on which user agent you are using is uploaded to the client making the request Actual result: -------------- 404 not found error .. -- Edit bug report at https://bugs.php.net/bug.php?id=80563&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80563&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80563&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80563&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80563&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80563&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80563&r=support Expected behavior: https://bugs.php.net/fix.php?id=80563&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80563&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80563&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80563&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80563&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80563&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80563&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80563&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80563&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80563&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80563&r=mysqlcfg

« previous php.bugs (#231305) next »