Commit b13ff694 authored by Andy Postnikov's avatar Andy Postnikov
Browse files

testing/php82-pecl-phalcon: add patch to fix build

parent 769872f6
Pipeline #137680 canceled with stage
in 14 seconds
......@@ -6,7 +6,7 @@ pkgver=5.0.0
pkgrel=0
pkgdesc="High performance, full-stack PHP 8.2 framework delivered as a C extension"
url="https://phalcon.io/"
arch=""
arch="all"
license="BSD-3-Clause"
_phpv=82
_php=php$_phpv
......@@ -21,7 +21,8 @@ depends="
$_php-pecl-psr
"
makedepends="$_php-dev"
source="php-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
source="php-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz
fix-build.patch"
builddir="$srcdir/$_extname-$pkgver"
build() {
......@@ -45,4 +46,5 @@ package() {
sha512sums="
5116018564c0ce5586d1b4e6eff300a8e837e6f46b6f1f83efb5ecf4a711aa007e0fc251dd7e1e561b91bccc0043d40fffed080f4aaa86d3cb326da599a28f9f php-phalcon-5.0.0.tgz
6c652a9a676c3382ffbd333582f80366cbdbc8c42b20a119e490351834e219d59739d9e27a4cca5c632f4c0ff0472e6f27fb02f5c522eda74f812f3a2f3a0aeb fix-build.patch
"
--- 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);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment