xref: /PHP-5.3/Zend/tests/bug30407.phpt (revision 5764d6f4)
1--TEST--
2Bug #30407 (Strange behaviour of default arguments)
3--FILE--
4<?php
5
6function haricow($a = 'one') {
7	var_dump($a);
8	$a = 'two';
9}
10
11haricow();
12haricow();
13?>
14===DONE===
15--EXPECT--
16string(3) "one"
17string(3) "one"
18===DONE===
19