Stas Malyshev wrote:
setting without considering the consequences ( <?= not working in PHP5.3 is
STILL biting as ISP are only upgrading to PHP5.3! )
Err, I'm not sure what you mean - <?= certainly works in 5.3.
Only with short tags on ... 5.4 has detached it from that, but 5.3 still
switches it off by default, and convincing ISP to switch short tags on again is
a lost cause :( Fixing it in PHP5.3 was rejected :(
Heck it took three days to get a reply that they had got a request about it, by
which time everything was switched back to '<?php echo' ...
----
'public/private/protected/static/self ...' and using them in the right places is
well documented in bits and pieces, but there is no general 'how to' put the
whole together? I suppose someone will want to add traits and the rest to that,
How to put what together? The manual page for static states explicitly:
Because static methods are callable without an instance of the object
created, the pseudo-variable $this is not available inside the method
declared as static.
What other howto is needed for this?
Fine, so I just add 'static' rework all the code, and fix the error, but I think
I should also be adding public as well? It's not needed to clear the warning,
but should I also be going through every function and adding that, as well?
Again, it's not a bug, but is all this extra syntax needed to get things into
the right style for the next changes in PHP? You have to bear in mind than a lot
of this code is ten years old and has been working fine all that time. I don't
mind so much some of the rework, but I've no confidence that I will not be doing
this exercise again next year - on the same code :(
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php