mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
d1646e328a
Not sure why offset changed... probably different PCRE version calculates them in different way.
11 lines
308 B
PHP
11 lines
308 B
PHP
--TEST--
|
|
Bug #75457 (heap-use-after-free in php7.0.25)
|
|
--FILE--
|
|
<?php
|
|
$pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
|
|
var_dump(preg_match($pattern, "hello"));
|
|
?>
|
|
--EXPECTF--
|
|
Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset 8 in %sbug75457.php on line %d
|
|
bool(false)
|