#23403 [Bgs]: Negative integer default value becoming zero

From: Date: Tue, 29 Apr 2003 15:37:25 +0000
Subject: #23403 [Bgs]: Negative integer default value becoming zero
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38741@lists.php.net to get a copy of this message
ID: 23403 Updated by: wez@php.net Reported By: php at bicou dot com Status: Bogus Bug Type: Class/Object related Operating System: Win32 PHP Version: 4.3.2RC2 New Comment: Possibly related to #23395, which has just been fixed. Previous Comments: ------------------------------------------------------------------------ [2003-04-29 10:34:34] sniper@php.net You must have done something wrong, that works just fine here. Not bug. ------------------------------------------------------------------------ [2003-04-29 07:03:33] php at bicou dot com Property with a negative integer default value is not correctly initialized : <?php class TestNeg { var $v = -10; } $tn = new TestNeg; echo $tn->v; ?> outputs '0' instead of '-10' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23403&edit=1

« previous php.bugs (#38741) next »