From: Matthew M. <ma...@tu...> - 2007-04-05 18:10:15
|
Ok I think the php 4 problem is fixed. Grab the new Cabinet.php commit. Until PHP 5 is standard, this may pop up from time to time. PHP 5 allows this $parent->child->parent = $parent; because all objects are passed by reference. PHP 4 requires $parent->child->parent = & $parent; So that is what was missing from Cabinet.php. I have had this problem before, I just tend to forget. Something that may come to haunt me later is that I am removing the ampersand from constructors. In PHP 4 I did this: $object = & new Class; In 5 I am calling: $object = new Class; The PHP 5 method seems to work in both but in 4 it may be leaving a constructor object left behind in memory. So to test this theory I ran memory checks on both versions. The result was that PHP 5 ran about one meg over the PHP 4 version. This seems backwards to me since 5 is supposed to be references for objects. I also thought that PHP reserved memory from classes until instantiated. So, again, there should be some memory saving. I don't get it. One final note: translation changes are all committed. I have also added the German translation files supplied by Peter Heppner. I'd like to thank Ortwin Pinke again for his help. The changes will require an update for each module. Many had translations in their config files and they need copying to the local level. Matt -- Matthew McNaney Electronic Student Services Appalachian State University http://phpwebsite.appstate.edu |