ID: 39554
Updated by: [EMAIL PROTECTED]
Reported By: xmlich02 at stud dot fit dot vutbr dot cz
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 5.2.0
New Comment:
No, we can't do this as this would allow everybody to break out of
safemode.
Previous Comments:
------------------------------------------------------------------------
[2006-11-19 10:15:56] xmlich02 at stud dot fit dot vutbr dot cz
Description:
------------
it is possible to add into php any callback function which handles
spam?
Reproduce code:
---------------
var_dump(filter_var($_REQUEST['message'], FILTER_CALLBACK,
'antispam'));
function antismap($message) {
return exec('spamassasin $message');
}
// i can't use exec because of safe mode.
// so it whould be nice to have any
// option to embeded antispam function
Expected result:
----------------
set_ini (antispam, '/usr/bin/spamassasin');
var_dump(filter_var($_REQUEST['message'], FILTER_ANTISPAM));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39554&edit=1