[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
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
Hello,
a small patch that allows using negative value for offset in $string{offset}
$string = "test";
$string{-1} -> last 't'
$string{-2} -> 's' and so on...
<<
--- zend_execute.c Mon Jul 18 11:20:19 2005
+++ /home/val/src/php/php5.1/php-src/Zend/zend_execute.