|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-07 03:58 UTC] moriyoshi@php.net
[2003-05-07 04:24 UTC] wima at tiscali dot ch
[2003-05-07 05:56 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 05:00:02 2025 UTC |
Hello This script does output 0 instead of -1. If I initialize the variable a in the constructor (the commented line) the output is correct. I'm not shure if it is a bug, but if I initialize the variable with a positive value it works correct. Thanks for fixing this bug. Marco <? $a = new myClass; class myClass { var $a = -1; function myClass() { //$this->a = -1; echo $this->a; } } ?>