Skip to content

Commit 7237bcc

Browse files
committed
Warning to error in parse_ini_file()
1 parent 196f8fd commit 7237bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/basic_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,8 +2654,8 @@ PHP_FUNCTION(parse_ini_file)
26542654
ZEND_PARSE_PARAMETERS_END();
26552655

26562656
if (filename_len == 0) {
2657-
php_error_docref(NULL, E_WARNING, "Filename cannot be empty!");
2658-
RETURN_FALSE;
2657+
zend_argument_value_error(1, "cannot be empty");
2658+
RETURN_THROWS();
26592659
}
26602660

26612661
/* Set callback function */

0 commit comments

Comments
 (0)