Class Problems
| From: | Ashley Sheridan | Date: | Tue, 11 Aug 2009 15:35:35 +0000 |
| Subject: | Class Problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-296637@lists.php.net to get a copy of this message | ||
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?
Thanks,
Ash
http://www.ashleysheridan.co.uk