Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 713a3fc58c
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (20 sloc) 0.443 kB
--TEST--
Bug #24403 (scope doesn't properly propagate into internal functions)
--FILE--
<?php
class a
{
public $a = array();
function a()
{
$output = preg_replace(
'!\{\s*([a-z0-9_]+)\s*\}!sie',
"(in_array('\\1',\$this->a) ? '\'.\$p[\'\\1\'].\'' :
'\'.\$r[\'\\1\'].\'')",
"{a} b {c}");
}
}
new a();
?>
--EXPECTF--
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in %s on line %d
Jump to Line
Something went wrong with that request. Please try again.