diff options
Diffstat (limited to 'sha256.c')
| -rw-r--r-- | sha256.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -49,7 +49,7 @@ static PHP_FUNCTION(suhosin_sha256) | |||
| 49 | suhosin_SHA256_CTX context; | 49 | suhosin_SHA256_CTX context; |
| 50 | unsigned char digest[32]; | 50 | unsigned char digest[32]; |
| 51 | 51 | ||
| 52 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &arg, &arg_len, &raw_output) == FAILURE) { | 52 | if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|b", &arg, &arg_len, &raw_output) == FAILURE) { |
| 53 | return; | 53 | return; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| @@ -82,7 +82,7 @@ static PHP_FUNCTION(suhosin_sha256_file) | |||
| 82 | int n; | 82 | int n; |
| 83 | php_stream *stream; | 83 | php_stream *stream; |
| 84 | 84 | ||
| 85 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|b", &arg, &arg_len, &raw_output) == FAILURE) { | 85 | if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|b", &arg, &arg_len, &raw_output) == FAILURE) { |
| 86 | return; | 86 | return; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| @@ -391,7 +391,7 @@ static zend_function_entry suhosin_sha256_functions[] = { | |||
| 391 | /* }}} */ | 391 | /* }}} */ |
| 392 | 392 | ||
| 393 | 393 | ||
| 394 | void suhosin_hook_sha256(TSRMLS_D) | 394 | void suhosin_hook_sha256() |
| 395 | { | 395 | { |
| 396 | /* check if we already have sha256 support */ | 396 | /* check if we already have sha256 support */ |
| 397 | if (zend_hash_str_find(CG(function_table), ZEND_STRL("sha256"))) { | 397 | if (zend_hash_str_find(CG(function_table), ZEND_STRL("sha256"))) { |
| @@ -399,7 +399,7 @@ void suhosin_hook_sha256(TSRMLS_D) | |||
| 399 | } | 399 | } |
| 400 | 400 | ||
| 401 | /* add the sha256 functions */ | 401 | /* add the sha256 functions */ |
| 402 | zend_register_functions(NULL, suhosin_sha256_functions, NULL, MODULE_PERSISTENT TSRMLS_CC); | 402 | zend_register_functions(NULL, suhosin_sha256_functions, NULL, MODULE_PERSISTENT); |
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | 405 | ||
