# [VOTE] Property Accessors for 5.5

- Thread: https://externals.io/message/65011
- Original archive: https://news-web.php.net/php.internals/65011
- Started by Clint Priest on 2013-01-17T18:20:36+00:00
- Messages: 51
- RFC: Property Accessors Syntax (Declined) — https://externals.io/rfc/propertygetsetsyntax-v1.2.md
- Page 1 of 3: messages 1 to 25 (25 per page, add `?page=N` to the URL)
- Next page: https://externals.io/message/65011.md?page=2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #65011 — Clint Priest — 2013-01-17T18:20:36+00:00

URL: https://externals.io/message/65011#65011

I'm happy to say that Property Accessors is ready for a vote for 
inclusion in 5.5 release.

Nikita and I (as well as Stas a bit) have all been working hard to make 
this happen for 5.5, voting and the specifications are here:

https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#voting

Thanks,

-Clint
-- 
-Clint

---

## #65012 — Benjamin Eberlei — 2013-01-17T18:32:27+00:00

URL: https://externals.io/message/65011#65012 · In reply to: #65011

> I'm happy to say that Property Accessors is ready for a vote for inclusion
> in 5.5 release.
>
> Nikita and I (as well as Stas a bit) have all been working hard to make
> this happen for 5.5, voting and the specifications are here:
>
> https://wiki.php.net/rfc/**propertygetsetsyntax-v1.2#**voting<https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#voting>
>
> Thanks,
>
> -Clint
>

This is great news, thank you very much for all your hard work! Its much
appreciated!

---

## #65014 — Richard Quadling — 2013-01-17T19:03:34+00:00

URL: https://externals.io/message/65011#65014 · In reply to: #65012

> 
>
> > […]
>
> This is great news, thank you very much for all your hard work! Its much
> appreciated!

Absolutely brilliant that this feature has been developed enough to
get to this state.


-- 
Richard Quadling
Twitter : @RQuadling
EE : http://e-e.com/M_248814.html
Zend : http://bit.ly/9O8vFY

---

## #65017 — Steve Clay — 2013-01-17T22:24:35+00:00

URL: https://externals.io/message/65011#65017 · In reply to: #65011

> I'm happy to say that Property Accessors is ready for a vote for inclusion in 5.5 release.
>
> Nikita and I (as well as Stas a bit) have all been working hard to make this happen for
> 5.5, voting and the specifications are here:

 > https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#voting

I'll say my peace on this. This is a very good implementation, and as long as authors use 
accessors that depend on a separate property for storage (like other langs require), 
everything will be straightforward. Otherwise, I fear they're in for some confusing behavior.

Consider the code from the RFC:

class TimePeriod {
     public $Hours {
         get { return $this->Hours ?: "not specified"; }
         set { $this->Hours = $value; }
     }
}

$tp = new TimePeriod();
$tp->Hours; // "not specified"
isset($tp->Hours); // true!?

The auto implementation of isset compares $this->Hours to NULL, but since $this->Hours 
goes through the getter, it will return "not specified". So the property will always 
appear to be isset.

* The guards seem spooky: A set of tokens ($this->prop) will have varying behavior (e.g. 
direct prop read vs. getter call) *depending on the call stack*.

* Giving issetter/unsetter no direct access to the property limits functionality and leads 
to weirdness like the example above.


Steve Clay
-- 
http://www.mrclay.org/

---

## #65018 — Clint Priest — 2013-01-18T01:42:37+00:00

URL: https://externals.io/message/65011#65018 · In reply to: #65017

> > […]
>
> I'll say my peace on this. This is a very good implementation, and as 
> long as authors use accessors that depend on a separate property for 
> storage (like other langs require), everything will be 
> straightforward. Otherwise, I fear they're in for some confusing 
> behavior.
>
> Consider the code from the RFC:
>
> class TimePeriod {
>     public $Hours {
>         get { return $this->Hours ?: "not specified"; }
>         set { $this->Hours = $value; }
>     }
> }
>
> $tp = new TimePeriod();
> $tp->Hours; // "not specified"
> isset($tp->Hours); // true!?
>
$tp->Hours isset, the property exists and it's value is non-null.

> The auto implementation of isset compares $this->Hours to NULL, but 
> since $this->Hours goes through the getter, it will return "not 
> specified". So the property will always appear to be isset.
>
> * The guards seem spooky: A set of tokens ($this->prop) will have 
> varying behavior (e.g. direct prop read vs. getter call) *depending on 
> the call stack*.
This is the same as would occur with isset against an undefined 
property, that would call __isset(), followed by __get() which would 
then compare the value to NULL.
>
> * Giving issetter/unsetter no direct access to the property limits 
> functionality and leads to weirdness like the example above.
>
This is possible, simply by supplying your own implementation of 
isset/unset that calls isset/unset, such as:

public $foo {
     get; set;
     isset { return isset($this->foo); }
     unset { unset($this->foo); }
}

The above five lines of code is exactly equivalent in functionality to:

public $foo;

-Clint

---

## #65035 — Sherif Ramadan — 2013-01-20T04:46:46+00:00

URL: https://externals.io/message/65011#65035 · In reply to: #65018

>
> 
>
> > […]
>
>
>  The auto implementation of isset compares $this->Hours to NULL, but since
> > […]
> This is the same as would occur with isset against an undefined property,
> that would call __isset(), followed by __get() which would then compare the
> value to NULL.
>
>
> > […]
> isset/unset that calls isset/unset, such as:
>
> public $foo {
>     get; set;
>     isset { return isset($this->foo); }
>     unset { unset($this->foo); }
> }
>
> The above five lines of code is exactly equivalent in functionality to:
>
> public $foo;
>
> -Clint
>
>
> --
> 
> 
>
>

I'm not sure if this has already come up in past discussion or not. So
I apologize in advance if this is repetitive. The discussion for property
accessors has been so lengthy I couldn't find the time to keep up with it
all.

However, I found some time to play around with the patch today and I
noticed something that might use improving. When you use `var_dump()` on the
object properties that have defined get accessors don't produce any useful
output with var_dump. Is this fixable?

---

## #65036 — Nikita Popov — 2013-01-20T13:08:09+00:00

URL: https://externals.io/message/65011#65036 · In reply to: #65035

On Sun, Jan 20, 2013 at 5:46 AM, Sherif Ramadan <theanomaly.is@gmail.com>wrote:

> I'm not sure if this has already come up in past discussion or not. So
> I apologize in advance if this is repetitive. The discussion for property
> accessors has been so lengthy I couldn't find the time to keep up with it
> all.
>
> However, I found some time to play around with the patch today and I
> noticed something that might use improving. When you use `var_dump()` on the
> object properties that have defined get accessors don't produce any useful
> output with var_dump. Is this fixable?
>

The var_dump will output the state of the object, i.e. the values that are
internally stored. It will not go through the get accessors, rather it will
directly give you the value of the underlying property. If the underlying
property is not used, then it will just give you NULL.

Nikita

---

## #65037 — Sherif Ramadan — 2013-01-20T13:35:14+00:00

URL: https://externals.io/message/65011#65037 · In reply to: #65036

> On Sun, Jan 20, 2013 at 5:46 AM, Sherif Ramadan <theanomaly.is@gmail.com>wrote:
>
> > […]
>
> The var_dump will output the state of the object, i.e. the values that are
> internally stored. It will not go through the get accessors, rather it will
> directly give you the value of the underlying property. If the underlying
> property is not used, then it will just give you NULL.
>

While I agree with your initial assessment of the accessor not having set
any value, and therefore the logic of var_dump only providing what is
stored in the object's instance properties, I disagree with your
interpretation of what var_dump should do here.

Here is my reasoning for this:

1) var_dump is documented to provide you with information about a variable
(there is no mention of its implementation being limited to what the
variable stores).

2) Even if you interpret this to mean that var_dump will output the state
of the object then you are still wrong, since var_dump($foo->accessor) will
give me a value that the object does not store if the accessor returns a
computation rather than a stored value.

3) If this were a discussion of distinguishing between magic methods such
as __get/__set then we can simply say that only inaccessible properties can
invoke such methods and as such we have no confusion between what the
object stores and what var_dump returns when invoking those methods. With
accessors it is not the case at all.


Here's an example


class surface {
  public $area {
    get { return $this->width * $this->height; }
    private set;
  }
  public $width {
    set($val) { $this->width = $val; }
    private get;
  }
  public $height {
    set ($val) { $this->height = $val; }
    private get;
  }
}

$surface = new surface;
var_dump($surface);

this gives us the following output for $surface...

object(surface)#1 (3) {
  ["area"]=>
  `NULL` 
  ["width"]=>
  `NULL` 
  ["height"]=>
  `NULL` 
}

This is to be completely expected since, technically, all we did here was
use class initialization that provided public properties initialized to
null.

However, let's say we set $surface->width and $surface->height...

$surface->width = 4;
$surface->height = 2;
var_dump($surface);

Now $surface shows us the following from var_dump....

object(surface)#1 (3) {
  ["area"]=>
  `NULL` 
  ["width"]=>
  int(4)
  ["height"]=>
  int(2)
}


This is not accurate since var_dump($surface->area) will give us the
following...

int(8)

It's not obvious what's happening here if I'm debugging this code in real
life, because on one hand I can see that my instance property returns a
value (which I expect). On the other hand I see my object has a null
property, which I don't expect. If this were magic the property would
simply not exist and i would know to look for __get / __set magic. Now, if
we argue that accessors are magic then why do they also not work like
magic? This is a bit of a hybrid approach, and I understand the reasoning
for most of what's going on here. I'm not here to argue about
implementation details.

What I'm saying is this kind of behavior needs far more serious reasoning
than the very naive assesment you're making above.

I mean that with all due respect. Just wondering if there is another take
on this from anyone else?

Sherif,
He who asks too many questions


>
> Nikita

---

## #65038 — Gustavo Lopes — 2013-01-20T13:45:54+00:00

URL: https://externals.io/message/65011#65038 · In reply to: #65037

On Sun, 20 Jan 2013 14:35:14 +0100, Sherif Ramadan  
<theanomaly.is@gmail.com> wrote:
> What I'm saying is this kind of behavior needs far more serious reasoning
> than the very naive assesment you're making above.
>
> I mean that with all due respect. Just wondering if there is another take
> on this from anyone else?
>

I think the current behavior is most appropriate one for `var_dump()` (and  
array casts/get_object_vars()). It's the same behavior as if you had  
manually defined getXXX() methods or used __get().

If you start marking function calls, you get new problems like handling  
getters that throw exceptions or have side effects ("the code behaves  
differently when add a `var_dump()`?!").

-- 
Gustavo Lopes

---

## #65039 — Sherif Ramadan — 2013-01-20T13:52:36+00:00

URL: https://externals.io/message/65011#65039 · In reply to: #65038

On Sun, Jan 20, 2013 at 8:45 AM, Gustavo Lopes <glopes@nebm.ist.utl.pt>wrote:

> On Sun, 20 Jan 2013 14:35:14 +0100, Sherif Ramadan <
> theanomaly.is@gmail.com> wrote:
>
> > […]
> I think the current behavior is most appropriate one for `var_dump()` (and
> array casts/get_object_vars()). It's the same behavior as if you had
> manually defined getXXX() methods or used __get().
>

It's actually not the same behavior at all. __get can only work on
inaccessible properties. So I would not see `NULL` there in the object and
then get a value in the instance property.


>
> If you start marking function calls, you get new problems like handling
> getters that throw exceptions or have side effects ("the code behaves
> differently when add a `var_dump()`?!").


I'm not suggesting the getters should be invoked from afar. I'm just
suggesting some additional means of informing the user of the existence of
that getter to distinguish it from the property in the output of var_dump.

So for example, in var_dump, you can get ["property":protected] => ... when
the property has a visibility outside of the current context. It might be
helpful to provide some similar behavior for accessors with null
initialized values, but have getters available to the caller?

Just a thought.


>
>
> --
> Gustavo Lopes

---

## #65040 — Gustavo Lopes — 2013-01-20T14:21:03+00:00

URL: https://externals.io/message/65011#65040 · In reply to: #65039

On Sun, 20 Jan 2013 14:52:36 +0100, Sherif Ramadan  
<theanomaly.is@gmail.com> wrote:

> > […]
> It's actually not the same behavior at all. __get can only work on
> inaccessible properties. So I would not see `NULL` there in the object and
> then get a value in the instance property.

OK, it's not 100% analogous. And I'm ready to concede that the differences  
that do exist may be (arguably) sufficient to draw a principled  
distinction, namely:

* getXXX() is clearly a method call and not a (direct) property read and  
the XXX property may not even exist.
* __get() only works on inaccessible properties, so there is no possible  
confusion.

I still think you put too much emphasis on the __get() argument -- even  
though there is no accessible property, there may be a protected/private  
property; it it isn't the case, there's still usually some backing  
storage, like a private array (shown in `var_dump()`) and the backing value  
may be different from what's returned.

In any case, assuming this feature is accepted, the current solution,  
whether in isolation it's appropriate or not, must be evaluated in the  
light of the alternatives. Here, I thought you were proposing calling the  
getters.

> > […]
>
>
> I'm not suggesting the getters should be invoked from afar. I'm just
> suggesting some additional means of informing the user of the existence  
> of that getter to distinguish it from the property in the output of  
> var_dump.
>
> So for example, in var_dump, you can get ["property":protected] => ...  
> when the property has a visibility outside of the current context. It  
> might be
> helpful to provide some similar behavior for accessors with null
> initialized values, but have getters available to the caller?

We could add some sort of marker to indicate the property is an accessor.  
It would not be trivial under the current implementation as  
get_properties() and get_debug_info() only return a HashTable*, so some  
abstraction breaking would be required.

Another possibility would be the ability to mark some properties as not  
backed by any storage, like the area in your example. But this would still  
be insufficient to eliminate confusion in cases like this:

class A {
	private $scale;
	public $value {
		get { return $this->value * $this->scale; }
		set;
	}
	function __construct($scale) { $this->scale = (double)$scale; }
}

-- 
Gustavo Lopes

---

## #65042 — Clint Priest — 2013-01-20T15:31:33+00:00

URL: https://externals.io/message/65011#65042 · In reply to: #65037

> Now $surface shows us the following from var_dump....
>
> object(surface)#1 (3) {
>   ["area"]=>
>   `NULL` 
>   ["width"]=>
>   int(4)
>   ["height"]=>
>   int(2)
> }
Sounds like a reasonable approach to me... `var_dump()`

1) Should not invoke the getters..
2) Should indicate that they are property accessors (perhaps not even 
show the underlying guarded property?)

Possibly:

object(surface)#1 (3) {
   ["area":accessor]=>
   `NULL` 
   ["width":accessor]=>
   int(4)
   ["height":accessor]=>
   int(2)
}

This could easily be changed if nobody had any further disagreements 
with this?

Only issue I could see would be existing code that may parse `var_dump()` 
might break if it wasn't written to accept something other that 
private/protected...

-- 
-Clint

---

## #65043 — Sherif Ramadan — 2013-01-20T15:39:14+00:00

URL: https://externals.io/message/65011#65043 · In reply to: #65042

>
> 
>
>   Now $surface shows us the following from var_dump....
>
>  object(surface)#1 (3) {
>   ["area"]=>
>   `NULL` 
>   ["width"]=>
>   int(4)
>   ["height"]=>
>   int(2)
> }
>
> Sounds like a reasonable approach to me... `var_dump()`
>
> 1) Should not invoke the getters..
>

I can agree this since the side effects could be unpredictable (as in the
case of an accessor implementing an actual method rather than dealing with
with any values -- the performance loss is unjustified)


> 2) Should indicate that they are property accessors (perhaps not even show
> the underlying guarded property?)
>

That is a sensible approach to me.


>
> Possibly:
>
>  object(surface)#1 (3) {
>   ["area":accessor]=>
>   `NULL` 
>   ["width":accessor]=>
>   int(4)
>   ["height":accessor]=>
>   int(2)
> }
>
> This could easily be changed if nobody had any further disagreements with
> this?
>
> Only issue I could see would be existing code that may parse `var_dump()`
> might break if it wasn't written to accept something other that
> private/protected...
>

I think that one should rely on serialize or json_* serialization methods
or parsing data structures as opposed to var_dump output, since var_dump
doesn't always provide parseable output. Look at the output of DateTime
objects from var_dump or DateInterval objects, which have changed a bit
over 5.2 -> 5.3 and other objects like DOMDocument, which at one point did
not have any meaningful var_dump output at all.


>
>
> --
> -Clint

---

## #65047 — Gordon Oheim — 2013-01-20T21:11:42+00:00

URL: https://externals.io/message/65011#65047 · In reply to: #65011

Am 17.01.2013 19:20, schrieb Clint Priest:
> I'm happy to say that Property Accessors is ready for a vote for
> inclusion in 5.5 release.
>
> Nikita and I (as well as Stas a bit) have all been working hard to make
> this happen for 5.5, voting and the specifications are here:
>
> https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#voting
>
> Thanks,
>
> -Clint

Thanks Clint and Niki for your work. Sorry to respond only now that the 
voting process has already started. I usually don't follow/participate 
on internals due to the noise and poisoned atmosphere (but that's a 
different story). Also thanks Niki for taking the time to answer all my 
questions I had about this beforehand.

IMO, the new getter/setter syntax adds very little benefit for the loads 
of syntax it introduces. I understand that people are looking forward to 
that new feature though, so I won't oppose it just because I have little 
use for it.

My main issue with the implementation at hand is the weird way in which 
we allow the visibility on the properties to be declared, e.g.

     public $foo { get; protected set; }

The visibility keyword on the property is watering down the visibility 
semantics. Either the property is public (then it can be set) or it is 
not public. I would have much less of a problem with this, if declaring 
visibility on a property could only be loosened but not tightened. That 
would at least be consistent with how visibility works with inheritance. 
It would be much better though to remove the visibility keyword from the 
property altogether. It almost never tells the truth.

Removing the visibility keyword from the property altogether would also 
remove the purported default visibility that is applied to the 
accessors. I say "purported" because doing

     public $foo { get; protected set; }

will also change the unset accessor to protected, which makes perfect 
sense when you think about it but is completely unobvious when the 
declaration claims the default visibility of all accessors to be public. 
The default visibility of isset is that of get and the default 
visibility of unset is that of set instead.

To add to the confusion, doing

     public $foo { get; protected set; public unset; }

WILL work and change the visibility of unset back to what the property 
claims it is. This should not be necessary when visibility on the 
keyword defines the default visibility. I guess it's safe to say that 
having the visibility on the property does very little to express 
anything meaningful about the property or the default visibility of 
*all* the accessors.

I briefly discussed possible solutions to this problem with Niki. Simply 
removing the visibility looks odd

     $foo { get; protected set; public unset; }

but might be the easiest approach. The above would follow the same rules 
visibility follows for any other methods, e.g. omitting the visibility 
on the accessor will make it public.

Both of us are not keen on introducing new keywords, though I find

     property $foo { get; protected set; public unset; }

quite nice and it is also more obvious that this is not your regular 
property. Niki suggested

     var $foo { get; protected set; public unset; }

but it's keyword recycling and one could argue that in PHP4 a var was 
always public. But then again, PHP4 didn't have the concept of 
visibility at all, so why not?

If this could be changed, I'd be more willing to vote pro the proposal.

TL;DR: The visibility keyword on the property is almost never giving an 
accurate information about the accessor visibility. Thus, it should be 
removed or replaced for clarity's sake.

Regards,
Gordon

---

## #65048 — Crypto Compress — 2013-01-20T23:28:56+00:00

URL: https://externals.io/message/65011#65048 · In reply to: #65011

Hello Clint, Nikita and Stas.

 > To facilitate complete functionality with properties it is necessary to
 > provide accessor functions to act on isset() and unset() calls.
 > Note: isset & unset implementations are always provided with default
 > implementations unless the author explicitly defines their own.

a) With magic methods we can make the accessed property inaccessible (as
properties may appear/disappear at runtime) and so we need some magic there
(__isset/__unset as of 5.1).
A property (accessors) is defined at design-time and may not become
inaccessible so the default implementation for isset/unset should be 
sufficient.

b) Result of (unset)$this->foo is always NULL.
If we provide a way to alter this "set(NULL)" behavior:
- it may fail before calling set(NULL)
- unset($this->foo); $this->foo !== (unset)$this->foo; // foo is not foo?

c) Logically isset/unset methods wrap up getter/setter at a higher level.
Maybe both methods are better suited for "operator 
overloading/overriding RFC"
where i would again expect some magic too.

I wonder what the functionality would be as someone have to override
isset/unset accessors. Do you have some examples?

cryptocompress

http://3v4l.org/NJWsW

---

## #65064 — Clint Priest — 2013-01-22T01:46:09+00:00

URL: https://externals.io/message/65011#65064 · In reply to: #65047

> Am 17.01.2013 19:20, schrieb Clint Priest:
> > […]
>
> Thanks Clint and Niki for your work. Sorry to respond only now that 
> the voting process has already started. I usually don't 
> follow/participate on internals due to the noise and poisoned 
> atmosphere (but that's a different story). Also thanks Niki for taking 
> the time to answer all my questions I had about this beforehand.
>
> My main issue with the implementation at hand is the weird way in 
> which we allow the visibility on the properties to be declared, e.g.
>
>     public $foo { get; protected set; }
>
> The visibility keyword on the property is watering down the visibility 
> semantics. Either the property is public (then it can be set) or it is 
> not public. I would have much less of a problem with this, if 
> declaring visibility on a property could only be loosened but not 
> tightened. That would at least be consistent with how visibility works 
> with inheritance. It would be much better though to remove the 
> visibility keyword from the property altogether. It almost never tells 
> the truth.

This is basically an argument against asymmetrical visibility altogether 
which is one of the most useful features of this proposal.  I think 
there are many use cases where an object wants to be able to emit a 
message (value) but not receive one and being able to declare that fact 
is important.

> Removing the visibility keyword from the property altogether would 
> also remove the purported default visibility that is applied to the 
> accessors. I say "purported" because doing
>
>     public $foo { get; protected set; }
>
> will also change the unset accessor to protected, which makes perfect 
> sense when you think about it but is completely unobvious when the 
> declaration claims the default visibility of all accessors to be 
> public. The default visibility of isset is that of get and the default 
> visibility of unset is that of set instead.
>
> To add to the confusion, doing
>
>     public $foo { get; protected set; public unset; }
>
> WILL work and change the visibility of unset back to what the property 
> claims it is. This should not be necessary when visibility on the 
> keyword defines the default visibility. I guess it's safe to say that 
> having the visibility on the property does very little to express 
> anything meaningful about the property or the default visibility of 
> *all* the accessors.
>
Perhaps this is just a documentation problem in that somewhere the 
implication that public applies to all accessors when it should really 
say that it applies to all declared accessors.

It is perfectly logical that when you cannot set a value, then you 
cannot unset a value.

Defining what you have done above is declaring that you want to allow 
people to get or unset the value, but not set it directly. This makes 
sense in some usage scenarios.  As an example, perhaps $foo represents 
an internally generated id which is generated on the first call to the 
getter, you don't want outsiders to specify the id, but you're okay with 
having it unset so that a new one can be generated with the internal 
generation mechanics on the next get request.

As an aside, your previous example can also be declared like this:
     public $foo { get; protected set; unset; }

unset is explicitly declared and implicitly implemented and is public, 
isset would be implicitly declared and implicitly implemented and follow 
the visibility of the getter.

isset/unset only follow the get/set visibility if isset/unset are left 
undeclared.
>
> If this could be changed, I'd be more willing to vote pro the proposal.
>
> TL;DR: The visibility keyword on the property is almost never giving 
> an accurate information about the accessor visibility. Thus, it should 
> be removed or replaced for clarity's sake.

I think I've made the case above that this isn't accurate, it always 
affects declared accessors which do not have their own visibility specified.

>
> Regards,
> Gordon
>

-- 
-Clint

---

## #65073 — Clint Priest — 2013-01-22T11:18:17+00:00

URL: https://externals.io/message/65011#65073 · In reply to: #65011

> I'm happy to say that Property Accessors is ready for a vote for 
> inclusion in 5.5 release.
>
> Nikita and I (as well as Stas a bit) have all been working hard to 
> make this happen for 5.5, voting and the specifications are here:
>
> https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#voting
>

For those that have voted against this proposal, are there any 
clarifications that can be made or questions answered?

There seems to be a lot of userland support for this proposal from 
people who don't have voting rights.

-- 
-Clint

---

## #65074 — Lester Caine — 2013-01-22T11:34:11+00:00

URL: https://externals.io/message/65011#65074 · In reply to: #65073

Clint Priest wrote:
> There seems to be a lot of userland support for this proposal from people who
> don't have voting rights.

And what about the userland people who don't want the additional complexity who 
don't have voting rights?

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

---

## #65075 — Marco Pivetta — 2013-01-22T11:38:08+00:00

URL: https://externals.io/message/65011#65075 · In reply to: #65074

@Lester seems pretty much opt-in to me :)

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

---

## #65076 — Sebastian Krebs — 2013-01-22T11:56:21+00:00

URL: https://externals.io/message/65011#65076 · In reply to: #65074

2013/1/22 Lester Caine <lester@lsces.co.uk>

> Clint Priest wrote:
>
> > […]
>
> And what about the userland people who don't want the additional
> complexity who don't have voting rights?


Don't use it. Regarding your other mails you are stuck with 5.2 anyway ;)


>
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact>
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media - http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk>
>
>
> --
> 
> 
>
>


-- 
github.com/KingCrunch

---

## #65081 — Lester Caine — 2013-01-22T12:48:09+00:00

URL: https://externals.io/message/65011#65081 · In reply to: #65076

Sebastian Krebs wrote:
>     Clint Priest wrote:
>
>         There seems to be a lot of userland support for this proposal from
>         people who
>         don't have voting rights.
>
>     And what about the userland people who don't want the additional complexity
>     who don't have voting rights?
>
> Don't use it. Regarding your other mails you are stuck with 5.2 anyway ;)

No I'm committed now to converting everything to PHP5.4 which given the amount 
of work involved is going to take a couple of years, but does not give any 
'improvement' to the resulting projects. Just as the latest changes will only 
mean that we need to maintain PHP5.4 versions of libraries to prevent creep if 
these developments into those libraries. 'Don't use it' is simply not an 
acceptable argument when things added in one version become more integrated in 
the next as has happened between php5.2->3->4 and now 5.5 will take this even 
further. We NEED to nail down a clean base before changing the rules yet again ...

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

---

## #65082 — Marco Pivetta — 2013-01-22T12:55:44+00:00

URL: https://externals.io/message/65011#65082 · In reply to: #65081

@Lester your explanation simply exposes the fact that your resources to
upgrade to newer technologies are insufficient. This doesn't mean that
newer technologies don't have to exist.

And no, it won't be possible to fix all bugs/flaws before getting a new
feature. We'd all be running in circles looking for perfection :)

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

---

## #65084 — Clint Priest — 2013-01-22T13:26:51+00:00

URL: https://externals.io/message/65011#65084 · In reply to: #65082

> @Lester your explanation simply exposes the fact that your resources to
> upgrade to newer technologies are insufficient. This doesn't mean that
> newer technologies don't have to exist.
>
> And no, it won't be possible to fix all bugs/flaws before getting a new
> feature. We'd all be running in circles looking for perfection :)
I can agree that some things need fixing though, perhaps Lester could 
put together an RFC detailing the myriad of things he deems critical to 
be fixed.
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>

-- 
-Clint

---

## #65085 — Lester Caine — 2013-01-22T14:29:30+00:00

URL: https://externals.io/message/65011#65085 · In reply to: #65084

Clint Priest wrote:
> > […]
> I can agree that some things need fixing though, perhaps Lester could put
> together an RFC detailing the myriad of things he deems critical to be fixed.

Actually I don't have anything that I find 'critical'. I have perfectly working 
systems which only break when ISP's switch off PHP5.2 and install 5.3. HIDING 
warnings is simply the wrong way to handle BC ... We are forced to address these 
warnings simply because they can become errors in later versions. HAVING 
disabled the warnings and not addressed them is the critical bit that requires 
that code is re-writen in every version update!

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

---

## #65086 — Levi Morrison — 2013-01-22T15:24:04+00:00

URL: https://externals.io/message/65011#65086 · In reply to: #65073

> For those that have voted against this proposal, are there any
> clarifications that can be made or questions answered?

I can say that this bit is particularly confusing:

    public $foo {}

My understanding that this code will not emit any warnings when
interpreted, but the $foo property has no getter nor setter. You can
call isset which will return false but unset will emit a warning, yes?

I would think that the above snippet would create a property with all
public, default implementations. I see why it doesn't: it doesn't
permit you to declare only a getter and no setter.

This is just one more reason for me to vote no on this.

---

Next page: https://externals.io/message/65011.md?page=2
