ID: 15937 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: SuSE Linux 6.0 PHP Version: 4.0.5 New Comment:
Performance is of no concern here. If a function doesn't modify a var, it wont copy it. As strlen() doesn't modify the value, it is not copied, and no performance is lost. Making this bogus again. Previous Comments: ------------------------------------------------------------------------ [2002-03-07 14:05:02] [EMAIL PROTECTED] reopened this bug. the reason for me to use the call-by-reference is performance... ------------------------------------------------------------------------ [2002-03-07 13:31:19] [EMAIL PROTECTED] there's nothing wrong with strlen(). why do you pass it the argument by reference? strlen() doesn't modify it, so it's completely useless. this PR is bogus. ------------------------------------------------------------------------ [2002-03-07 13:22:23] [EMAIL PROTECTED] Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of strlen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <xxx> line 653 To what shall I modify the declartion of strlen? It's not documented anywhere... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15937&edit=1