File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 17
17
error_reporting (E_ALL );
18
18
ini_set ("precision " , "-1 " );
19
19
20
+ if (PHP_VERSION_ID < 70400 ) {
21
+ throw new Exception ("The build system requires PHP 7.4 at least. \n" );
22
+ }
23
+
20
24
const PHP_70_VERSION_ID = 70000 ;
21
25
const PHP_80_VERSION_ID = 80000 ;
22
26
const PHP_81_VERSION_ID = 80100 ;
Original file line number Diff line number Diff line change @@ -1900,8 +1900,8 @@ AC_DEFUN([PHP_PROG_PHP],[
1900
1900
set $php_version
1901
1901
IFS=$ac_IFS
1902
1902
php_version_num=`expr [ $] {1:-0} \* 10000 + [ $] {2:-0} \* 100 + [ $] {3:-0}`
1903
- dnl Minimum supported version for gen_stubs.php is PHP 7.1 .
1904
- if test "$php_version_num" -lt 70100 ; then
1903
+ dnl Minimum supported version for gen_stubs.php is PHP 7.4 .
1904
+ if test "$php_version_num" -lt 70400 ; then
1905
1905
AC_MSG_RESULT ( [ $php_version (too old)] )
1906
1906
unset PHP
1907
1907
else
You can’t perform that action at this time.
0 commit comments