From: Christoph M. Becker Date: Sat, 18 Aug 2018 12:26:02 +0000 (+0200) Subject: Add regression test for bug #68175 X-Git-Tag: php-7.2.10RC1~15^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c448334bdfe61c8c2a0b3c3d5797d5ff31d4ca0;p=php Add regression test for bug #68175 --- diff --git a/NEWS b/NEWS index a3d9ea1e79..cc8db6cf5b 100644 --- a/NEWS +++ b/NEWS @@ -29,6 +29,10 @@ PHP NEWS . Fixed bug #76595 (phpdbg man page contains outdated information). (Kevin Abel) +- SPL: + . Fixed bug #68175 (RegexIterator pregFlags are NULL instead of 0). (Tim + Siebels) + - zlib: . Fixed bug #65988 (Zlib version check fails when an include/zlib/ style dir is passed to the --with-zlib configure option). (Jay Bonci) diff --git a/ext/spl/tests/bug68175.phpt b/ext/spl/tests/bug68175.phpt new file mode 100644 index 0000000000..bba769b23b --- /dev/null +++ b/ext/spl/tests/bug68175.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #68175 (RegexIterator pregFlags are NULL instead of 0) +--FILE-- +getMode(), + $regex->getFlags(), + $regex->getPregFlags() +); +?> +===DONE=== +--EXPECT-- +int(0) +int(0) +int(0) +===DONE===