summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index c053aef435..1fedbe1c35 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -238,7 +238,9 @@ static void sapi_cli_register_variables(zval *track_vars_array TSRMLS_DC)
static void sapi_cli_log_message(char *message)
{
- if (php_header()) {
+ TSRMLS_FETCH();
+
+ if (php_header(TSRMLS_C)) {
fprintf(stderr, "%s", message);
fprintf(stderr, "\n");
}