Skip to content

Commit 3257d22

Browse files
SiebelsTimcmb69
authored andcommitted
Fix #68175: RegexIterator pregFlags are NULL instead of 0
1 parent 837ed71 commit 3257d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/spl/spl_iterators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ SPL_METHOD(RegexIterator, getPregFlags)
22092209
if (intern->u.regex.use_flags) {
22102210
RETURN_LONG(intern->u.regex.preg_flags);
22112211
} else {
2212-
return;
2212+
RETURN_LONG(0);
22132213
}
22142214
} /* }}} */
22152215

0 commit comments

Comments
 (0)