Skip to content

Commit e3c61e1

Browse files
Grundikrhash
authored andcommitted
php: PHP8 compatibility
1 parent 5070cea commit e3c61e1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

bindings/php/php_compatibility.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,9 @@ typedef size_t strsize_t;
5555

5656
#endif
5757

58+
#if PHP_MAJOR_VERSION >= 8
59+
#define TSRMLS_CC
60+
#define TSRMLS_DC
61+
#endif
62+
5863
#endif /* PHP_PORTABLE_H */

bindings/php/php_rhash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ PHP_FUNCTION(rhash_file) {
449449
RETURN_NULL();
450450
}
451451
if (!hash_id || !(context = rhash_init(hash_id))) {
452-
RETURN_NULL()
452+
RETURN_NULL();
453453
}
454454
res = _php_rhash_file(INTERNAL_FUNCTION_PARAM_PASSTHRU, context, path, -1, -1);
455455
rhash_final(context, 0);
@@ -629,7 +629,7 @@ static void _php_get_hash(INTERNAL_FUNCTION_PARAMETERS, int print_flags)
629629
RETURN_FALSE;
630630
}
631631
length = rhash_print(buffer, obj->rhash, hash_id, print_flags);
632-
_RETURN_STRINGL(buffer, length)
632+
_RETURN_STRINGL(buffer, length);
633633
}
634634
/* }}} */
635635

0 commit comments

Comments
 (0)