Re: Bug #15937: Call-time pass-by-reference has been deprecated
| From: | Andrey Hristov | Date: | Thu, 07 Mar 2002 18:31:19 +0000 |
| Subject: | Re: Bug #15937: Call-time pass-by-reference has been deprecated | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80880@lists.php.net to get a copy of this message | ||
You probably do:
$some_len = strlen(&$some_str);
you do not need to use &. Probably $some_str is passed by reference without &.
Best regards,
Andrey Hristov
On Thursday 07 March 2002 08:22 pm, you wrote:
> From: nohn@php.net
> Operating system: SuSE Linux 6.0
> PHP version: 4.0.5
> PHP Bug Type: Documentation problem
> Bug description: Call-time pass-by-reference has been deprecated
>
> 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...