diff options
Diffstat (limited to 'log.c')
| -rw-r--r-- | log.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -287,7 +287,7 @@ log_sapi: | |||
| 287 | /* SAPI Logging activated? */ | 287 | /* SAPI Logging activated? */ |
| 288 | SDEBUG("(suhosin_log) log_syslog: %ld - log_sapi: %ld - log_script: %ld - log_phpscript: %ld", SUHOSIN_G(log_syslog), SUHOSIN_G(log_sapi), SUHOSIN_G(log_script), SUHOSIN_G(log_phpscript)); | 288 | SDEBUG("(suhosin_log) log_syslog: %ld - log_sapi: %ld - log_script: %ld - log_phpscript: %ld", SUHOSIN_G(log_syslog), SUHOSIN_G(log_sapi), SUHOSIN_G(log_script), SUHOSIN_G(log_phpscript)); |
| 289 | if (((SUHOSIN_G(log_sapi)|S_INTERNAL) & loglevel)!=0) { | 289 | if (((SUHOSIN_G(log_sapi)|S_INTERNAL) & loglevel)!=0) { |
| 290 | #if PHP_VERSION_ID < 50400 | 290 | #if 0 //PHP_VERSION_ID < 50400 |
| 291 | sapi_module.log_message(buf); | 291 | sapi_module.log_message(buf); |
| 292 | #else | 292 | #else |
| 293 | sapi_module.log_message(buf TSRMLS_CC); | 293 | sapi_module.log_message(buf TSRMLS_CC); |
| @@ -372,7 +372,7 @@ log_phpscript: | |||
| 372 | zval *result = NULL; | 372 | zval *result = NULL; |
| 373 | 373 | ||
| 374 | long orig_execution_depth = SUHOSIN_G(execution_depth); | 374 | long orig_execution_depth = SUHOSIN_G(execution_depth); |
| 375 | #if PHP_VERSION_ID < 50400 | 375 | #if 0 //PHP_VERSION_ID < 50400 |
| 376 | zend_bool orig_safe_mode = PG(safe_mode); | 376 | zend_bool orig_safe_mode = PG(safe_mode); |
| 377 | #endif | 377 | #endif |
| 378 | char *orig_basedir = PG(open_basedir); | 378 | char *orig_basedir = PG(open_basedir); |
| @@ -411,7 +411,7 @@ SDEBUG("scriptname %s", SUHOSIN_G(log_phpscriptname)); | |||
| 411 | 411 | ||
| 412 | SUHOSIN_G(execution_depth) = 0; | 412 | SUHOSIN_G(execution_depth) = 0; |
| 413 | if (SUHOSIN_G(log_phpscript_is_safe)) { | 413 | if (SUHOSIN_G(log_phpscript_is_safe)) { |
| 414 | #if PHP_VERSION_ID < 50400 | 414 | #if 0 //PHP_VERSION_ID < 50400 |
| 415 | PG(safe_mode) = 0; | 415 | PG(safe_mode) = 0; |
| 416 | #endif | 416 | #endif |
| 417 | PG(open_basedir) = NULL; | 417 | PG(open_basedir) = NULL; |
| @@ -420,7 +420,7 @@ SDEBUG("scriptname %s", SUHOSIN_G(log_phpscriptname)); | |||
| 420 | zend_execute(new_op_array TSRMLS_CC); | 420 | zend_execute(new_op_array TSRMLS_CC); |
| 421 | 421 | ||
| 422 | SUHOSIN_G(execution_depth) = orig_execution_depth; | 422 | SUHOSIN_G(execution_depth) = orig_execution_depth; |
| 423 | #if PHP_VERSION_ID < 50400 | 423 | #if 0 //PHP_VERSION_ID < 50400 |
| 424 | PG(safe_mode) = orig_safe_mode; | 424 | PG(safe_mode) = orig_safe_mode; |
| 425 | #endif | 425 | #endif |
| 426 | PG(open_basedir) = orig_basedir; | 426 | PG(open_basedir) = orig_basedir; |
