#23556 [Opn]: <0 default value become 0
ID: 23556
Updated by: philip@php.net
Reported By: Xuefer at 21cn dot com
Status: Open
Bug Type: Scripting Engine problem
Operating System: win
PHP Version: 4.3.2RC2
New Comment:
In linux I get the expected -1.
Previous Comments:
------------------------------------------------------------------------
[2003-05-08 23:09:55] Xuefer at 21cn dot com
function a($a = -1) {
var_dump($a);
}
a();
result: int(0)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23556&edit=1
Thread (3 messages)