diff options
| author | Xinchen Hui <laruence@gmail.com> | 2015-05-19 16:34:08 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2015-05-19 16:34:08 +0800 |
| commit | ba5ecf355fe792a5a2a8e6582d5e081d02b16fbf (patch) | |
| tree | 28f7814b210c6177698840cb97e59f6c66a93d9c /sapi/cgi/cgi_main.c | |
| parent | e383cb4493031a7cd952cfcaed3297e583149c07 (diff) | |
| download | php-git-ba5ecf355fe792a5a2a8e6582d5e081d02b16fbf.tar.gz | |
Use logger pointer
Diffstat (limited to 'sapi/cgi/cgi_main.c')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index b479d4df4e..a60b7c22a9 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -219,6 +219,14 @@ static php_cgi_globals_struct php_cgi_globals; #define TRANSLATE_SLASHES(path) #endif +static void fcgi_log(int type, const char *format, ...) { + va_list ap; + + va_start(ap, format); + vfprintf(stderr, format, ap); + va_end(ap); +} + static int print_module_info(zval *element) { zend_module_entry *module = Z_PTR_P(element); @@ -1928,6 +1936,7 @@ consult the installation file that came with this distribution, or visit \n\ } } + fcgi_set_logger(fcgi_log); if (bindpath) { int backlog = 128; if (getenv("PHP_FCGI_BACKLOG")) { |
