1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-18 08:35:05 +03:00
aports/testing/php82-pecl-phalcon/fix-build.patch
2022-09-23 18:11:54 +00:00

31 lines
737 B
Diff

--- a/phalcon.zep.c
+++ b/phalcon.zep.c
@@ -4335,7 +4335,7 @@
}
arg_count = ZEND_CALL_NUM_ARGS(ex);
- if (zend_forbid_dynamic_call("func_get_arg()") == FAILURE) {
+ if (zend_forbid_dynamic_call() == FAILURE) {
RETURN_FALSE;
}
@@ -9061,7 +9061,7 @@
#if PHP_VERSION_ID < 80000
new_op_array = zend_compile_string(str, context);
#else
- new_op_array = zend_compile_string(Z_STR_P(str), context);
+ new_op_array = zend_compile_string(Z_STR_P(str), context, ZEND_COMPILE_DEFAULT_FOR_EVAL);
#endif
CG(compiler_options) = original_compiler_options;
@@ -13494,10 +13494,6 @@
return 0;
}
- if (!BG(mt_rand_is_seeded)) {
- php_mt_srand(GENERATE_SEED());
- }
-
return php_mt_rand_range(min, max);
}