On Tue, 11 Aug 2009 18:35:35 +0300, Ashley Sheridan
<ash@xxxxxxxxxxxxxxxxxxxx> 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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php