1 | 1 | simandl | <?php |
2 | | | /************************************************************************************* |
3 | | | * php.php |
4 | | | * -------- |
5 | | | * Author: Nigel McNie (nigel@geshi.org) |
6 | | | * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) |
7 | | | * Release Version: 1.0.8.1 |
8 | | | * Date Started: 2004/06/20 |
9 | | | * |
10 | | | * PHP language file for GeSHi. |
11 | | | * |
12 | | | * CHANGES |
13 | | | * ------- |
14 | | | * 2008/05/23 (1.0.7.22) |
15 | | | * - Added description of extra language features (SF#1970248) |
16 | | | * 2004/11/25 (1.0.3) |
17 | | | * - Added support for multiple object splitters |
18 | | | * - Fixed &new problem |
19 | | | * 2004/10/27 (1.0.2) |
20 | | | * - Added URL support |
21 | | | * - Added extra constants |
22 | | | * 2004/08/05 (1.0.1) |
23 | | | * - Added support for symbols |
24 | | | * 2004/07/14 (1.0.0) |
25 | | | * - First Release |
26 | | | * |
27 | | | * TODO (updated 2004/07/14) |
28 | | | * ------------------------- |
29 | | | * * Make sure the last few function I may have missed |
30 | | | * (like eval()) are included for highlighting |
31 | | | * * Split to several files - php4, php5 etc |
32 | | | * |
33 | | | ************************************************************************************* |
34 | | | * |
35 | | | * This file is part of GeSHi. |
36 | | | * |
37 | | | * GeSHi is free software; you can redistribute it and/or modify |
38 | | | * it under the terms of the GNU General Public License as published by |
39 | | | * the Free Software Foundation; either version 2 of the License, or |
40 | | | * (at your option) any later version. |
41 | | | * |
42 | | | * GeSHi is distributed in the hope that it will be useful, |
43 | | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
44 | | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
45 | | | * GNU General Public License for more details. |
46 | | | * |
47 | | | * You should have received a copy of the GNU General Public License |
48 | | | * along with GeSHi; if not, write to the Free Software |
49 | | | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
50 | | | * |
51 | | | ************************************************************************************/ |
52 | | | |
53 | | | $language_data = array ( |
54 | | | 'LANG_NAME' => 'PHP', |
55 | | | 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), |
56 | | | 'COMMENT_MULTI' => array('/*' => '*/'), |
57 | | | 'HARDQUOTE' => array("'", "'"), |
58 | | | 'HARDESCAPE' => array("\'"), |
59 | | | 'COMMENT_REGEXP' => array( |
60 | | | //Heredoc and Nowdoc syntax |
61 | | | 3 => '/<<<\s*?(\'?)([a-zA-Z0-9]+?)\1[^\n]*?\\n.*\\n\\2(?![a-zA-Z0-9])/siU', |
62 | | | // phpdoc comments |
63 | | | 4 => '#/\*\*(?!\*).*\*/#sU' |
64 | | | ), |
65 | | | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
66 | | | 'QUOTEMARKS' => array('"'), |
67 | | | 'ESCAPE_CHAR' => '', |
68 | | | 'ESCAPE_REGEXP' => array( |
69 | | | //Simple Single Char Escapes |
70 | | | 1 => "#\\\\[nfrtv\\$\\\"\n]#i", |
71 | | | //Hexadecimal Char Specs |
72 | | | 2 => "#\\\\x[\da-fA-F]{1,2}#i", |
73 | | | //Octal Char Specs |
74 | | | 3 => "#\\\\[0-7]{1,3}#", |
75 | | | //String Parsing of Variable Names |
76 | | | 4 => "#\\$[a-z0-9_]+(?:\\[[a-z0-9_]+\\]|->[a-z0-9_]+)?|(?:\\{\\$|\\$\\{)[a-z0-9_]+(?:\\[('?)[a-z0-9_]*\\1\\]|->[a-z0-9_]+)*\\}#i", |
77 | | | //Experimental extension supporting cascaded {${$var}} syntax |
78 | | | 5 => "#\$[a-z0-9_]+(?:\[[a-z0-9_]+\]|->[a-z0-9_]+)?|(?:\{\$|\$\{)[a-z0-9_]+(?:\[('?)[a-z0-9_]*\\1\]|->[a-z0-9_]+)*\}|\{\$(?R)\}#i", |
79 | | | //Format String support in ""-Strings |
80 | | | 6 => "#%(?:%|(?:\d+\\\\\\\$)?\\+?(?:\x20|0|'.)?-?(?:\d+|\\*)?(?:\.\d+)?[bcdefFosuxX])#" |
81 | | | ), |
82 | | | 'NUMBERS' => |
83 | | | GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | |
84 | | | GESHI_NUMBER_FLT_SCI_ZERO, |
85 | | | 'KEYWORDS' => array( |
86 | | | 1 => array( |
87 | | | 'include', 'require', 'include_once', 'require_once', |
88 | | | 'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', |
89 | | | 'endif', 'switch', 'case', 'endswitch', 'endfor', 'endforeach', |
90 | | | 'return', 'break', 'continue' |
91 | | | ), |
92 | | | 2 => array( |
93 | | | '%>', '&new', '<%', '<%=', |
94 | | | '</script>', '<?', '<?=', '<?php', |
95 | | | '<script language', '?>', 'class', 'const', |
96 | | | 'default', 'DEFAULT_INCLUDE_PATH', 'extends', |
97 | | | 'E_ALL', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', |
98 | | | 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_ERROR', |
99 | | | 'E_NOTICE', 'E_PARSE', 'E_STRICT', 'E_USER_ERROR', |
100 | | | 'E_USER_NOTICE', 'E_USER_WARNING', 'E_WARNING', |
101 | | | 'false', 'function', 'interface', 'new', 'null', |
102 | | | 'PEAR_EXTENSION_DIR', 'PEAR_INSTALL_DIR', |
103 | | | 'PHP_BINDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_DATADIR', |
104 | | | 'PHP_EXTENSION_DIR', 'PHP_LIBDIR', |
105 | | | 'PHP_LOCALSTATEDIR', 'PHP_OS', |
106 | | | 'PHP_OUTPUT_HANDLER_CONT', 'PHP_OUTPUT_HANDLER_END', |
107 | | | 'PHP_OUTPUT_HANDLER_START', 'PHP_SYSCONFDIR', |
108 | | | 'PHP_VERSION', 'private', 'public', 'self', 'true', |
109 | | | 'var', '__CLASS__', '__FILE__', '__FUNCTION__', |
110 | | | '__LINE__', '__METHOD__' |
111 | | | ), |
112 | | | 3 => array( |
113 | | | 'abs', 'acos', 'acosh', 'addcslashes', 'addslashes', 'aggregate', |
114 | | | 'aggregate_methods', 'aggregate_methods_by_list', |
115 | | | 'aggregate_methods_by_regexp', |
116 | | | 'aggregate_properties', |
117 | | | 'aggregate_properties_by_list', |
118 | | | 'aggregate_properties_by_regexp', 'aggregation_info', |
119 | | | 'apache_child_terminate', 'apache_get_version', |
120 | | | 'apache_lookup_uri', 'apache_note', |
121 | | | 'apache_request_headers', 'apache_response_headers', |
122 | | | 'apache_setenv', 'array', 'array_change_key_case', |
123 | | | 'array_chunk', 'array_count_values', 'array_diff', |
124 | | | 'array_diff_assoc', 'array_fill', 'array_filter', |
125 | | | 'array_flip', 'array_intersect', |
126 | | | 'array_intersect_assoc', 'array_keys', |
127 | | | 'array_key_exists', 'array_map', 'array_merge', |
128 | | | 'array_merge_recursive', 'array_multisort', |
129 | | | 'array_pad', 'array_pop', 'array_push', 'array_rand', |
130 | | | 'array_reduce', 'array_reverse', 'array_search', |
131 | | | 'array_shift', 'array_slice', 'array_splice', |
132 | | | 'array_sum', 'array_unique', 'array_unshift', |
133 | | | 'array_values', 'array_walk', 'arsort', 'asin', |
134 | | | 'asinh', 'asort', 'assert', 'assert_options', 'atan', |
135 | | | 'atan2', 'atanh', 'base64_decode', 'base64_encode', |
136 | | | 'basename', 'base_convert', 'bcadd', 'bccomp', |
137 | | | 'bcdiv', 'bcmod', 'bcmul', 'bcpow', 'bcscale', |
138 | | | 'bcsqrt', 'bcsub', 'bin2hex', 'bindec', |
139 | | | 'bindtextdomain', 'bind_textdomain_codeset', |
140 | | | 'bzclose', 'bzcompress', 'bzdecompress', 'bzerrno', |
141 | | | 'bzerror', 'bzerrstr', 'bzflush', 'bzopen', 'bzread', |
142 | | | 'bzwrite', 'call_user_func', 'call_user_func_array', |
143 | | | 'call_user_method', 'call_user_method_array', |
144 | | | 'cal_days_in_month', 'cal_from_jd', 'cal_info', |
145 | | | 'cal_to_jd', 'ceil', 'chdir', 'checkdate', |
146 | | | 'checkdnsrr', 'chgrp', 'chmod', 'chop', 'chown', |
147 | | | 'chr', 'chunk_split', 'class_exists', |
148 | | | 'clearstatcache', 'closedir', 'closelog', 'compact', |
149 | | | 'connection_aborted', 'connection_status', |
150 | | | 'constant', 'convert_cyr_string', 'copy', 'cos', |
151 | | | 'cosh', 'count', 'count_chars', 'crc32', |
152 | | | 'create_function', 'crypt', 'ctype_alnum', |
153 | | | 'ctype_alpha', 'ctype_cntrl', 'ctype_digit', |
154 | | | 'ctype_graph', 'ctype_lower', 'ctype_print', |
155 | | | 'ctype_punct', 'ctype_space', 'ctype_upper', |
156 | | | 'ctype_xdigit', 'current', 'date', 'dba_close', |
157 | | | 'dba_delete', 'dba_exists', 'dba_fetch', |
158 | | | 'dba_firstkey', 'dba_handlers', 'dba_insert', |
159 | | | 'dba_list', 'dba_nextkey', 'dba_open', |
160 | | | 'dba_optimize', 'dba_popen', 'dba_replace', |
161 | | | 'dba_sync', 'dcgettext', 'dcngettext', 'deaggregate', |
162 | | | 'debug_backtrace', 'debug_zval_dump', 'decbin', |
163 | | | 'dechex', 'decoct', 'define', 'defined', |
164 | | | 'define_syslog_variables', 'deg2rad', 'dgettext', |
165 | | | 'die', 'dir', 'dirname', 'diskfreespace', |
166 | | | 'disk_free_space', 'disk_total_space', 'dl', |
167 | | | 'dngettext', 'doubleval', 'each', 'easter_date', |
168 | | | 'easter_days', 'echo', 'empty', 'end', 'ereg', |
169 | | | 'eregi', 'eregi_replace', 'ereg_replace', |
170 | | | 'error_log', 'error_reporting', 'escapeshellarg', |
171 | | | 'escapeshellcmd', 'eval', 'exec', 'exif_imagetype', |
172 | | | 'exif_read_data', 'exif_tagname', 'exif_thumbnail', |
173 | | | 'exit', 'exp', 'explode', 'expm1', |
174 | | | 'extension_loaded', 'extract', 'ezmlm_hash', |
175 | | | 'fclose', 'feof', 'fflush', 'fgetc', 'fgetcsv', |
176 | | | 'fgets', 'fgetss', 'file', 'fileatime', 'filectime', |
177 | | | 'filegroup', 'fileinode', 'filemtime', 'fileowner', |
178 | | | 'fileperms', 'filepro', 'filepro_fieldcount', |
179 | | | 'filepro_fieldname', 'filepro_fieldtype', |
180 | | | 'filepro_fieldwidth', 'filepro_retrieve', |
181 | | | 'filepro_rowcount', 'filesize', 'filetype', |
182 | | | 'file_exists', 'file_get_contents', 'floatval', |
183 | | | 'flock', 'floor', 'flush', 'fmod', 'fnmatch', |
184 | | | 'fopen', 'fpassthru', 'fputs', 'fread', 'frenchtojd', |
185 | | | 'fscanf', 'fseek', 'fsockopen', 'fstat', 'ftell', |
186 | | | 'ftok', 'ftp_cdup', 'ftp_chdir', 'ftp_close', |
187 | | | 'ftp_connect', 'ftp_delete', 'ftp_exec', 'ftp_fget', |
188 | | | 'ftp_fput', 'ftp_get', 'ftp_get_option', 'ftp_login', |
189 | | | 'ftp_mdtm', 'ftp_mkdir', 'ftp_nb_continue', |
190 | | | 'ftp_nb_fget', 'ftp_nb_fput', 'ftp_nb_get', |
191 | | | 'ftp_nb_put', 'ftp_nlist', 'ftp_pasv', 'ftp_put', |
192 | | | 'ftp_pwd', 'ftp_quit', 'ftp_rawlist', 'ftp_rename', |
193 | | | 'ftp_rmdir', 'ftp_set_option', 'ftp_site', |
194 | | | 'ftp_size', 'ftp_ssl_connect', 'ftp_systype', |
195 | | | 'ftruncate', 'function_exists', 'func_get_arg', |
196 | | | 'func_get_args', 'func_num_args', 'fwrite', |
197 | | | 'getallheaders', 'getcwd', 'getdate', 'getenv', |
198 | | | 'gethostbyaddr', 'gethostbyname', 'gethostbynamel', |
199 | | | 'getimagesize', 'getlastmod', 'getmxrr', 'getmygid', |
200 | | | 'getmyinode', 'getmypid', 'getmyuid', 'getopt', |
201 | | | 'getprotobyname', 'getprotobynumber', 'getrandmax', |
202 | | | 'getrusage', 'getservbyname', 'getservbyport', |
203 | | | 'gettext', 'gettimeofday', 'gettype', 'get_browser', |
204 | | | 'get_cfg_var', 'get_class', 'get_class_methods', |
205 | | | 'get_class_vars', 'get_current_user', |
206 | | | 'get_declared_classes', 'get_defined_constants', |
207 | | | 'get_defined_functions', 'get_defined_vars', |
208 | | | 'get_extension_funcs', 'get_html_translation_table', |
209 | | | 'get_included_files', 'get_include_path', |
210 | | | 'get_loaded_extensions', 'get_magic_quotes_gpc', |
211 | | | 'get_magic_quotes_runtime', 'get_meta_tags', |
212 | | | 'get_object_vars', 'get_parent_class', |
213 | | | 'get_required_files', 'get_resource_type', 'glob', |
214 | | | 'global', 'gmdate', 'gmmktime', 'gmstrftime', |
215 | | | 'gregoriantojd', 'gzclose', 'gzcompress', |
216 | | | 'gzdeflate', 'gzencode', 'gzeof', 'gzfile', 'gzgetc', |
217 | | | 'gzgets', 'gzgetss', 'gzinflate', 'gzopen', |
218 | | | 'gzpassthru', 'gzputs', 'gzread', 'gzrewind', |
219 | | | 'gzseek', 'gztell', 'gzuncompress', 'gzwrite', |
220 | | | 'header', 'headers_sent', 'hebrev', 'hebrevc', |
221 | | | 'hexdec', 'highlight_file', 'highlight_string', |
222 | | | 'htmlentities', 'htmlspecialchars', |
223 | | | 'html_entity_decode', 'hypot', 'i18n_convert', |
224 | | | 'i18n_discover_encoding', 'i18n_http_input', |
225 | | | 'i18n_http_output', 'i18n_internal_encoding', |
226 | | | 'i18n_ja_jp_hantozen', 'i18n_mime_header_decode', |
227 | | | 'i18n_mime_header_encode', 'iconv', |
228 | | | 'iconv_get_encoding', 'iconv_set_encoding', |
229 | | | 'ignore_user_abort', 'image_type_to_mime_type', |
230 | | | 'implode', 'import_request_variables', 'ini_alter', |
231 | | | 'ini_get', 'ini_get_all', 'ini_restore', 'ini_set', |
232 | | | 'intval', 'in_array', 'ip2long', 'iptcembed', |
233 | | | 'iptcparse', 'isset', 'is_a', 'is_array', 'is_bool', |
234 | | | 'is_callable', 'is_dir', 'is_double', |
235 | | | 'is_executable', 'is_file', 'is_finite', 'is_float', |
236 | | | 'is_infinite', 'is_int', 'is_integer', 'is_link', |
237 | | | 'is_long', 'is_nan', 'is_null', 'is_numeric', |
238 | | | 'is_object', 'is_readable', 'is_real', 'is_resource', |
239 | | | 'is_scalar', 'is_string', 'is_subclass_of', |
240 | | | 'is_uploaded_file', 'is_writable', 'is_writeable', |
241 | | | 'jddayofweek', 'jdmonthname', 'jdtofrench', |
242 | | | 'jdtogregorian', 'jdtojewish', 'jdtojulian', |
243 | | | 'jdtounix', 'jewishtojd', 'join', 'juliantojd', |
244 | | | 'key', 'key_exists', 'krsort', 'ksort', 'lcg_value', |
245 | | | 'levenshtein', 'link', 'linkinfo', 'list', |
246 | | | 'localeconv', 'localtime', 'log', 'log1p', 'log10', |
247 | | | 'long2ip', 'lstat', 'ltrim', 'magic_quotes_runtime', |
248 | | | 'mail', 'max', 'mbereg', 'mberegi', |
249 | | | 'mberegi_replace', 'mbereg_match', 'mbereg_replace', |
250 | | | 'mbereg_search', 'mbereg_search_getpos', |
251 | | | 'mbereg_search_getregs', 'mbereg_search_init', |
252 | | | 'mbereg_search_pos', 'mbereg_search_regs', |
253 | | | 'mbereg_search_setpos', 'mbregex_encoding', |
254 | | | 'mbsplit', 'mbstrcut', 'mbstrlen', 'mbstrpos', |
255 | | | 'mbstrrpos', 'mbsubstr', 'mb_convert_case', |
256 | | | 'mb_convert_encoding', 'mb_convert_kana', |
257 | | | 'mb_convert_variables', 'mb_decode_mimeheader', |
258 | | | 'mb_decode_numericentity', 'mb_detect_encoding', |
259 | | | 'mb_detect_order', 'mb_encode_mimeheader', |
260 | | | 'mb_encode_numericentity', 'mb_ereg', 'mb_eregi', |
261 | | | 'mb_eregi_replace', 'mb_ereg_match', |
262 | | | 'mb_ereg_replace', 'mb_ereg_search', |
263 | | | 'mb_ereg_search_getpos', 'mb_ereg_search_getregs', |
264 | | | 'mb_ereg_search_init', 'mb_ereg_search_pos', |
265 | | | 'mb_ereg_search_regs', 'mb_ereg_search_setpos', |
266 | | | 'mb_get_info', 'mb_http_input', 'mb_http_output', |
267 | | | 'mb_internal_encoding', 'mb_language', |
268 | | | 'mb_output_handler', 'mb_parse_str', |
269 | | | 'mb_preferred_mime_name', 'mb_regex_encoding', |
270 | | | 'mb_regex_set_options', 'mb_send_mail', 'mb_split', |
271 | | | 'mb_strcut', 'mb_strimwidth', 'mb_strlen', |
272 | | | 'mb_strpos', 'mb_strrpos', 'mb_strtolower', |
273 | | | 'mb_strtoupper', 'mb_strwidth', |
274 | | | 'mb_substitute_character', 'mb_substr', |
275 | | | 'mb_substr_count', 'md5', 'md5_file', |
276 | | | 'memory_get_usage', 'metaphone', 'method_exists', |
277 | | | 'microtime', 'min', 'mkdir', 'mktime', |
278 | | | 'money_format', 'move_uploaded_file', |
279 | | | 'mt_getrandmax', 'mt_rand', 'mt_srand', 'mysql', |
280 | | | 'mysql_affected_rows', 'mysql_client_encoding', |
281 | | | 'mysql_close', 'mysql_connect', 'mysql_createdb', |
282 | | | 'mysql_create_db', 'mysql_data_seek', 'mysql_dbname', |
283 | | | 'mysql_db_name', 'mysql_db_query', 'mysql_dropdb', |
284 | | | 'mysql_drop_db', 'mysql_errno', 'mysql_error', |
285 | | | 'mysql_escape_string', 'mysql_fetch_array', |
286 | | | 'mysql_fetch_assoc', 'mysql_fetch_field', |
287 | | | 'mysql_fetch_lengths', 'mysql_fetch_object', |
288 | | | 'mysql_fetch_row', 'mysql_fieldflags', |
289 | | | 'mysql_fieldlen', 'mysql_fieldname', |
290 | | | 'mysql_fieldtable', 'mysql_fieldtype', |
291 | | | 'mysql_field_flags', 'mysql_field_len', |
292 | | | 'mysql_field_name', 'mysql_field_seek', |
293 | | | 'mysql_field_table', 'mysql_field_type', |
294 | | | 'mysql_freeresult', 'mysql_free_result', |
295 | | | 'mysql_get_client_info', 'mysql_get_host_info', |
296 | | | 'mysql_get_proto_info', 'mysql_get_server_info', |
297 | | | 'mysql_info', 'mysql_insert_id', 'mysql_listdbs', |
298 | | | 'mysql_listfields', 'mysql_listtables', |
299 | | | 'mysql_list_dbs', 'mysql_list_fields', |
300 | | | 'mysql_list_processes', 'mysql_list_tables', |
301 | | | 'mysql_numfields', 'mysql_numrows', |
302 | | | 'mysql_num_fields', 'mysql_num_rows', |
303 | | | 'mysql_pconnect', 'mysql_ping', 'mysql_query', |
304 | | | 'mysql_real_escape_string', 'mysql_result', |
305 | | | 'mysql_selectdb', 'mysql_select_db', 'mysql_stat', |
306 | | | 'mysql_tablename', 'mysql_table_name', |
307 | | | 'mysql_thread_id', 'mysql_unbuffered_query', |
308 | | | 'natcasesort', 'natsort', 'next', 'ngettext', |
309 | | | 'nl2br', 'nl_langinfo', 'number_format', 'ob_clean', |
310 | | | 'ob_end_clean', 'ob_end_flush', 'ob_flush', |
311 | | | 'ob_get_clean', 'ob_get_contents', 'ob_get_flush', |
312 | | | 'ob_get_length', 'ob_get_level', 'ob_get_status', |
313 | | | 'ob_gzhandler', 'ob_iconv_handler', |
314 | | | 'ob_implicit_flush', 'ob_list_handlers', 'ob_start', |
315 | | | 'octdec', 'opendir', 'openlog', 'openssl_csr_export', |
316 | | | 'openssl_csr_export_to_file', 'openssl_csr_new', |
317 | | | 'openssl_csr_sign', 'openssl_error_string', |
318 | | | 'openssl_free_key', 'openssl_get_privatekey', |
319 | | | 'openssl_get_publickey', 'openssl_open', |
320 | | | 'openssl_pkcs7_decrypt', 'openssl_pkcs7_encrypt', |
321 | | | 'openssl_pkcs7_sign', 'openssl_pkcs7_verify', |
322 | | | 'openssl_pkey_export', 'openssl_pkey_export_to_file', |
323 | | | 'openssl_pkey_free', 'openssl_pkey_get_private', |
324 | | | 'openssl_pkey_get_public', 'openssl_pkey_new', |
325 | | | 'openssl_private_decrypt', 'openssl_private_encrypt', |
326 | | | 'openssl_public_decrypt', 'openssl_public_encrypt', |
327 | | | 'openssl_seal', 'openssl_sign', 'openssl_verify', |
328 | | | 'openssl_x509_checkpurpose', |
329 | | | 'openssl_x509_check_private_key', |
330 | | | 'openssl_x509_export', 'openssl_x509_export_to_file', |
331 | | | 'openssl_x509_free', 'openssl_x509_parse', |
332 | | | 'openssl_x509_read', 'ord', 'output_add_rewrite_var', |
333 | | | 'output_reset_rewrite_vars', 'overload', 'pack', |
334 | | | 'parse_ini_file', 'parse_str', 'parse_url', |
335 | | | 'passthru', 'pathinfo', 'pclose', 'pfsockopen', |
336 | | | 'pg_affected_rows', 'pg_cancel_query', |
337 | | | 'pg_clientencoding', 'pg_client_encoding', |
338 | | | 'pg_close', 'pg_cmdtuples', 'pg_connect', |
339 | | | 'pg_connection_busy', 'pg_connection_reset', |
340 | | | 'pg_connection_status', 'pg_convert', 'pg_copy_from', |
341 | | | 'pg_copy_to', 'pg_dbname', 'pg_delete', |
342 | | | 'pg_end_copy', 'pg_errormessage', 'pg_escape_bytea', |
343 | | | 'pg_escape_string', 'pg_exec', 'pg_fetch_all', |
344 | | | 'pg_fetch_array', 'pg_fetch_assoc', |
345 | | | 'pg_fetch_object', 'pg_fetch_result', 'pg_fetch_row', |
346 | | | 'pg_fieldisnull', 'pg_fieldname', 'pg_fieldnum', |
347 | | | 'pg_fieldprtlen', 'pg_fieldsize', 'pg_fieldtype', |
348 | | | 'pg_field_is_null', 'pg_field_name', 'pg_field_num', |
349 | | | 'pg_field_prtlen', 'pg_field_size', 'pg_field_type', |
350 | | | 'pg_freeresult', 'pg_free_result', 'pg_getlastoid', |
351 | | | 'pg_get_notify', 'pg_get_pid', 'pg_get_result', |
352 | | | 'pg_host', 'pg_insert', 'pg_last_error', |
353 | | | 'pg_last_notice', 'pg_last_oid', 'pg_loclose', |
354 | | | 'pg_locreate', 'pg_loexport', 'pg_loimport', |
355 | | | 'pg_loopen', 'pg_loread', 'pg_loreadall', |
356 | | | 'pg_lounlink', 'pg_lowrite', 'pg_lo_close', |
357 | | | 'pg_lo_create', 'pg_lo_export', 'pg_lo_import', |
358 | | | 'pg_lo_open', 'pg_lo_read', 'pg_lo_read_all', |
359 | | | 'pg_lo_seek', 'pg_lo_tell', 'pg_lo_unlink', |
360 | | | 'pg_lo_write', 'pg_meta_data', 'pg_numfields', |
361 | | | 'pg_numrows', 'pg_num_fields', 'pg_num_rows', |
362 | | | 'pg_options', 'pg_pconnect', 'pg_ping', 'pg_port', |
363 | | | 'pg_put_line', 'pg_query', 'pg_result', |
364 | | | 'pg_result_error', 'pg_result_seek', |
365 | | | 'pg_result_status', 'pg_select', 'pg_send_query', |
366 | | | 'pg_setclientencoding', 'pg_set_client_encoding', |
367 | | | 'pg_trace', 'pg_tty', 'pg_unescape_bytea', |
368 | | | 'pg_untrace', 'pg_update', 'phpcredits', 'phpinfo', |
369 | | | 'phpversion', 'php_ini_scanned_files', |
370 | | | 'php_logo_guid', 'php_sapi_name', 'php_uname', 'pi', |
371 | | | 'popen', 'pos', 'posix_ctermid', 'posix_errno', |
372 | | | 'posix_getcwd', 'posix_getegid', 'posix_geteuid', |
373 | | | 'posix_getgid', 'posix_getgrgid', 'posix_getgrnam', |
374 | | | 'posix_getgroups', 'posix_getlogin', 'posix_getpgid', |
375 | | | 'posix_getpgrp', 'posix_getpid', 'posix_getppid', |
376 | | | 'posix_getpwnam', 'posix_getpwuid', |
377 | | | 'posix_getrlimit', 'posix_getsid', 'posix_getuid', |
378 | | | 'posix_get_last_error', 'posix_isatty', 'posix_kill', |
379 | | | 'posix_mkfifo', 'posix_setegid', 'posix_seteuid', |
380 | | | 'posix_setgid', 'posix_setpgid', 'posix_setsid', |
381 | | | 'posix_setuid', 'posix_strerror', 'posix_times', |
382 | | | 'posix_ttyname', 'posix_uname', 'pow', 'preg_grep', |
383 | | | 'preg_match', 'preg_match_all', 'preg_quote', |
384 | | | 'preg_replace', 'preg_replace_callback', |
385 | | | 'preg_split', 'prev', 'print', 'printf', 'print_r', |
386 | | | 'proc_close', 'proc_open', 'putenv', |
387 | | | 'quoted_printable_decode', 'quotemeta', 'rad2deg', |
388 | | | 'rand', 'range', 'rawurldecode', 'rawurlencode', |
389 | | | 'readdir', 'readfile', 'readgzfile', 'readlink', |
390 | | | 'read_exif_data', 'realpath', |
391 | | | 'register_shutdown_function', |
392 | | | 'register_tick_function', 'rename', 'reset', |
393 | | | 'restore_error_handler', 'restore_include_path', |
394 | | | 'rewind', 'rewinddir', 'rmdir', 'round', 'rsort', |
395 | | | 'rtrim', 'sem_acquire', 'sem_get', 'sem_release', |
396 | | | 'sem_remove', 'serialize', 'session_cache_expire', |
397 | | | 'session_cache_limiter', 'session_decode', |
398 | | | 'session_destroy', 'session_encode', |
399 | | | 'session_get_cookie_params', 'session_id', |
400 | | | 'session_is_registered', 'session_module_name', |
401 | | | 'session_name', 'session_regenerate_id', |
402 | | | 'session_register', 'session_save_path', |
403 | | | 'session_set_cookie_params', |
404 | | | 'session_set_save_handler', 'session_start', |
405 | | | 'session_unregister', 'session_unset', |
406 | | | 'session_write_close', 'setcookie', 'setlocale', |
407 | | | 'settype', 'set_error_handler', 'set_file_buffer', |
408 | | | 'set_include_path', 'set_magic_quotes_runtime', |
409 | | | 'set_socket_blocking', 'set_time_limit', 'sha1', |
410 | | | 'sha1_file', 'shell_exec', 'shmop_close', |
411 | | | 'shmop_delete', 'shmop_open', 'shmop_read', |
412 | | | 'shmop_size', 'shmop_write', 'shm_attach', |
413 | | | 'shm_detach', 'shm_get_var', 'shm_put_var', |
414 | | | 'shm_remove', 'shm_remove_var', 'show_source', |
415 | | | 'shuffle', 'similar_text', 'sin', 'sinh', 'sizeof', |
416 | | | 'sleep', 'socket_accept', 'socket_bind', |
417 | | | 'socket_clear_error', 'socket_close', |
418 | | | 'socket_connect', 'socket_create', |
419 | | | 'socket_create_listen', 'socket_create_pair', |
420 | | | 'socket_getopt', 'socket_getpeername', |
421 | | | 'socket_getsockname', 'socket_get_option', |
422 | | | 'socket_get_status', 'socket_iovec_add', |
423 | | | 'socket_iovec_alloc', 'socket_iovec_delete', |
424 | | | 'socket_iovec_fetch', 'socket_iovec_free', |
425 | | | 'socket_iovec_set', 'socket_last_error', |
426 | | | 'socket_listen', 'socket_read', 'socket_readv', |
427 | | | 'socket_recv', 'socket_recvfrom', 'socket_recvmsg', |
428 | | | 'socket_select', 'socket_send', 'socket_sendmsg', |
429 | | | 'socket_sendto', 'socket_setopt', 'socket_set_block', |
430 | | | 'socket_set_blocking', 'socket_set_nonblock', |
431 | | | 'socket_set_option', 'socket_set_timeout', |
432 | | | 'socket_shutdown', 'socket_strerror', 'socket_write', |
433 | | | 'socket_writev', 'sort', 'soundex', 'split', |
434 | | | 'spliti', 'sprintf', 'sql_regcase', 'sqrt', 'srand', |
435 | | | 'sscanf', 'stat', 'static', 'strcasecmp', 'strchr', |
436 | | | 'strcmp', 'strcoll', 'strcspn', |
437 | | | 'stream_context_create', |
438 | | | 'stream_context_get_options', |
439 | | | 'stream_context_set_option', |
440 | | | 'stream_context_set_params', 'stream_filter_append', |
441 | | | 'stream_filter_prepend', 'stream_get_meta_data', |
442 | | | 'stream_register_wrapper', 'stream_select', |
443 | | | 'stream_set_blocking', 'stream_set_timeout', |
444 | | | 'stream_set_write_buffer', 'stream_wrapper_register', |
445 | | | 'strftime', 'stripcslashes', 'stripslashes', |
446 | | | 'strip_tags', 'stristr', 'strlen', 'strnatcasecmp', |
447 | | | 'strnatcmp', 'strncasecmp', 'strncmp', 'strpos', |
448 | | | 'strrchr', 'strrev', 'strrpos', 'strspn', 'strstr', |
449 | | | 'strtok', 'strtolower', 'strtotime', 'strtoupper', |
450 | | | 'strtr', 'strval', 'str_pad', 'str_repeat', |
451 | | | 'str_replace', 'str_rot13', 'str_shuffle', |
452 | | | 'str_word_count', 'substr', 'substr_count', |
453 | | | 'substr_replace', 'symlink', 'syslog', 'system', |
454 | | | 'tan', 'tanh', 'tempnam', 'textdomain', 'time', |
455 | | | 'tmpfile', 'token_get_all', 'token_name', 'touch', |
456 | | | 'trigger_error', 'trim', 'uasort', 'ucfirst', |
457 | | | 'ucwords', 'uksort', 'umask', 'uniqid', 'unixtojd', |
458 | | | 'unlink', 'unpack', 'unregister_tick_function', |
459 | | | 'unserialize', 'unset', 'urldecode', 'urlencode', |
460 | | | 'user_error', 'usleep', 'usort', 'utf8_decode', |
461 | | | 'utf8_encode', 'var_dump', 'var_export', |
462 | | | 'version_compare', 'virtual', 'vprintf', 'vsprintf', |
463 | | | 'wddx_add_vars', 'wddx_deserialize', |
464 | | | 'wddx_packet_end', 'wddx_packet_start', |
465 | | | 'wddx_serialize_value', 'wddx_serialize_vars', |
466 | | | 'wordwrap', 'xml_error_string', |
467 | | | 'xml_get_current_byte_index', |
468 | | | 'xml_get_current_column_number', |
469 | | | 'xml_get_current_line_number', 'xml_get_error_code', |
470 | | | 'xml_parse', 'xml_parser_create', |
471 | | | 'xml_parser_create_ns', 'xml_parser_free', |
472 | | | 'xml_parser_get_option', 'xml_parser_set_option', |
473 | | | 'xml_parse_into_struct', |
474 | | | 'xml_set_character_data_handler', |
475 | | | 'xml_set_default_handler', 'xml_set_element_handler', |
476 | | | 'xml_set_end_namespace_decl_handler', |
477 | | | 'xml_set_external_entity_ref_handler', |
478 | | | 'xml_set_notation_decl_handler', 'xml_set_object', |
479 | | | 'xml_set_processing_instruction_handler', |
480 | | | 'xml_set_start_namespace_decl_handler', |
481 | | | 'xml_set_unparsed_entity_decl_handler', 'yp_all', |
482 | | | 'yp_cat', 'yp_errno', 'yp_err_string', 'yp_first', |
483 | | | 'yp_get_default_domain', 'yp_master', 'yp_match', |
484 | | | 'yp_next', 'yp_order', 'zend_logo_guid', |
485 | | | 'zend_version', 'zlib_get_coding_type', '_' |
486 | | | ) |
487 | | | ), |
488 | | | 'SYMBOLS' => array( |
489 | | | '(', ')', '[', ']', '{', '}', |
490 | | | '!', '@', '%', '&', '|', '/', |
491 | | | '<', '>', |
492 | | | '=', '-', '+', '*', |
493 | | | '.', ':', ',', ';' |
494 | | | ), |
495 | | | 'CASE_SENSITIVE' => array( |
496 | | | GESHI_COMMENTS => false, |
497 | | | 1 => false, |
498 | | | 2 => false, |
499 | | | 3 => false, |
500 | | | ), |
501 | | | 'STYLES' => array( |
502 | | | 'KEYWORDS' => array( |
503 | | | 1 => 'color: #b1b100;', |
504 | | | 2 => 'color: #000000; font-weight: bold;', |
505 | | | 3 => 'color: #990000;' |
506 | | | ), |
507 | | | 'COMMENTS' => array( |
508 | | | 1 => 'color: #666666; font-style: italic;', |
509 | | | 2 => 'color: #666666; font-style: italic;', |
510 | | | 3 => 'color: #0000cc; font-style: italic;', |
511 | | | 4 => 'color: #009933; font-style: italic;', |
512 | | | 'MULTI' => 'color: #666666; font-style: italic;' |
513 | | | ), |
514 | | | 'ESCAPE_CHAR' => array( |
515 | | | |
516 | | | 1 => 'color: #000099; font-weight: bold;', |
517 | | | 2 => 'color: #660099; font-weight: bold;', |
518 | | | 3 => 'color: #660099; font-weight: bold;', |
519 | | | 4 => 'color: #006699; font-weight: bold;', |
520 | | | 5 => 'color: #006699; font-weight: bold; font-style: italic;', |
521 | | | 6 => 'color: #009933; font-weight: bold;', |
522 | | | 'HARD' => 'color: #000099; font-weight: bold;' |
523 | | | ), |
524 | | | 'BRACKETS' => array( |
525 | | | |
526 | | | ), |
527 | | | 'STRINGS' => array( |
528 | | | |
529 | | | 'HARD' => 'color: #0000ff;' |
530 | | | ), |
531 | | | 'NUMBERS' => array( |
532 | | | |
533 | | | GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', |
534 | | | GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', |
535 | | | GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', |
536 | | | ), |
537 | | | 'METHODS' => array( |
538 | | | 1 => 'color: #004000;', |
539 | | | 2 => 'color: #004000;' |
540 | | | ), |
541 | | | 'SYMBOLS' => array( |
542 | | | |
543 | | | ), |
544 | | | 'REGEXPS' => array( |
545 | | | |
546 | | | ), |
547 | | | 'SCRIPT' => array( |
548 | | | |
549 | | | 1 => '', |
550 | | | 2 => '', |
551 | | | 3 => '', |
552 | | | 4 => '', |
553 | | | 5 => '' |
554 | | | ) |
555 | | | ), |
556 | | | 'URLS' => array( |
557 | | | 1 => '', |
558 | | | 2 => '', |
559 | | | 3 => 'http://www.php.net/{FNAMEL}' |
560 | | | ), |
561 | | | 'OOLANG' => true, |
562 | | | 'OBJECT_SPLITTERS' => array( |
563 | | | 1 => '->', |
564 | | | 2 => '::' |
565 | | | ), |
566 | | | 'REGEXPS' => array( |
567 | | | //Variables |
568 | | | |
569 | | | ), |
570 | | | 'STRICT_MODE_APPLIES' => GESHI_MAYBE, |
571 | | | 'SCRIPT_DELIMITERS' => array( |
572 | | | |
573 | | | '<?php' => '?>' |
574 | | | ), |
575 | | | 1 => array( |
576 | | | '<?' => '?>' |
577 | | | ), |
578 | | | 2 => array( |
579 | | | '<%' => '%>' |
580 | | | ), |
581 | | | 3 => array( |
582 | | | '<script language="php">' => '</script>' |
583 | | | ), |
584 | | | 4 => "/(<\?(?:php)?)(?:'(?:[^'\\\\]|\\\\.)*?'|\"(?:[^\"\\\\]|\\\\.)*?\"|\/\*(?!\*\/).*?\*\/|.)*?(\?>|\Z)/sm", |
585 | | | 5 => "/(<%)(?:'(?:[^'\\\\]|\\\\.)*?'|\"(?:[^\"\\\\]|\\\\.)*?\"|\/\*(?!\*\/).*?\*\/|.)*?(%>|\Z)/sm" |
586 | | | ), |
587 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
588 | | | |
589 | | | 1 => true, |
590 | | | 2 => true, |
591 | | | 3 => true, |
592 | | | 4 => true, |
593 | | | 5 => true |
594 | | | ), |
595 | | | 'TAB_WIDTH' => 4 |
596 | | | ); |
597 | | | |
598 | | | ?> |