|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17340 sscanf function requires "call by reference"
Submitted: 2002-05-21 14:36 UTC Modified: 2002-09-11 11:09 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: taomyn at hotmail dot com Assigned:
Status: No Feedback Package: Strings related
PHP Version: 4.2.1 OS: Windows 2000
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.
Block user comment
Status: Assign to:
Bug Type:
From: taomyn at hotmail dot com
New email:
PHP Version: OS:


 [2002-05-21 14:36 UTC] taomyn at hotmail dot com
When using the sscanf function, the complier warns that "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 sscanf()" etc etc

Apparently, sscanf requires the use of call-by reference to work - or is the online manual wrong?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-22 03:08 UTC]
I think you're doing something wrong... can you provide a simple & self-contained sample script?
 [2002-05-23 04:14 UTC] taomyn at hotmail dot com
I have e-mailed you the code - the function is called within functions.php

You're probably right, in that the code is now wrong, but if that's the case, then the online documentation for sscanf is also wrong.
 [2002-05-27 12:49 UTC]
Hm, can you make a simpler sample script? Just a couple of lines instead of a couple of files?
 [2002-05-29 05:44 UTC] taomyn at hotmail dot com
Can you not just try executing the "functions.php" script and you'll see the error. My PHP knowledge is somewhat limited, and the code is something I had run a while back just fine, and when I tried again I got this error.

Basically, if call by reference is allowed for sscanf, as the online documentation states, then the compiler is wrong. Otherwise the the documentation is now wrong, and the compiler should be more intelligent and not try to tell me to "modify the declaration of
 [2002-07-07 13:02 UTC]
Please provide a short reproducing script through this web interface so that others can see it too.

 [2002-09-11 11:09 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 10:01:31 2024 UTC