From:             fumble1 at web dot de
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     Translation problem
Bug description:  German documentation on strings is wrong

Description:
------------
Hello,

I caught an translation error in
http://www.php.net/types.string#language.types.string.substr (German) -
maybe it has just not been updated; however, I got pretty confused.
As the documentation says:

"Characters within strings may be accessed and modified by [...] using
square array-brackets like $str[42] [...].
They may also be accessed using braces like $str{42} for the same purpose.
However, using square array-brackets is preferred because the {braces}
style is deprecated as of PHP 6."

German documentation re-translated:

"Characters within strings may be accessed and modified by [...] using
braces [...].
For downwards compatibility you may use the array-brackets. However, this
syntax is depracated as of PHP 4."


-- 
Edit bug report at http://bugs.php.net/?id=42121&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42121&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42121&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42121&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42121&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42121&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42121&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42121&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42121&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42121&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42121&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42121&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42121&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42121&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42121&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42121&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42121&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42121&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42121&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42121&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42121&r=mysqlcfg

Reply via email to