com php-src: make errors stand out more, don't duplicate output: phpdbg.c

From: Date: Mon, 18 Nov 2013 23:41:57 +0000
Subject: com php-src: make errors stand out more, don't duplicate output: phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74821@lists.php.net to get a copy of this message
Commit: 407ab7d57e5997b420e09b9aa2667d8fca794cde Author: krakjoe <joe.watkins@live.co.uk> Mon, 18 Nov 2013 23:41:57 +0000 Parents: d82eca8c861092816d51d0b3b7b000a717641915 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=407ab7d57e5997b420e09b9aa2667d8fca794cde Log: make errors stand out more, don't duplicate output Changed paths: M phpdbg.c Diff: diff --git a/phpdbg.c b/phpdbg.c index f470331..e2d0e0e 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -259,7 +259,7 @@ static void php_sapi_phpdbg_send_header(sapi_header_struct *sapi_header, void *s static void php_sapi_phpdbg_log_message(char *message TSRMLS_DC) /* {{{ */ { - fprintf(stderr, "%s\n", message); + phpdbg_error(message); } /* }}} */ @@ -368,10 +368,11 @@ const opt_struct OPTIONS[] = { /* {{{ */ }; /* }}} */ const char phpdbg_ini_hardcoded[] = - "html_errors=0\n" - "register_argc_argv=1\n" - "implicit_flush=1\n" - "output_buffering=0\n" + "html_errors=Off\n" + "register_argc_argv=On\n" + "implicit_flush=On\n" + "output_buffering=Off\n" + "display_errors=Off\n" "max_execution_time=0\n" "max_input_time=-1\n\0"; @@ -386,7 +387,6 @@ void phpdbg_ini_defaults(HashTable *configuration_hash) /* {{{ */ { zval tmp; INI_DEFAULT("report_zend_debug", "0"); - INI_DEFAULT("display_errors", "1"); } /* }}} */ static void phpdbg_welcome(zend_bool cleaning TSRMLS_DC) /* {{{ */

« previous php.cvs (#74821) next »