[php-src] PHP-8.6: Reflection: add UPGRADING note about changed boolean constant display

From: Date: Tue, 22 Sep 2026 21:10:01 +0000
Subject: [php-src] PHP-8.6: Reflection: add UPGRADING note about changed boolean constant display
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141450@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Date: 2026-09-22T13:24:23-07:00 Commit: https://github.com/php/php-src/commit/77d4c7f7dda31fb3517f021f8544aa3ce79499ea Raw diff: https://github.com/php/php-src/commit/77d4c7f7dda31fb3517f021f8544aa3ce79499ea.diff Reflection: add UPGRADING note about changed boolean constant display Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index 7f1fc588bd03..e390a70753b5 100644 --- a/UPGRADING +++ b/UPGRADING @@ -733,6 +733,13 @@ PHP 8.6 UPGRADE NOTES landed, which is a tautology; an invalid callback throws a TypeError via ZPP before the function body is reached. +- Reflection: + . The outputs of ReflectionClassConstant::__toString() and + ReflectionConstant::__toString() for constants with boolean values have been + changed to use true and false rather than 1 and an empty string. This + also affects other ways of printing class constants, e.g. + ReflectionClass::__toString(). + - Sockets: . socket_addrinfo_lookup() now has an additional optional argument $error_code that, when not null, receives the error code on failure (one of the EAI_*

« previous php.cvs (#141450) next »