Skip to content

Commit aba1996

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #19649.
1 parent fed3b96 commit aba1996

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/standard/browscap.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ static void convert_browscap_pattern(zval *pattern)
8888
*/
8989
static void php_browscap_parser_cb(zval *arg1, zval *arg2, int callback_type, void *arg)
9090
{
91+
if (!arg1) {
92+
return;
93+
}
94+
9195
switch (callback_type) {
9296
case ZEND_INI_PARSER_ENTRY:
93-
if (current_section) {
97+
if (current_section && arg2) {
9498
zval *new_property;
9599
char *new_key;
96100

0 commit comments

Comments
 (0)