]> granicus.if.org Git - php/commitdiff
Fix #68175: RegexIterator pregFlags are NULL instead of 0
authorTim Siebels <tim_siebels_aurich@yahoo.de>
Tue, 7 Oct 2014 11:02:12 +0000 (13:02 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 18 Aug 2018 12:33:39 +0000 (14:33 +0200)
ext/spl/spl_iterators.c

index 4cb6380481866697f9dfed3afad4d1594196de00..6b83d349bcdf35ee5a712556676eea4061cc8de7 100644 (file)
@@ -2209,7 +2209,7 @@ SPL_METHOD(RegexIterator, getPregFlags)
        if (intern->u.regex.use_flags) {
                RETURN_LONG(intern->u.regex.preg_flags);
        } else {
-               return;
+               RETURN_LONG(0);
        }
 } /* }}} */