Bug #15937 Updated: Call-time pass-by-reference has been deprecated
| From: | eschmid@php.net | Date: | Thu, 07 Mar 2002 19:13:31 +0000 |
| Subject: | Bug #15937 Updated: Call-time pass-by-reference has been deprecated | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-1949@lists.php.net to get a copy of this message | ||
ID: 15937
Updated by: eschmid@php.net
Reported By: nohn@php.net
Status: Bogus
Bug Type: Documentation problem
Operating System: SuSE Linux 6.0
PHP Version: 4.0.5
New Comment:
Sebastian, please make a performance comparison. If a by-reference is
faster, so make a note in the docs and mark this error as deleted.
Previous Comments:
------------------------------------------------------------------------
[2002-03-07 14:07:15] derick@php.net
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.
------------------------------------------------------------------------
[2002-03-07 14:05:02] nohn@php.net
reopened this bug.
the reason for me to use the call-by-reference is performance...
------------------------------------------------------------------------
[2002-03-07 13:31:19] cynic@php.net
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] nohn@php.net
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