Skip to content

Commit 13d8ec6

Browse files
committed
Promote warning to exception in get_browser() function
1 parent 0a0e75e commit 13d8ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/browscap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,8 @@ PHP_FUNCTION(get_browser)
701701
}
702702
} else {
703703
if (!global_bdata.htab) {
704-
php_error_docref(NULL, E_WARNING, "browscap ini directive not set");
705-
RETURN_FALSE;
704+
zend_throw_error(NULL, "Browscap ini directive not set");
705+
return;
706706
}
707707
bdata = &global_bdata;
708708
}

0 commit comments

Comments
 (0)