|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-01-19 13:51 UTC] nikic@php.net
-Status: Open
+Status: Verified
[2021-01-19 14:15 UTC] nikic@php.net
-Assigned To:
+Assigned To: nikic
[2021-01-19 14:15 UTC] nikic@php.net
[2021-01-19 14:21 UTC] nikic@php.net
[2021-01-19 14:21 UTC] nikic@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Upgrading from 7.4.14 to 8.0.1 changes the behaviour of ResourceBundle::get($index). If a non-existent $index is requested, get($index) returns null, and all subsequent calls to get() also return null, even for $index values that exist. Test script: --------------- <?php file_put_contents('en.txt','en { "exists" {"found"} }'); shell_exec('genrb en.txt'); $r = new ResourceBundle('en.res', __DIR__); $r->get('does_not_exist'); if($r->get('exists') === null) echo "Error\n"; else echo "Ok\n"; // cleanup unlink('en.txt'); unlink('en.res'); Expected result: ---------------- Ok Actual result: -------------- Error