Commit 4b723900c31 for php.net

commit 4b723900c31f1c4b4c1d5f16d0b3d61f5b1df22f
Author: Peter Kokot <peterkokot@gmail.com>
Date:   Tue Feb 10 16:12:30 2026 +0100

    Update minimum required PHP version in Autotools build system (#20933)

    At the time of writing, PHP found on host system must be at least 8.0
    for build/gen_stub.php and Zend/zend_vm_gen.php scripts to work.

    Minimum required version is updated to 8.1 to still support building PHP
    from source on any possible old systems, and enabling new features in
    build/gen_stub.php, such as readonly properties.

diff --git a/configure.ac b/configure.ac
index beeed7eb211..a5d626553c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -160,8 +160,8 @@ PHP_RUNPATH_SWITCH
 dnl Checks for some support/generator progs.
 PHP_PROG_BISON([3.0.0])
 PHP_PROG_RE2C([1.0.3], [--no-generation-date])
-dnl Find installed PHP. Minimum supported version for gen_stub.php is PHP 7.4.
-PHP_PROG_PHP([7.4])
+dnl Find installed PHP. Minimum supported version for gen_stub.php is PHP 8.1.
+PHP_PROG_PHP([8.1])

 PHP_ARG_ENABLE([re2c-cgoto],
   [whether to enable computed goto extension with re2c],