Re: Class Problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux