#38616 [Opn->Bgs]: Substr function is misbehaving
| From: | bjori@php.net | Date: | Sun, 27 Aug 2006 18:25:40 +0000 |
| Subject: | #38616 [Opn->Bgs]: Substr function is misbehaving | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101390@lists.php.net to get a copy of this message | ||
ID: 38616
Updated by: bjori@php.net
Reported By: tux at cenobioracing dot com
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Linux
PHP Version: 4.4.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2006-08-27 18:13:18] tux at cenobioracing dot com
Description:
------------
Substr function does not work correctly, see reproduce code:
Reproduce code:
---------------
<?php
echo substr('00001',-1,4);
?>
Expected result:
----------------
Print:
0001
Actual result:
--------------
Print:
1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38616&edit=1