diff options
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 8323bfb0f0..f3378da678 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1552,7 +1552,7 @@ PHP_FUNCTION(error_log) headers=Z_STRVAL_PP(emailhead); } - if (_php_error_log(opt_err,message,opt,headers)==FAILURE) { + if (_php_error_log(opt_err, message, opt, headers TSRMLS_CC)==FAILURE) { RETURN_FALSE; } @@ -1560,7 +1560,7 @@ PHP_FUNCTION(error_log) } /* }}} */ -PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers) +PHPAPI int _php_error_log(int opt_err, char *message, char *opt, char *headers TSRMLS_DC) { FILE *logfile; int issock=0, socketd=0;; @@ -1582,7 +1582,7 @@ PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers) return FAILURE; break; case 3: /*save to a file*/ - logfile=php_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd, NULL); + logfile=php_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd, NULL TSRMLS_CC); if(!logfile) { php_error(E_WARNING,"error_log: Unable to write to %s",opt); return FAILURE; |