Re: Re: [RFC] Generalize support of negative string offsets

From: Date: Mon, 25 Jan 2016 14:45:54 +0000
Subject: Re: Re: [RFC] Generalize support of negative string offsets
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Andrea,

Le 23/01/2016 22:10, Andrea Faulds a écrit :
Er, ignore what I just said. Negative string offsets are actually special-cased and always produce an "Unitialized string offset" or "Invalid string offset" notice. So our current behaviour is in fact completely useless, not just mostly. :)
Thanks for your comments. Following your suggestion, I just added some examples of negative offset usage. About BC breaks, the RFC just adds support for currently-invalid values. In every cases, these values would have generated a notice or a warning, and the value would have been considered as zero. So, I consider these BC breaks as minor because of error messages. But determining if such BC breaks are compatible with a minor release will be the main objective of the vote. Regards François

Thread (57 messages)

« previous php.internals (#90920) next »