#45166 [NEW]: Note, that behaviour has been changed as from 5.2.3
| From: | marrtins at dqdp dot net | Date: | Wed, 04 Jun 2008 08:57:16 +0000 |
| Subject: | #45166 [NEW]: Note, that behaviour has been changed as from 5.2.3 | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-864@lists.php.net to get a copy of this message | ||
From: marrtins at dqdp dot net
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Note, that behaviour has been changed as from 5.2.3
Description:
------------
Please add a note in http://lv.php.net/manual/en/function.substr.php
that
substr() behaviour has been changed on newer versions (actually - why?!).
Thanks.
Reproduce code:
---------------
v5.2.0, v4.4.0
php -r "print substr('cd', -3);"
v5.2.3, v5.2.5, v5.2.6
php -r "print substr('cd', -3);"
Expected result:
----------------
v5.2.0, v4.4.0
cd
v5.2.3, v5.2.5, v5.2.6
cd
Actual result:
--------------
v5.2.0, v4.4.0
cd
v5.2.3, v5.2.5, v5.2.6
--
Edit bug report at http://bugs.php.net/?id=45166&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45166&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45166&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45166&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45166&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45166&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45166&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45166&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45166&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45166&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45166&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45166&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45166&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45166&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45166&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45166&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45166&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45166&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45166&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45166&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45166&r=mysqlcfg