[php-src] PR #25547: Fix the parameter name in the spl_autoload_register() notice

From: Date: Wed, 18 Nov 2026 06:38:04 +0000
Subject: [php-src] PR #25547: Fix the parameter name in the spl_autoload_register() notice
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40765@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25547 Author: farisbasha spl_autoload_register() emits a notice when false is passed as the second argument. The notice names that argument $do_throw, which is the C variable in php_spl.c. The parameter is called $throw in php_spl.stub.php and in the manual, so with named arguments the notice points to a name that does not exist: ```php spl_autoload_register('loader', throw: false); // Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, ... ``` This changes the notice to Argument #2 ($throw) and updates the expected output of ext/spl/tests/spl_autoload_warn_on_false_do_throw.phpt. Targeted at PHP-8.4 like #25502 (another wrong name in an error message); happy to retarget to master if a message change should not go into a stable branch. I used an AI assistant to find this and prepare the change; I did not run the test suite locally, so CI is the check.

« previous php.git-pulls (#40765) next »