bug75457.phpt 308 B

12345678910
  1. --TEST--
  2. Bug #75457 (heap-use-after-free in php7.0.25)
  3. --FILE--
  4. <?php
  5. $pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
  6. var_dump(preg_match($pattern, "hello"));
  7. ?>
  8. --EXPECTF--
  9. Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset 8 in %sbug75457.php on line %d
  10. bool(false)