summaryrefslogtreecommitdiff
path: root/sha256.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-02-22 13:23:16 +0100
committerBen Fuhrmannek2016-02-22 13:23:16 +0100
commit759139184a4e322c561de889484f7de3d181756f (patch)
tree34f0ceac20058b7f96c003be588c5c7c40bade75 /sha256.c
parente668d3495dce6e33855266fc830fc27b1a003689 (diff)
removed TSRMLS
Diffstat (limited to 'sha256.c')
-rw-r--r--sha256.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sha256.c b/sha256.c
index 2ab5a0e..15032cd 100644
--- a/sha256.c
+++ b/sha256.c
@@ -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
394void suhosin_hook_sha256(TSRMLS_D) 394void 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