ID:               36174
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mike at scrapegoat dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Feature/Change Request
 Operating System: any
 PHP Version:      5.1.2
 New Comment:

That was discussed enough and declined


Previous Comments:
------------------------------------------------------------------------

[2006-01-26 22:30:17] mike at scrapegoat dot com

Description:
------------
I am amazed that PHP5 does not treat 'var' as if it was the same
'public'.

I am so sick of trying to maintain two sets of code for PHP4 and PHP5
all because PHP4 uses 'var' in my classes and PHP5 wants 'public',
'private' or 'protected'

I would love to see 'var' be treated an alias for 'public'

Reproduce code:
---------------
class test
{
        var $info;

        function test( $info )
        {
                $this->info = $info;
        }
}

Expected result:
----------------
This should be the same as:
class test
{
        public $info;

        function test( $info )
        {
                $this->info = $info;
        }
}

Actual result:
--------------
error/exception is thrown


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36174&edit=1

Reply via email to