mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
19 lines
229 B
PHP
19 lines
229 B
PHP
--TEST--
|
|
Bug #30407 (Strange behaviour of default arguments)
|
|
--FILE--
|
|
<?php
|
|
|
|
function haricow($a = 'one') {
|
|
var_dump($a);
|
|
$a = 'two';
|
|
}
|
|
|
|
haricow();
|
|
haricow();
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(3) "one"
|
|
string(3) "one"
|
|
===DONE===
|