Re: Re: [CFV] how to mark protected items?

From: Date: Wed, 16 Jun 2004 16:03:34 +0000
Subject: Re: Re: [CFV] how to mark protected items?
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30793@lists.php.net to get a copy of this message
Daniel Convissor wrote:
The reason we need this for two reasons. Packages are presently written in PHP 4 that will be ported to PHP 5 eventually. We don't want people to mistakenly access those members in the wrong way and then get bitten by that mistake when the package does go to PHP 5.
So, let me make sure I understand this. It is important to PEAR to have a standard so that users of PHP4 classes [who do not read the class documentation and access private/protected variables incorrectly in PHP4] will be able to upgrade to PHP5 versions of those classes without any of their code breaking? I don't think there will be any PHP5 versions of classes (especially if people heed your opinion that if it doesn't *need* to be in PHP5 it should be in PHP4) that will allow upgrading w/o code breaking (i.e. Exception handling, etc.). Hans

« previous php.pear.dev (#30793) next »