ID:               38616
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to