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

Pull Requests

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: Mon Dec 30 14:01:28 2024 UTC