summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30407.phpt
blob: 6dcc6b3481fef3ab097d0829d60e32e9e93d3021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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===