bug70345.phpt 429 B

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