Re: [VOTE]strn(case)cmp supporting a negative length as its third paramter

From: Date: Sun, 14 Aug 2011 13:05:01 +0000
Subject: Re: [VOTE]strn(case)cmp supporting a negative length as its third paramter
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
>> imo the patch is consistent with how substr works:
>> tyrael@thor:~$ php -d display_errors=1 -d error_reporting=-1 -r 'echo
>> substr("prefix_num", -100);'
>> prefix_num
>
> Maybe, but I would classify *that* as a bug as it makes no sense at all.
>

I don't mind that, and imho laruence would be happy to change the
patch, after we fix this "bug".
But thats a separate issue, and we should also keep in mind the BC
break for that.
-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu


Thread (33 messages)

« previous php.internals (#54579) next »