[php-src] PR #23432: ext/standard: declare true as the return type of register_tick_function()

From: Date: Mon, 24 Aug 2026 07:19:43 +0000
Subject: [php-src] PR #23432: ext/standard: declare true as the return type of register_tick_function()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38099@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23432 Author: lacatoire register_tick_function() is declared bool but has no failure path beyond the ZPP step, which throws. php_add_tick_function() and zend_llist_add_element() are both void, so no status is being dropped. true is the only value ever returned. unregister_tick_function() is already void, and ksort(), asort(), and natsort() in the same stub already declare true, so this follows existing practice. Changes: basic_functions.stub.php (bool → true), regenerated arginfo, added test.

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