You are here: Re: need a pointer on OOP with php « PHP Programming Language « IT news, forums, messages
Re: need a pointer on OOP with php

Posted by Rik on 08/07/06 12:01

Tony Marston wrote:
>>> my parser complains about field declarations not being declared
>>> public, private, or protected .
>>> what is this talking about ?
>>
>> 1. If you're serious about OO, learn what they mean.
>> 2. http://nl3.php.net/manual/en/language.oop5.visibility.php It was
>> introduced in PHP in version 5, in 4 it will not work. From the
>> manual: "Note: The PHP 4 method of declaring a variable with the var
>> keyword is no longer valid for PHP 5 objects. For compatibility a
>> variable declared in php
>> will be assumed with public visibility, and a E_STRICT warning will
>> be issued."
>
> This behaviour has been recently changed so that the use of the "var"
> keyword does NOT trigger an E_STRICT warning in PHP 5

Any idea which version they changed this?

> I have written software that uses PHP's OO capabilities in PHP 4, and
> it runs perfectly well in PHP 5. Samples of my code are available
> from the websites which appear in my signature.

Yup, my own PHP 5 version works perfectly with my previous PHP 4 code.

Grtz,
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация