cvs: php4 /tests/lang bug21849.phpt
| From: | Moriyoshi Koizumi | Date: | Thu, 23 Jan 2003 23:22:24 +0000 |
| Subject: | cvs: php4 /tests/lang bug21849.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18119@lists.php.net to get a copy of this message | ||
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