php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7124 similar_text() function definition
Submitted: 2000-10-10 14:17 UTC Modified: 2000-11-01 12:22 UTC
From: raydjiss at ifrance dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.2 OS: win32 and linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: raydjiss at ifrance dot com
New email:
PHP Version: OS:

 

 [2000-10-10 14:17 UTC] raydjiss at ifrance dot com
The parser sends the following warning message when trying to use the similar_text function : 

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 similar_text(). 

The PHP documentation specifies the third argument of the function must be passed by reference, so the declaration of similar_text should be changed by adding an & in front of the 3rd arg to force it to be a reference.

Hope it helps.

Raydjiss

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-18 06:00 UTC] stas@php.net
Failed to reproduce on 4.0.3. Please provide short code example reproducing this problem.
 [2000-11-01 12:22 UTC] sniper@php.net
No feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC