|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53010 sscanf does not throw error when disabled
Submitted: 2010-10-07 13:22 UTC Modified: 2013-02-18 00:34 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: bugs dot php at dezso dot name Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.2.13 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bugs dot php at dezso dot name
New email:
PHP Version: OS:


 [2010-10-07 13:22 UTC] bugs dot php at dezso dot name
When sscanf function is disabled by disable_functions ini directive, it returns 
null without throwing an error as expected. At least a warning should be 
displayed. Instead what is expected, sscanf returns null without any warning or 

Expected result:
Sscanf should give a warning when disabled by disable_functions ini directive.

Actual result:
Sscanf gives no warning, returns null when disabled by disable_functions ini 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-07 23:05 UTC]
I can't reproduce this using the svn version.

$ sapi/cli/php -ddisable_functions=sscanf -r 'print sscanf(1);'

Warning: sscanf() has been disabled for security reasons in Command line code on line 1

Are you using any Zend extension?
 [2010-10-07 23:05 UTC]
-Status: Open +Status: Feedback
 [2010-10-08 08:44 UTC] bugs dot php at dezso dot name
-Status: Feedback +Status: Open
 [2010-10-08 08:44 UTC] bugs dot php at dezso dot name
Yes, i do.

Zend Extension	220060519
 [2010-10-08 08:48 UTC] bugs dot php at dezso dot name
-PHP Version: 5.2.14 +PHP Version: 5.2.13
 [2010-10-08 08:48 UTC] bugs dot php at dezso dot name
Anyway, try editing php.ini, put disable_extensions there. Unfortunately, when I 
submitted this issue, I had to select version from a combo that did not contain 
5.2.13. Now I changed it.
 [2010-10-11 23:59 UTC]
-Status: Open +Status: Feedback
 [2010-10-11 23:59 UTC]
Please try using this snapshot:
For Windows:

 [2010-10-12 00:00 UTC]
-Package: Unknown/Other Function +Package: Scripting Engine problem
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
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: Fri May 24 16:01:32 2024 UTC