xref: /PHP-5.4/ext/pcre/tests/bug70345.phpt (revision 03964892)
1--TEST--
2Bug #70345 (Multiple vulnerabilities related to PCRE functions)
3--FILE--
4<?php
5$regex = '/(?=xyz\K)/';
6$subject = "aaaaxyzaaaa";
7
8$v = preg_split($regex, $subject);
9print_r($v);
10
11$regex = '/(a(?=xyz\K))/';
12$subject = "aaaaxyzaaaa";
13preg_match($regex, $subject, $matches);
14
15var_dump($matches);
16--EXPECTF--
17Array
18(
19    [0] => aaaaxyzaaaa
20)
21
22Warning: preg_match(): Get subpatterns list failed in %s on line %d
23array(0) {
24}
25