22 lines
403 B
PHP
22 lines
403 B
PHP
--TEST--
|
|
Bug #70345 (Multiple vulnerabilities related to PCRE functions)
|
|
--FILE--
|
|
<?php
|
|
$regex = '/(?=xyz\K)/';
|
|
$subject = "aaaaxyzaaaa";
|
|
|
|
var_dump(preg_split($regex, $subject));
|
|
|
|
$regex = '/(a(?=xyz\K))/';
|
|
$subject = "aaaaxyzaaaa";
|
|
preg_match($regex, $subject, $matches);
|
|
|
|
var_dump($matches);
|
|
?>
|
|
--EXPECTF--
|
|
bool(false)
|
|
|
|
Warning: preg_match(): Get subpatterns list failed in %s on line %d
|
|
array(0) {
|
|
}
|