zeev            Wed Jul  2 13:51:15 2003 EDT

  Added files:                 
    /php-src/tests/lang bug24403.phpt 
  Log:
  Add test case
  
  

Index: php-src/tests/lang/bug24403.phpt
+++ php-src/tests/lang/bug24403.phpt
--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--



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to