moriyoshi               Thu Jan 23 18:22:24 2003 EDT

  Added files:                 
    /php4/tests/lang    bug21849.phpt 
  Log:
  Added test case for bug21849.phpt
  
  

Index: php4/tests/lang/bug21849.phpt
+++ php4/tests/lang/bug21849.phpt
--TEST--
Bug #21849 (self::constant doesn't work as method's default parameter)
--FILE--
<?php
class foo {
        const bar = "fubar\n";
        
        function foo($arg = self::bar) {
                echo $arg;
        }
}

new foo();
?>
--EXPECT--
fubar



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

Reply via email to