Re: [PHP-DEV] Re: [Zend Engine 2] substr changes

2001-07-03 Thread Thies C. Arntzen
On Tue, Jul 03, 2001 at 03:07:37AM +0200, Andre Langhorst wrote: > >Just one thing I did want to point out - this has nothing to do with > >Zend 3 or whatever. I oppose this feature not because lack of time to > >implement it or because it's difficult to implement, but because it > >doesn't be

[PHP-DEV] Re: [Zend Engine 2] substr changes

2001-07-02 Thread Andre Langhorst
> Just one thing I did want to point out - this has nothing to do with > Zend 3 or whatever. I oppose this feature not because lack of time to > implement it or because it's difficult to implement, but because it > doesn't belong in PHP. Personally, I wouldn't want to see it even in > PHP 7.

[PHP-DEV] Re: [Zend Engine 2] substr changes

2001-06-29 Thread Derick Rethans
On Fri, 29 Jun 2001, Jeroen van Wolffelaar wrote: > Yes, of course. But in a loop when you use for ($i=-3; $i<=0; $i--)... I've > had this twice, I needed to make special case for the last possibility. This works fine: $i will contain, -3, -2, -1 and 0 (and not -0), but indeed I agree that subs

[PHP-DEV] Re: [Zend Engine 2] substr changes

2001-06-29 Thread Derick Rethans
On Fri, 29 Jun 2001, Jeroen van Wolffelaar wrote: > > This works fine: $i will contain, -3, -2, -1 and 0 (and not -0), but > > indeed I agree that substr ('str', 0, 0) should return this: 'str'. This > > change can be easily made in the current sources. If nobody objects, I'll > > change it. > >

[PHP-DEV] Re: [Zend Engine 2] substr changes

2001-06-29 Thread Jeroen van Wolffelaar
> > Yes, of course. But in a loop when you use for ($i=-3; $i<=0; $i--)... I've > > had this twice, I needed to make special case for the last possibility. > > This works fine: $i will contain, -3, -2, -1 and 0 (and not -0), but > indeed I agree that substr ('str', 0, 0) should return this: 'str'