File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -183,18 +183,13 @@ PHP_FUNCTION(bindtextdomain)
183
183
char * retval , dir_name [MAXPATHLEN ], * btd_result ;
184
184
185
185
ZEND_PARSE_PARAMETERS_START (1 , 2 )
186
- Z_PARAM_STR (domain )
186
+ Z_PARAM_PATH_STR (domain )
187
187
Z_PARAM_OPTIONAL
188
- Z_PARAM_STR_OR_NULL (dir )
188
+ Z_PARAM_PATH_STR_OR_NULL (dir )
189
189
ZEND_PARSE_PARAMETERS_END ();
190
190
191
191
PHP_GETTEXT_DOMAIN_LENGTH_CHECK (1 , ZSTR_LEN (domain ))
192
192
193
- if (ZSTR_VAL (domain )[0 ] == '\0' ) {
194
- zend_argument_value_error (1 , "cannot be empty" );
195
- RETURN_THROWS ();
196
- }
197
-
198
193
if (dir == NULL ) {
199
194
btd_result = bindtextdomain (ZSTR_VAL (domain ), NULL );
200
195
if (btd_result == NULL ) {
Original file line number Diff line number Diff line change 16
16
}
17
17
?>
18
18
--EXPECT--
19
- bindtextdomain(): Argument #1 ($domain) cannot be empty
19
+ bindtextdomain(): Argument #1 ($domain) must not contain any null bytes
You can’t perform that action at this time.
0 commit comments