|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-19 17:05 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
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));