diff options
author | Zeev Suraski <zeev@php.net> | 2003-07-02 17:51:15 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2003-07-02 17:51:15 +0000 |
commit | 60152a0db836fefcdd72077ba375888f151f0dbc (patch) | |
tree | 8f6e6b7bfeb2e0bb83d56a4923025ddff8d87070 | |
parent | eb224d4a5fbf175c68a0d13ccb6edd6b0a2fc0fc (diff) | |
download | php-git-60152a0db836fefcdd72077ba375888f151f0dbc.tar.gz |
Add test case
-rw-r--r-- | tests/lang/bug24403.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/lang/bug24403.phpt b/tests/lang/bug24403.phpt new file mode 100644 index 0000000000..728dd1d734 --- /dev/null +++ b/tests/lang/bug24403.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #24403 (scope doesn't properly propagate into internal functions) +--FILE-- +<? +class a +{ + var $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(); +?> +--EXPECT-- |