diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-14 18:13:18 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-14 18:13:18 +0000 |
commit | aba1996d95f96a1d152c182c5f598e7193a58c60 (patch) | |
tree | e942dbb10d854607546fa36d534f438d1581a303 | |
parent | fed3b964ea3ea1af900eb3123d7d1f07280a64a3 (diff) | |
download | php-git-aba1996d95f96a1d152c182c5f598e7193a58c60.tar.gz |
Fixed bug #19649.
-rw-r--r-- | ext/standard/browscap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index 2cdce52d25..2dbd1b0455 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -88,9 +88,13 @@ static void convert_browscap_pattern(zval *pattern) */ static void php_browscap_parser_cb(zval *arg1, zval *arg2, int callback_type, void *arg) { + if (!arg1) { + return; + } + switch (callback_type) { case ZEND_INI_PARSER_ENTRY: - if (current_section) { + if (current_section && arg2) { zval *new_property; char *new_key; |