diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_unserialize.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp_unserialize.c b/src/sp_unserialize.c index ab0d9ed..4442997 100644 --- a/src/sp_unserialize.c +++ b/src/sp_unserialize.c | |||
| @@ -128,7 +128,9 @@ PHP_FUNCTION(sp_unserialize) { | |||
| 128 | } | 128 | } |
| 129 | } else { status = 1; } | 129 | } else { status = 1; } |
| 130 | 130 | ||
| 131 | #if ! (PHP_VERSION_ID >= 80300) | ||
| 131 | zif_handler orig_handler = zend_hash_str_find_ptr(SPG(sp_internal_functions_hook), ZEND_STRL("unserialize")); | 132 | zif_handler orig_handler = zend_hash_str_find_ptr(SPG(sp_internal_functions_hook), ZEND_STRL("unserialize")); |
| 133 | #endif | ||
| 132 | if (0 == status) { | 134 | if (0 == status) { |
| 133 | #if PHP_VERSION_ID >= 80300 | 135 | #if PHP_VERSION_ID >= 80300 |
| 134 | // PHP8.3 gives a warning about trailing data in unserialize strings. | 136 | // PHP8.3 gives a warning about trailing data in unserialize strings. |
