mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
4b746fce1c
The $text_domain parameter may be NULL, which we have to cater to explicitly with regard to strict_types.
17 lines
289 B
PHP
17 lines
289 B
PHP
--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===
|