Commit 1f2bcb87557 for php.net

commit 1f2bcb87557f3bb86b3641ffc60874fc3b05d170
Author: Louis-Arnaud <la.catoire@gmail.com>
Date:   Tue Aug 25 16:54:42 2026 +0200

    ext/standard: declare true as the return type of register_tick_function() (#23432)

    The function either throws on an invalid callback or appends the entry
    to the tick list and returns true; php_add_tick_function() returns void,
    so there is nothing that could report a failure.

diff --git a/UPGRADING b/UPGRADING
index 4a5d055a57c..f015399f645 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -664,6 +664,9 @@ PHP 8.6 UPGRADE NOTES
   . header_register_callback() now declares true as its return type. It has not
     been able to return false since PHP 8.0.0, where passing an invalid
     callback started throwing a TypeError instead.
+  . register_tick_function() now declares true as its return type. It has
+    always returned true on success; an invalid callback throws a TypeError
+    via ZPP before the function body is reached.
   . ini_get_all() now includes a "builtin_default_value" element for each
     directive when $details is true. It holds the built-in default value of the
     directive (or null if it has none), independent of values set in php.ini,
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php
index 42cb711512b..3e23934cbc7 100644
--- a/ext/standard/basic_functions.stub.php
+++ b/ext/standard/basic_functions.stub.php
@@ -2063,7 +2063,7 @@ function getprotobyname(string $protocol): int|false {}
 function getprotobynumber(int $protocol): string|false {}
 #endif

-function register_tick_function(callable $callback, mixed ...$args): bool {}
+function register_tick_function(callable $callback, mixed ...$args): true {}

 function unregister_tick_function(callable $callback): void {}

diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h
index a057d3d48be..442085e9d6c 100644
Binary files a/ext/standard/basic_functions_arginfo.h and b/ext/standard/basic_functions_arginfo.h differ
diff --git a/ext/standard/basic_functions_decl.h b/ext/standard/basic_functions_decl.h
index ab0a8ec94f7..f2f234f60cc 100644
Binary files a/ext/standard/basic_functions_decl.h and b/ext/standard/basic_functions_decl.h differ