|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-09 02:04 UTC] tony2001@php.net
[2005-02-10 12:45 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Description: ------------ After your asked me to try an other bug with PHP 5.1.0, i tryed to run my unit tests on it. All passes, except the following. I don't know if it's a new PHP 5.1.0 feature, but i don't think that this behaviour is really useful and it can be very confusing too. PHP version : php5-200410111030 Reproduce code: --------------- <?php function haricow($a = 'one') { var_dump($a); $a = 'two'; } haricow(); haricow(); Expected result: ---------------- string(3) "one" string(3) "one" Actual result: -------------- string(3) "one" string(3) "two"