note 110245 deleted from function.eval by danbrown

From: Date: Thu, 06 Dec 2012 15:01:19 +0000
Subject: note 110245 deleted from function.eval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192357@lists.php.net to get a copy of this message
Note Submitter: Chris ---- 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

« previous php.notes (#192357) next »