Commit 7ac4cb4efad for php

commit 7ac4cb4efadef8b8a89753b21da35e9f23ad20e1
Author: Faris Basha TM <72191505+farisbasha@users.noreply.github.com>
Date:   Wed Nov 18 15:58:45 2026 +0530

    spl: Fix the parameter name in the spl_autoload_register() notice (#25547)

    The notice for passing false as the second argument named it
    $do_throw, which is the C variable. The parameter is $throw in the
    stub and the manual.

diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 8d516c1543f..12f05ce7f01 100644
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -402,7 +402,7 @@ PHP_FUNCTION(spl_autoload_register)
 	ZEND_PARSE_PARAMETERS_END();

 	if (!do_throw) {
-		php_error_docref(NULL, E_NOTICE, "Argument #2 ($do_throw) has been ignored, "
+		php_error_docref(NULL, E_NOTICE, "Argument #2 ($throw) has been ignored, "
 			"spl_autoload_register() will always throw");
 	}

diff --git a/ext/spl/tests/autoloading/spl_autoload_warn_on_false_do_throw.phpt b/ext/spl/tests/autoloading/spl_autoload_warn_on_false_do_throw.phpt
index f16976e78ce..2f26413e510 100644
--- a/ext/spl/tests/autoloading/spl_autoload_warn_on_false_do_throw.phpt
+++ b/ext/spl/tests/autoloading/spl_autoload_warn_on_false_do_throw.phpt
@@ -11,6 +11,6 @@ function customAutolader($class) {
 var_dump(class_exists('TestClass', false));
 ?>
 --EXPECTF--
-Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in %s on line %d
+Notice: spl_autoload_register(): Argument #2 ($throw) has been ignored, spl_autoload_register() will always throw in %s on line %d
 %stestclass.class.inc
 bool(true)