mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +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===
|