From: pascal dot chevrel at free dot fr Operating system: Linux PHP version: 5.4.7 Package: Built-in web server Bug Type: Feature/Change Request Bug description:Default error page in PHP built-in web server uses outdated html/css
Description: ------------ The default error page in the built-in webserver is very ugly. Looking at the history of the file in the git repository, these styles and html were copied from the phpinfo styling created in 2002 with CSS selectors that had Netscape 4/IE4 compatibility in mind. Appearances matter :) It makes this new PHP feature look already outdated. I am going to attach a patch that: * will make it look a bit more modern and works in responsive mode too * will remove unused css rules from the code * will add an html5 doctype to the error page * will remove unnecesary html attributes in html5 (I noticed that there are 2 tests in the sapi/cli/tests folder that reproduce some of this html, I don't know how tests work for php but I can give a shot at updating the expected results of the tests in the patch if required) -- Edit bug report at https://bugs.php.net/bug.php?id=63242&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63242&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63242&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63242&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63242&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63242&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63242&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63242&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63242&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63242&r=support Expected behavior: https://bugs.php.net/fix.php?id=63242&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63242&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63242&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63242&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63242&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63242&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63242&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63242&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63242&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63242&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63242&r=mysqlcfg