mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
17 lines
217 B
Plaintext
17 lines
217 B
Plaintext
|
--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
|