mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
19 lines
229 B
Plaintext
19 lines
229 B
Plaintext
|
--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===
|