Re: [Zend Engine 2] substr changes
| From: | Derick Rethans | Date: | Fri, 29 Jun 2001 08:57:09 +0000 |
| Subject: | Re: [Zend Engine 2] substr changes | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-58424@lists.php.net to get a copy of this message | ||
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 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.
regards,
Derick