mirror of
https://github.com/php/php-src.git
synced 2025-01-20 10:43:40 +08:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
19 lines
231 B
PHP
19 lines
231 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--
|
|
unicode(3) "one"
|
|
unicode(3) "one"
|
|
===DONE===
|