|
Posted by Tony Marston on 07/25/05 12:10
In PHP 5 this is reported as a warning, not an error, so it will still run
OK. I know because I have encountered the same situation with code that I
use which needs to run under both PHP 4 and PHP 5.
--
Tony Marston
http://www.tonymarston.net
<pfrank26@hotmail.com> wrote in message
news:1122210124.890096.86560@g44g2000cwa.googlegroups.com...
> Hi all,
> I've written a large system for PHP4 that declares class variables
> using the 'var' keyword. I'm now upgrading to PHP5, and it seems I have
> to change 'var' to private / public / protected, which don't work in
> PHP4. Is there anyway to make my system compatible with both versions?
>
> Cheers,
> Paul.
>
Navigation:
[Reply to this message]
|