diff options
Diffstat (limited to 'sha256.c')
| -rw-r--r-- | sha256.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -86,9 +86,11 @@ static PHP_FUNCTION(suhosin_sha256_file) | |||
| 86 | return; | 86 | return; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | #if PHP_VERSION_ID < 50400 | ||
| 89 | if (PG(safe_mode) && (!php_checkuid(arg, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { | 90 | if (PG(safe_mode) && (!php_checkuid(arg, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { |
| 90 | RETURN_FALSE; | 91 | RETURN_FALSE; |
| 91 | } | 92 | } |
| 93 | #endif | ||
| 92 | 94 | ||
| 93 | if (php_check_open_basedir(arg TSRMLS_CC)) { | 95 | if (php_check_open_basedir(arg TSRMLS_CC)) { |
| 94 | RETURN_FALSE; | 96 | RETURN_FALSE; |
| @@ -392,7 +394,7 @@ unsigned int len; | |||
| 392 | 394 | ||
| 393 | /* {{{ suhosin_sha256_functions[] | 395 | /* {{{ suhosin_sha256_functions[] |
| 394 | */ | 396 | */ |
| 395 | static function_entry suhosin_sha256_functions[] = { | 397 | static zend_function_entry suhosin_sha256_functions[] = { |
| 396 | PHP_NAMED_FE(sha256, PHP_FN(suhosin_sha256), NULL) | 398 | PHP_NAMED_FE(sha256, PHP_FN(suhosin_sha256), NULL) |
| 397 | PHP_NAMED_FE(sha256_file, PHP_FN(suhosin_sha256_file), NULL) | 399 | PHP_NAMED_FE(sha256_file, PHP_FN(suhosin_sha256_file), NULL) |
| 398 | {NULL, NULL, NULL} | 400 | {NULL, NULL, NULL} |
