Re: Class Problems

From: Date: Tue, 11 Aug 2009 15:42:03 +0000
Subject: Re: Class Problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-296640@lists.php.net to get a copy of this message
On Tue, 11 Aug 2009 18:35:35 +0300, Ashley Sheridan <ash@ashleysheridan.co.uk> wrote:
Hey all, Is there any reason why this shouldn't work correctly on a server running PHP 4.4.7: <?php class testClass {
    private $foo = 'bar';
} print 'wtf'; ?> I would at the very least expect to see the 'wtf' printed out. I've got a whole class I've written that works fine in PHP 5, but on PHP 4 server, it does nothing with even this simple example. Any ideas? PHP4 does not support classes that much.
Especially private/public keywords. PS: you should enable display_errors and set error_reporting(E_ALL), then you will see error here. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

« previous php.general (#296640) next »