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

From: Date: Wed, 27 Jan 2016 14:50:25 +0000
Subject: Re: Re: [RFC] Generalize support of negative string offsets
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, Jan 25, 2016 at 3:45 PM, François Laupretre <[email protected]> wrote:
> 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
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Hi !

I like it very much.

It is not far from an idea I got in my head since a long time :
allowing string references and C-like character handling in PHP, but
this would require a deep engine patch I've not worked on it yet.

Anyway, happy consistency :-)


Julien.P


Thread (57 messages)

« previous php.internals (#90981) next »