note 9017 added to strlen
| From: | kelson at pobox dot com | Date: | Wed, 11 Oct 2000 19:05:34 +0000 |
| Subject: | note 9017 added to strlen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6384@lists.php.net to get a copy of this message | ||
Regarding the while($c=$s[$tmp++]) issue - assuming PHP executes this statement the same way C++
does, it's generating an error while trying to evaluate $s[$tmp++]. It doesn't return
false, it throws an out-of-bounds error; while doesn't even get a chance to process it.
http://www.php.net/manual/es/function.strlen.php