Skip to content

Commit

Permalink
Add regression test for bug #68175
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Aug 18, 2018
1 parent 3257d22 commit 4c44833
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS
Expand Up @@ -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)
Expand Down
18 changes: 18 additions & 0 deletions 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===

0 comments on commit 4c44833

Please sign in to comment.