From 3257d22fea101453682941a9a74643e33c6f8ed5 Mon Sep 17 00:00:00 2001 From: Tim Siebels Date: Tue, 7 Oct 2014 13:02:12 +0200 Subject: [PATCH] Fix #68175: RegexIterator pregFlags are NULL instead of 0 --- ext/spl/spl_iterators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 4cb6380481..6b83d349bc 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -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); } } /* }}} */ -- 2.40.0