-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #73730 (textdomain(null) throws in strict mode)
The $text_domain parameter may be NULL, which we have to cater to explicitly with regard to strict_types.
- Loading branch information
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--TEST-- | ||
Bug #73730 (textdomain(null) throws in strict mode) | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded('gettext')) die('skip gettext extension is not available'); | ||
?> | ||
--FILE-- | ||
<?php | ||
declare(strict_types=1); | ||
|
||
var_dump(textdomain(null)); | ||
?> | ||
===DONE=== | ||
--EXPECT-- | ||
string(8) "messages" | ||
===DONE=== |