#23556 [NEW]: <0 default value become 0

From: Date: Fri, 09 May 2003 04:09:55 +0000
Subject: #23556 [NEW]: <0 default value become 0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39342@lists.php.net to get a copy of this message
From:             Xuefer at 21cn dot com
Operating system: win
PHP version:      4.3.2RC2
PHP Bug Type:     Scripting Engine problem
Bug description:  <0 default value become 0

function a($a = -1) {
	var_dump($a);
}
a();

result: int(0)
-- 
Edit bug report at http://bugs.php.net/?id=23556&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23556&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23556&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23556&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23556&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23556&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23556&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23556&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23556&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23556&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23556&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23556&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23556&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23556&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23556&r=gnused



Thread (3 messages)

« previous php.bugs (#39342) next »