diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-08-18 14:26:02 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-08-18 14:36:16 +0200 |
commit | 4c448334bdfe61c8c2a0b3c3d5797d5ff31d4ca0 (patch) | |
tree | 91dda9915883ff91859df68c29dee7417067dd85 | |
parent | 3257d22fea101453682941a9a74643e33c6f8ed5 (diff) | |
download | php-git-4c448334bdfe61c8c2a0b3c3d5797d5ff31d4ca0.tar.gz |
Add regression test for bug #68175
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | ext/spl/tests/bug68175.phpt | 18 |
2 files changed, 22 insertions, 0 deletions
@@ -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-- +<?php +$arr = new ArrayIterator(array()); +$regex = new RegexIterator($arr, '/^test/'); +var_dump( + $regex->getMode(), + $regex->getFlags(), + $regex->getPregFlags() +); +?> +===DONE=== +--EXPECT-- +int(0) +int(0) +int(0) +===DONE=== |