From: Operating system: Linux PHP version: 5.4SVN-2011-06-29 (SVN) Package: CGI related Bug Type: Bug Bug description:In-built web server needs to check -t option is a directory
Description: ------------ The PHP 5.4 in-built webserver needs validate that the -t argument is a directory. Test script: --------------- $ php54 -n -S localhost:8000 -t routing.php Expected result: ---------------- $ php54 -n -S localhost:8000 -t routing.php "routing.php is not a directory." (or a better phrased error message) Actual result: -------------- $ php54 -n -S localhost:8000 -t routing.php Server is listening on localhost:8000 in routing.php ... Press CTRL-C to quit. -- Edit bug report at https://bugs.php.net/bug.php?id=55072&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55072&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55072&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55072&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55072&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55072&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55072&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55072&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55072&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55072&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55072&r=support Expected behavior: https://bugs.php.net/fix.php?id=55072&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55072&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55072&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55072&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55072&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55072&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55072&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55072&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55072&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55072&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55072&r=mysqlcfg