ID: 33314 Updated by: [EMAIL PROTECTED] Reported By: gregory dot szorc at case dot edu -Status: Open +Status: Feedback Bug Type: Class/Object related Operating System: Linux (multiple) PHP Version: 5.0.4 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-06-12 00:01:26] gregory dot szorc at case dot edu Description: ------------ A method is called on an instance of a class which is derived from a chain of derived classes, some abstract. The method is defined in the base class and this method alters a variable also defined in the base class. When the method is called, the object is unchanged. During debugging, the variable is actually changed by the base method. However, this change of variable is not propogated down into the derived classes. When the base method is changed so that it changes another variable in the base class, the changes are reflected after the method is called. In summary, a function call does not produce an obvious change of variable. When the function is changed so it alters another variable on top of the original, both changes are seen after the function call. Reproduce code: --------------- I have been unable to reproduce this code outside of the project in which I discovered the bug. To obtain the code, use subversion: `svn co -r 119 http://zorro.case.edu/svn/repos/php_classes/File_iCal/trunk/ iCal` Use might need to add the created directory to the PHP include path for the code to run. Read File/iCal/BaseComponent.php at line 234 for info on how to reproduce. Expected result: ---------------- A variable gets changed via function call. Actual result: -------------- The variable appears left unchanged unless the function definition itself is changed so that the object is further modified. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33314&edit=1