Edit report at https://bugs.php.net/bug.php?id=55109&edit=1
ID: 55109 Updated by: fel...@php.net Reported by: ar...@php.net Summary: Friendly log messages -Status: Open +Status: Assigned Type: Feature/Change Request Package: Built-in web server Operating System: N/A PHP Version: trunk-SVN-2011-07-02 (SVN) -Assigned To: +Assigned To: moriyoshi Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-07-02 11:35:57] arraypad at gmail dot com Added value of On to php.ini-development and php.ini-production, and changed the default value to Off (so php -n -S ... doesn't use the colours.) I haven't found a better way of checking the terminal, so I think this patch is ready. ------------------------------------------------------------------------ [2011-07-01 21:20:37] arraypad at gmail dot com Discussion: http://marc.info/?l=php-internals&m=130930069207940&w=2 NB. Patch is not ready to be applied yet - still looking into means of excluding apparently compatible (but not) terminals. ------------------------------------------------------------------------ [2011-07-01 21:13:50] ar...@php.net Description: ------------ - Compacts messages to one line, so a 404 doesn't occupy three lines. - Includes the response status code - Colours messages according to their response code (success=green, client error=yellow, server error=red) - Appends the error message when there's a fatal PHP error Test script: --------------- ... Expected result: ---------------- http://spellign.com/patches/cli-after.png Actual result: -------------- http://spellign.com/patches/cli-before.png ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55109&edit=1