summaryrefslogtreecommitdiff
path: root/sha256.c
diff options
context:
space:
mode:
authorStefan Esser2012-04-13 15:37:11 +0200
committerStefan Esser2012-04-13 15:37:11 +0200
commitb71aff4f357e276efa7010a97b61bd1d63cd7fbb (patch)
tree33087e1f0a3543f83ec006a30ef8f0304f4a77d9 /sha256.c
parent6b00f2346c2529a9169cf1c04580e293a77f6a71 (diff)
Initial PHP 5.4.0 compatibility
Diffstat (limited to 'sha256.c')
-rw-r--r--sha256.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sha256.c b/sha256.c
index e8df13d..61c5a6a 100644
--- a/sha256.c
+++ b/sha256.c
@@ -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 */
395static function_entry suhosin_sha256_functions[] = { 397static 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}