note 110245 added to function.eval
| From: | Chris | Date: | Thu, 04 Oct 2012 16:51:43 +0000 |
| Subject: | note 110245 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191131@lists.php.net to get a copy of this message | ||
A bigger blacklist for "maurice at chandoo dot de" entry:
<?php
$keywords = array('__halt_compiler', 'abstract', 'and',
'array', 'as', 'break', 'callable', 'case',
'catch', 'class', 'clone', 'const', 'continue',
'declare', 'default', 'die', 'do', 'echo',
'else', 'elseif', 'empty', 'enddeclare', 'endfor',
'endforeach', 'endif', 'endswitch', 'endwhile',
'eval', 'exit', 'extends', 'final', 'for',
'foreach', 'function', 'global', 'goto', 'if',
'implements', 'include', 'include_once', 'instanceof',
'insteadof', 'interface', 'isset', 'list',
'namespace', 'new', 'or', 'print', 'private',
'protected', 'public', 'require', 'require_once',
'return', 'static', 'switch', 'throw', 'trait',
'try', 'unset', 'use', 'var', 'while',
'xor');
$predefined_constants = array('__CLASS__', '__DIR__', '__FILE__',
'__FUNCTION__', '__LINE__', '__METHOD__', '__NAMESPACE__',
'__TRAIT__');
$tmp = get_defined_functions(); $functions = array(); array_walk_recursive($tmp,
create_function('$a,$b,$c', '$c[]=$a;'), &$functions);
$blacklist = array_merge($keywords, $predefined_constants, array_keys(get_defined_constants()),
$functions);
?>
Keywords & predefined constants are from http://php.net/manual/en/reserved.keywords.php
----
Server IP: 192.41.42.26
Probable Submitter: 168.251.194.15
----
Manual Page -- http://www.php.net/manual/en/function.eval.php
Edit -- https://master.php.net/note/edit/110245
Del: integrated -- https://master.php.net/note/delete/110245/integrated
Del: useless -- https://master.php.net/note/delete/110245/useless
Del: bad code -- https://master.php.net/note/delete/110245/bad+code
Del: spam -- https://master.php.net/note/delete/110245/spam
Del: non-english -- https://master.php.net/note/delete/110245/non-english
Del: in docs -- https://master.php.net/note/delete/110245/in+docs
Del: other reasons-- https://master.php.net/note/delete/110245
Reject -- https://master.php.net/note/reject/110245
Search -- https://master.php.net/manage/user-notes.php