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

[email protected] (lacatoire)
Newsgroups php.git-pulls
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.