Bug #53010 [Opn->Fbk]: sscanf does not throw error when disabled

From: Date: Thu, 07 Oct 2010 21:05:51 +0000
Subject: Bug #53010 [Opn->Fbk]: sscanf does not throw error when disabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155000@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53010&edit=1 ID: 53010 Updated by: felipe@php.net Reported by: bugs dot php at dezso dot name Summary: sscanf does not throw error when disabled -Status: Open +Status: Feedback Type: Bug Package: Unknown/Other Function PHP Version: 5.2.14 Block user comment: N Previous Comments: ------------------------------------------------------------------------ [2010-10-07 23:05:23] felipe@php.net 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 13:22:57] bugs dot php at dezso dot name Description: ------------ 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 error. 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 directive. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53010&edit=1

« previous php.bugs (#155000) next »