]> granicus.if.org Git - php/commitdiff
Fixed bug #19649.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 14 Oct 2002 18:13:18 +0000 (18:13 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 14 Oct 2002 18:13:18 +0000 (18:13 +0000)
ext/standard/browscap.c

index 2cdce52d2515f4d3d7a38ef04717ea176a7c577c..2dbd1b045527af6ac11ea50059fcddf71c441f15 100644 (file)
@@ -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;