ID:               15937
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Documentation problem
 Operating System: SuSE Linux 6.0
 PHP Version:      4.0.5
 New Comment:

Egon, I don't know about builtin functions, but passing arguments by
reference is *much* slower in userland functions.
I don't see a reason it should be any different with builtin ones.



Previous Comments:
------------------------------------------------------------------------

[2002-03-07 14:13:30] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2002-03-07 14:07:15] [EMAIL PROTECTED]

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] [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

Reply via email to