com php-src: Suppress warnings using zend_quiet_write: Zend/zend_execute_API.c sapi/phpdbg/phpdbg_io.c

From: Date: Thu, 11 Apr 2019 10:22:52 +0000
Subject: com php-src: Suppress warnings using zend_quiet_write: Zend/zend_execute_API.c sapi/phpdbg/phpdbg_io.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105640@lists.php.net to get a copy of this message
Commit: d087a356feae73f223c5fdccd694d7af4e44601a Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 11 Apr 2019 12:22:52 +0200 Parents: 30df87f77d87d446afbfa4c9d2e0a1a643cc4bdc Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d087a356feae73f223c5fdccd694d7af4e44601a Log: Suppress warnings using zend_quiet_write Changed paths: M Zend/zend_execute_API.c M sapi/phpdbg/phpdbg_io.c Diff: diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 56786ae..ab1ef9f 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1176,7 +1176,7 @@ static void zend_timeout_handler(int dummy) /* {{{ */ output_len = snprintf(log_buffer, sizeof(log_buffer), "\nFatal error: Maximum execution time of " ZEND_LONG_FMT "+" ZEND_LONG_FMT " seconds exceeded (terminated) in %s on line %d\n", EG(timeout_seconds), EG(hard_timeout), error_filename, error_lineno); if (output_len > 0) { - write(2, log_buffer, MIN(output_len, sizeof(log_buffer))); + zend_quiet_write(2, log_buffer, MIN(output_len, sizeof(log_buffer))); } _exit(124); } diff --git a/sapi/phpdbg/phpdbg_io.c b/sapi/phpdbg/phpdbg_io.c index 559ff12..6917daa 100644 --- a/sapi/phpdbg/phpdbg_io.c +++ b/sapi/phpdbg/phpdbg_io.c @@ -208,7 +208,7 @@ static int phpdbg_output_pager(int sock, const char *ptr, int len) { if (*buf == 'q') { break; } - write(sock, "\r", 1); + zend_quiet_write(sock, "\r", 1); } else break; } }

« previous php.cvs (#105640) next »