1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/tests/lang/bug21849.phpt
2020-02-03 22:52:20 +01:00

17 lines
239 B
PHP

--TEST--
Bug #21849 (self::constant doesn't work as method's default parameter)
--FILE--
<?php
class foo {
const bar = "fubar\n";
function __construct($arg = self::bar) {
echo $arg;
}
}
new foo();
?>
--EXPECT--
fubar