Re: [PHP-DEV] patch to allow negative string offsets in {}

2005-07-30 Thread Stefan Esser
[EMAIL PROTECTED] wrote: val, you dont clamp at the lower bound. suppose offset == -LONG_MAX This would result in a negative offset value and the execution logic of PHP will tell you that this is not a valid string offset -- PHP Internals - PHP Runtime Development Mailing List To unsu

Re: [PHP-DEV] patch to allow negative string offsets in {}

2005-07-30 Thread cshmoove
val, you dont clamp at the lower bound. suppose offset == -LONG_MAX l0t3k "val khokhlov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > >a small patch that allows using negative value for offset in > $string{offset} >$string = "test"; >$string{-1} -> last 't