Home | History | Annotate | Download | only in php
      1 /* -----------------------------------------------------------------------------
      2  * phpkw.swg
      3  * ----------------------------------------------------------------------------- */
      4 
      5 #define PHPKW(x) %keywordwarn("'" `x` "' is a PHP keyword, renamed as 'c_" `x` "'",sourcefmt="%(lower)s",rename="c_%s") `x`
      6 
      7 #define PHPCN(x) %keywordwarn("'" `x` "' is a PHP reserved class name, class renamed as 'c_" `x` "'",%$isclass,sourcefmt="%(lower)s",rename="c_%s") `x`
      8 
      9 #define PHPBN1(x) %builtinwarn("'" `x` "' conflicts with a built-in name in PHP",sourcefmt="%(lower)s") `x`
     10 #define PHPBN2(x) %builtinwarn("'" `x` "' conflicts with a built-in name in PHP") "::" `x`
     11 #define PHPFN(x) %keywordwarn("'" `x` "' is a PHP built-in function, renamed as 'c_" `x` "'",sourcefmt="%(lower)s",%$isfunction,%$not %$ismember,rename="c_%s") `x`
     12 
     13 /*
     14    From
     15 
     16      http://aspn.activestate.com/ASPN/docs/PHP/reserved.html
     17      http://php.net/manual/en/reserved.keywords.php
     18 
     19    and reviewed by Olly Betts.
     20 
     21    Further updates from the PHP manual on php.net.
     22 */
     23 
     24 /* We classify these as kw since PHP will not run if used globally. */
     25 /* "You cannot use any of the following words as constants, class names,
     26  * function or method names. Using them as variable names is generally OK, but
     27  * could lead to confusion."
     28  */
     29 /* case insensitive */
     30 PHPKW(__halt_compiler);
     31 PHPKW(abstract);
     32 PHPKW(and);
     33 PHPKW(array);
     34 PHPKW(as);
     35 PHPKW(break);
     36 PHPKW(case);
     37 PHPKW(catch);
     38 PHPKW(class);
     39 PHPKW(clone);
     40 PHPKW(const);
     41 PHPKW(continue);
     42 PHPKW(declare);
     43 PHPKW(default);
     44 PHPKW(die); // "Language construct"
     45 PHPKW(do);
     46 PHPKW(echo); // "Language construct"
     47 PHPKW(else);
     48 PHPKW(elseif);
     49 PHPKW(empty); // "Language construct"
     50 PHPKW(enddeclare);
     51 PHPKW(endfor);
     52 PHPKW(endforeach);
     53 PHPKW(endif);
     54 PHPKW(endswitch);
     55 PHPKW(endwhile);
     56 PHPKW(eval); // "Language construct"
     57 PHPKW(exit); // "Language construct"
     58 PHPKW(extends);
     59 PHPKW(final);
     60 PHPKW(for);
     61 PHPKW(foreach);
     62 PHPKW(function);
     63 PHPKW(global);
     64 PHPKW(goto); // As of PHP5.3
     65 PHPKW(if);
     66 PHPKW(implements);
     67 PHPKW(include); // "Language construct"
     68 PHPKW(include_once); // "Language construct"
     69 PHPKW(instanceof);
     70 PHPKW(interface);
     71 PHPKW(isset); // "Language construct"
     72 PHPKW(list); // "Language construct"
     73 PHPKW(namespace); // As of PHP5.3
     74 PHPKW(new);
     75 PHPKW(or);
     76 PHPKW(print); // "Language construct"
     77 PHPKW(private);
     78 PHPKW(protected);
     79 PHPKW(public);
     80 PHPKW(require); // "Language construct"
     81 PHPKW(require_once); // "Language construct"
     82 PHPKW(return); // "Language construct"
     83 PHPKW(static);
     84 PHPKW(switch);
     85 PHPKW(throw);
     86 PHPKW(try);
     87 PHPKW(unset); // "Language construct"
     88 PHPKW(use);
     89 PHPKW(var);
     90 PHPKW(while);
     91 PHPKW(xor);
     92 // Compile-time constants
     93 PHPKW(__CLASS__);
     94 PHPKW(__DIR__); // As of PHP5.3
     95 PHPKW(__FILE__);
     96 PHPKW(__FUNCTION__);
     97 PHPKW(__METHOD__);
     98 PHPKW(__NAMESPACE__); // As of PHP5.3
     99 PHPKW(__LINE__);
    100 
    101 /* We classify these as built-in names since they conflict, but PHP still runs */
    102 
    103 /* Type 1: case insensitive */
    104 PHPBN1(__sleep);
    105 PHPBN1(__wakeup);
    106 PHPBN1(not);
    107 PHPBN1(parent);
    108 PHPBN1(virtual);
    109 PHPBN1(NULL);
    110 PHPBN1(TRUE);
    111 PHPBN1(FALSE);
    112 
    113 /* Type 2: case sensitive */
    114 /* "Core Predefined Constants" from http://uk2.php.net/manual/en/reserved.constants.php */
    115 PHPBN2(E_ALL);
    116 PHPBN2(E_ERROR);
    117 PHPBN2(E_PARSE);
    118 PHPBN2(E_WARNING);
    119 PHPBN2(E_NOTICE);
    120 PHPBN2(E_CORE_ERROR);
    121 PHPBN2(E_CORE_WARNING);
    122 PHPBN2(E_COMPILE_ERROR);
    123 PHPBN2(E_COMPILE_WARNING);
    124 PHPBN2(E_USER_ERROR);
    125 PHPBN2(E_USER_WARNING);
    126 PHPBN2(E_USER_NOTICE);
    127 PHPBN2(E_DEPRECATED); // As of PHP 5.3
    128 PHPBN2(E_USER_DEPRECATED); // As of PHP 5.3
    129 PHPBN2(PHP_OS);
    130 PHPBN2(PHP_VERSION);
    131 PHPBN2(PHP_SAPI);
    132 PHPBN2(PHP_EOL);
    133 PHPBN2(PHP_INT_MAX);
    134 PHPBN2(PHP_INT_SIZE);
    135 PHPBN2(DEFAULT_INCLUDE_PATH);
    136 PHPBN2(PEAR_INSTALL_DIR);
    137 PHPBN2(PEAR_EXTENSION_DIR);
    138 PHPBN2(PHP_EXTENSION_DIR);
    139 PHPBN2(PHP_PREFIX);
    140 PHPBN2(PHP_BINDIR);
    141 PHPBN2(PHP_LIBDIR);
    142 PHPBN2(PHP_DATADIR);
    143 PHPBN2(PHP_SYSCONFDIR);
    144 PHPBN2(PHP_LOCALSTATEDIR);
    145 PHPBN2(PHP_CONFIG_FILE_PATH);
    146 PHPBN2(PHP_CONFIG_FILE_SCAN_DIR);
    147 PHPBN2(PHP_SHLIB_SUFFIX);
    148 PHPBN2(PHP_OUTPUT_HANDLER_START);
    149 PHPBN2(PHP_OUTPUT_HANDLER_CONT);
    150 PHPBN2(PHP_OUTPUT_HANDLER_END);
    151 PHPBN2(PHP_MAXPATHLEN); // As of PHP 5.3
    152 /* These don't actually seem to be set (tested on Linux, I guess they're
    153  * Windows only?) */
    154 PHPBN2(PHP_WINDOWS_NT_DOMAIN_CONTROLLER); // As of PHP 5.3
    155 PHPBN2(PHP_WINDOWS_NT_SERVER); // As of PHP 5.3
    156 PHPBN2(PHP_WINDOWS_NT_WORKSTATION); // As of PHP 5.3
    157 PHPBN2(PHP_WINDOWS_VERSION_BUILD); // As of PHP 5.3
    158 PHPBN2(PHP_WINDOWS_VERSION_MAJOR); // As of PHP 5.3
    159 PHPBN2(PHP_WINDOWS_VERSION_MINOR); // As of PHP 5.3
    160 PHPBN2(PHP_WINDOWS_VERSION_PLATFORM); // As of PHP 5.3
    161 PHPBN2(PHP_WINDOWS_VERSION_PRODUCTTYPE); // As of PHP 5.3
    162 PHPBN2(PHP_WINDOWS_VERSION_SP_MAJOR); // As of PHP 5.3
    163 PHPBN2(PHP_WINDOWS_VERSION_SP_MINOR); // As of PHP 5.3
    164 PHPBN2(PHP_WINDOWS_VERSION_SUITEMASK); // As of PHP 5.3
    165 /* "Standard Predefined Constants" from http://uk2.php.net/manual/en/reserved.constants.php */
    166 PHPBN2(EXTR_OVERWRITE);
    167 PHPBN2(EXTR_SKIP);
    168 PHPBN2(EXTR_PREFIX_SAME);
    169 PHPBN2(EXTR_PREFIX_ALL);
    170 PHPBN2(EXTR_PREFIX_INVALID);
    171 PHPBN2(EXTR_PREFIX_IF_EXISTS);
    172 PHPBN2(EXTR_IF_EXISTS);
    173 PHPBN2(SORT_ASC);
    174 PHPBN2(SORT_DESC);
    175 PHPBN2(SORT_REGULAR);
    176 PHPBN2(SORT_NUMERIC);
    177 PHPBN2(SORT_STRING);
    178 PHPBN2(CASE_LOWER);
    179 PHPBN2(CASE_UPPER);
    180 PHPBN2(COUNT_NORMAL);
    181 PHPBN2(COUNT_RECURSIVE);
    182 PHPBN2(ASSERT_ACTIVE);
    183 PHPBN2(ASSERT_CALLBACK);
    184 PHPBN2(ASSERT_BAIL);
    185 PHPBN2(ASSERT_WARNING);
    186 PHPBN2(ASSERT_QUIET_EVAL);
    187 PHPBN2(CONNECTION_ABORTED);
    188 PHPBN2(CONNECTION_NORMAL);
    189 PHPBN2(CONNECTION_TIMEOUT);
    190 PHPBN2(INI_USER);
    191 PHPBN2(INI_PERDIR);
    192 PHPBN2(INI_SYSTEM);
    193 PHPBN2(INI_ALL);
    194 PHPBN2(INI_SCANNER_NORMAL); // As of PHP 5.3
    195 PHPBN2(INI_SCANNER_RAW); // As of PHP 5.3
    196 PHPBN2(M_E);
    197 PHPBN2(M_LOG2E);
    198 PHPBN2(M_LOG10E);
    199 PHPBN2(M_LN2);
    200 PHPBN2(M_LN10);
    201 PHPBN2(M_PI);
    202 PHPBN2(M_PI_2);
    203 PHPBN2(M_PI_4);
    204 PHPBN2(M_1_PI);
    205 PHPBN2(M_2_PI);
    206 PHPBN2(M_2_SQRTPI);
    207 PHPBN2(M_SQRT2);
    208 PHPBN2(M_SQRT1_2);
    209 PHPBN2(M_EULER); // As of PHP 5.2
    210 PHPBN2(M_LNPI); // As of PHP 5.2
    211 PHPBN2(M_SQRT3); // As of PHP 5.2
    212 PHPBN2(M_SQRTPI); // As of PHP 5.2
    213 PHPBN2(CRYPT_SALT_LENGTH);
    214 PHPBN2(CRYPT_STD_DES);
    215 PHPBN2(CRYPT_EXT_DES);
    216 PHPBN2(CRYPT_MD5);
    217 PHPBN2(CRYPT_BLOWFISH);
    218 PHPBN2(DIRECTORY_SEPARATOR);
    219 PHPBN2(SEEK_SET);
    220 PHPBN2(SEEK_CUR);
    221 PHPBN2(SEEK_END);
    222 PHPBN2(LOCK_SH);
    223 PHPBN2(LOCK_EX);
    224 PHPBN2(LOCK_UN);
    225 PHPBN2(LOCK_NB);
    226 PHPBN2(HTML_SPECIALCHARS);
    227 PHPBN2(HTML_ENTITIES);
    228 PHPBN2(ENT_COMPAT);
    229 PHPBN2(ENT_QUOTES);
    230 PHPBN2(ENT_NOQUOTES);
    231 PHPBN2(INFO_GENERAL);
    232 PHPBN2(INFO_CREDITS);
    233 PHPBN2(INFO_CONFIGURATION);
    234 PHPBN2(INFO_MODULES);
    235 PHPBN2(INFO_ENVIRONMENT);
    236 PHPBN2(INFO_VARIABLES);
    237 PHPBN2(INFO_LICENSE);
    238 PHPBN2(INFO_ALL);
    239 PHPBN2(CREDITS_GROUP);
    240 PHPBN2(CREDITS_GENERAL);
    241 PHPBN2(CREDITS_SAPI);
    242 PHPBN2(CREDITS_MODULES);
    243 PHPBN2(CREDITS_DOCS);
    244 PHPBN2(CREDITS_FULLPAGE);
    245 PHPBN2(CREDITS_QA);
    246 PHPBN2(CREDITS_ALL);
    247 PHPBN2(STR_PAD_LEFT);
    248 PHPBN2(STR_PAD_RIGHT);
    249 PHPBN2(STR_PAD_BOTH);
    250 PHPBN2(PATHINFO_DIRNAME);
    251 PHPBN2(PATHINFO_BASENAME);
    252 PHPBN2(PATHINFO_EXTENSION);
    253 PHPBN2(PATHINFO_FILENAME); // As of PHP 5.2
    254 PHPBN2(PATH_SEPARATOR);
    255 PHPBN2(CHAR_MAX);
    256 PHPBN2(LC_CTYPE);
    257 PHPBN2(LC_NUMERIC);
    258 PHPBN2(LC_TIME);
    259 PHPBN2(LC_COLLATE);
    260 PHPBN2(LC_MONETARY);
    261 PHPBN2(LC_ALL);
    262 PHPBN2(LC_MESSAGES);
    263 PHPBN2(ABDAY_1);
    264 PHPBN2(ABDAY_2);
    265 PHPBN2(ABDAY_3);
    266 PHPBN2(ABDAY_4);
    267 PHPBN2(ABDAY_5);
    268 PHPBN2(ABDAY_6);
    269 PHPBN2(ABDAY_7);
    270 PHPBN2(DAY_1);
    271 PHPBN2(DAY_2);
    272 PHPBN2(DAY_3);
    273 PHPBN2(DAY_4);
    274 PHPBN2(DAY_5);
    275 PHPBN2(DAY_6);
    276 PHPBN2(DAY_7);
    277 PHPBN2(ABMON_1);
    278 PHPBN2(ABMON_2);
    279 PHPBN2(ABMON_3);
    280 PHPBN2(ABMON_4);
    281 PHPBN2(ABMON_5);
    282 PHPBN2(ABMON_6);
    283 PHPBN2(ABMON_7);
    284 PHPBN2(ABMON_8);
    285 PHPBN2(ABMON_9);
    286 PHPBN2(ABMON_10);
    287 PHPBN2(ABMON_11);
    288 PHPBN2(ABMON_12);
    289 PHPBN2(MON_1);
    290 PHPBN2(MON_2);
    291 PHPBN2(MON_3);
    292 PHPBN2(MON_4);
    293 PHPBN2(MON_5);
    294 PHPBN2(MON_6);
    295 PHPBN2(MON_7);
    296 PHPBN2(MON_8);
    297 PHPBN2(MON_9);
    298 PHPBN2(MON_10);
    299 PHPBN2(MON_11);
    300 PHPBN2(MON_12);
    301 PHPBN2(AM_STR);
    302 PHPBN2(PM_STR);
    303 PHPBN2(D_T_FMT);
    304 PHPBN2(D_FMT);
    305 PHPBN2(T_FMT);
    306 PHPBN2(T_FMT_AMPM);
    307 PHPBN2(ERA);
    308 PHPBN2(ERA_YEAR);
    309 PHPBN2(ERA_D_T_FMT);
    310 PHPBN2(ERA_D_FMT);
    311 PHPBN2(ERA_T_FMT);
    312 PHPBN2(ALT_DIGITS);
    313 PHPBN2(INT_CURR_SYMBOL);
    314 PHPBN2(CURRENCY_SYMBOL);
    315 PHPBN2(CRNCYSTR);
    316 PHPBN2(MON_DECIMAL_POINT);
    317 PHPBN2(MON_THOUSANDS_SEP);
    318 PHPBN2(MON_GROUPING);
    319 PHPBN2(POSITIVE_SIGN);
    320 PHPBN2(NEGATIVE_SIGN);
    321 PHPBN2(INT_FRAC_DIGITS);
    322 PHPBN2(FRAC_DIGITS);
    323 PHPBN2(P_CS_PRECEDES);
    324 PHPBN2(P_SEP_BY_SPACE);
    325 PHPBN2(N_CS_PRECEDES);
    326 PHPBN2(N_SEP_BY_SPACE);
    327 PHPBN2(P_SIGN_POSN);
    328 PHPBN2(N_SIGN_POSN);
    329 PHPBN2(DECIMAL_POINT);
    330 PHPBN2(RADIXCHAR);
    331 PHPBN2(THOUSANDS_SEP);
    332 PHPBN2(THOUSEP);
    333 PHPBN2(GROUPING);
    334 PHPBN2(YESEXPR);
    335 PHPBN2(NOEXPR);
    336 PHPBN2(YESSTR);
    337 PHPBN2(NOSTR);
    338 PHPBN2(CODESET);
    339 PHPBN2(LOG_EMERG);
    340 PHPBN2(LOG_ALERT);
    341 PHPBN2(LOG_CRIT);
    342 PHPBN2(LOG_ERR);
    343 PHPBN2(LOG_WARNING);
    344 PHPBN2(LOG_NOTICE);
    345 PHPBN2(LOG_INFO);
    346 PHPBN2(LOG_DEBUG);
    347 PHPBN2(LOG_KERN);
    348 PHPBN2(LOG_USER);
    349 PHPBN2(LOG_MAIL);
    350 PHPBN2(LOG_DAEMON);
    351 PHPBN2(LOG_AUTH);
    352 PHPBN2(LOG_SYSLOG);
    353 PHPBN2(LOG_LPR);
    354 PHPBN2(LOG_NEWS);
    355 PHPBN2(LOG_UUCP);
    356 PHPBN2(LOG_CRON);
    357 PHPBN2(LOG_AUTHPRIV);
    358 PHPBN2(LOG_LOCAL0);
    359 PHPBN2(LOG_LOCAL1);
    360 PHPBN2(LOG_LOCAL2);
    361 PHPBN2(LOG_LOCAL3);
    362 PHPBN2(LOG_LOCAL4);
    363 PHPBN2(LOG_LOCAL5);
    364 PHPBN2(LOG_LOCAL6);
    365 PHPBN2(LOG_LOCAL7);
    366 PHPBN2(LOG_PID);
    367 PHPBN2(LOG_CONS);
    368 PHPBN2(LOG_ODELAY);
    369 PHPBN2(LOG_NDELAY);
    370 PHPBN2(LOG_NOWAIT);
    371 PHPBN2(LOG_PERROR);
    372 
    373 /* Added in PHP5 */
    374 PHPBN2(E_STRICT);
    375 PHPBN2(__COMPILER_HALT_OFFSET__);
    376 
    377 /* Added in PHP 5.2 */
    378 PHPBN2(PREG_BACKTRACK_LIMIT_ERROR);
    379 PHPBN2(PREG_BAD_UTF8_ERROR);
    380 PHPBN2(PREG_INTERNAL_ERROR);
    381 PHPBN2(PREG_NO_ERROR);
    382 PHPBN2(PREG_RECURSION_LIMIT_ERROR);
    383 PHPBN2(UPLOAD_ERR_EXTENSION);
    384 PHPBN2(STREAM_SHUT_RD);
    385 PHPBN2(STREAM_SHUT_WR);
    386 PHPBN2(STREAM_SHUT_RDWR);
    387 PHPBN2(CURLE_FILESIZE_EXCEEDED);
    388 PHPBN2(CURLE_FTP_SSL_FAILED);
    389 PHPBN2(CURLE_LDAP_INVALID_URL);
    390 PHPBN2(CURLFTPAUTH_DEFAULT);
    391 PHPBN2(CURLFTPAUTH_SSL);
    392 PHPBN2(CURLFTPAUTH_TLS);
    393 PHPBN2(CURLFTPSSL_ALL);
    394 PHPBN2(CURLFTPSSL_CONTROL);
    395 PHPBN2(CURLFTPSSL_NONE);
    396 PHPBN2(CURLFTPSSL_TRY);
    397 PHPBN2(CURLOPT_FTP_SSL);
    398 PHPBN2(CURLOPT_FTPSSLAUTH);
    399 PHPBN2(CURLOPT_TCP_NODELAY); // Added in PHP 5.2.1
    400 PHPBN2(CURLOPT_TIMEOUT_MS); // Added in PHP 5.2.3
    401 PHPBN2(CURLOPT_CONNECTTIMEOUT_MS); // Added in PHP 5.2.3
    402 PHPBN2(GMP_VERSION); // Added in PHP 5.2.2
    403 PHPBN2(SWFTEXTFIELD_USEFONT);
    404 PHPBN2(SWFTEXTFIELD_AUTOSIZE);
    405 PHPBN2(SWF_SOUND_NOT_COMPRESSED);
    406 PHPBN2(SWF_SOUND_ADPCM_COMPRESSED);
    407 PHPBN2(SWF_SOUND_MP3_COMPRESSED);
    408 PHPBN2(SWF_SOUND_NOT_COMPRESSED_LE);
    409 PHPBN2(SWF_SOUND_NELLY_COMPRESSED);
    410 PHPBN2(SWF_SOUND_5KHZ);
    411 PHPBN2(SWF_SOUND_11KHZ);
    412 PHPBN2(SWF_SOUND_22KHZ);
    413 PHPBN2(SWF_SOUND_44KHZ);
    414 PHPBN2(SWF_SOUND_8BITS);
    415 PHPBN2(SWF_SOUND_16BITS);
    416 PHPBN2(SWF_SOUND_MONO);
    417 PHPBN2(SWF_SOUND_STEREO);
    418 PHPBN2(OPENSSL_VERSION_NUMBER);
    419 PHPBN2(SNMP_OID_OUTPUT_FULL);
    420 PHPBN2(SNMP_OID_OUTPUT_NUMERIC);
    421 PHPBN2(MSG_EAGAIN);
    422 PHPBN2(MSG_ENOMSG);
    423 
    424 /* Added in PHP 5.3 */
    425 PHPBN2(CURLOPT_PROGRESSFUNCTION);
    426 PHPBN2(IMG_FILTER_PIXELATE);
    427 PHPBN2(JSON_ERROR_CTRL_CHAR);
    428 PHPBN2(JSON_ERROR_DEPTH);
    429 PHPBN2(JSON_ERROR_NONE);
    430 PHPBN2(JSON_ERROR_STATE_MISMATCH);
    431 PHPBN2(JSON_ERROR_SYNTAX);
    432 PHPBN2(JSON_FORCE_OBJECT);
    433 PHPBN2(JSON_HEX_TAG);
    434 PHPBN2(JSON_HEX_AMP);
    435 PHPBN2(JSON_HEX_APOS);
    436 PHPBN2(JSON_HEX_QUOT);
    437 PHPBN2(LDAP_OPT_NETWORK_TIMEOUT);
    438 PHPBN2(LIBXML_LOADED_VERSION);
    439 PHPBN2(PREG_BAD_UTF8_OFFSET_ERROR);
    440 PHPBN2(BUS_ADRALN);
    441 PHPBN2(BUS_ADRERR);
    442 PHPBN2(BUS_OBJERR);
    443 PHPBN2(CLD_CONTIUNED);
    444 PHPBN2(CLD_DUMPED);
    445 PHPBN2(CLD_EXITED);
    446 PHPBN2(CLD_KILLED);
    447 PHPBN2(CLD_STOPPED);
    448 PHPBN2(CLD_TRAPPED);
    449 PHPBN2(FPE_FLTDIV);
    450 PHPBN2(FPE_FLTINV);
    451 PHPBN2(FPE_FLTOVF);
    452 PHPBN2(FPE_FLTRES);
    453 PHPBN2(FPE_FLTSUB);
    454 PHPBN2(FPE_FLTUND);
    455 PHPBN2(FPE_INTDIV);
    456 PHPBN2(FPE_INTOVF);
    457 PHPBN2(ILL_BADSTK);
    458 PHPBN2(ILL_COPROC);
    459 PHPBN2(ILL_ILLADR);
    460 PHPBN2(ILL_ILLOPC);
    461 PHPBN2(ILL_ILLOPN);
    462 PHPBN2(ILL_ILLTRP);
    463 PHPBN2(ILL_PRVOPC);
    464 PHPBN2(ILL_PRVREG);
    465 PHPBN2(POLL_ERR);
    466 PHPBN2(POLL_HUP);
    467 PHPBN2(POLL_IN);
    468 PHPBN2(POLL_MSG);
    469 PHPBN2(POLL_OUT);
    470 PHPBN2(POLL_PRI);
    471 PHPBN2(SEGV_ACCERR);
    472 PHPBN2(SEGV_MAPERR);
    473 PHPBN2(SI_ASYNCIO);
    474 PHPBN2(SI_KERNEL);
    475 PHPBN2(SI_MESGQ);
    476 PHPBN2(SI_NOINFO);
    477 PHPBN2(SI_QUEUE);
    478 PHPBN2(SI_SIGIO);
    479 PHPBN2(SI_TIMER);
    480 PHPBN2(SI_TKILL);
    481 PHPBN2(SI_USER);
    482 PHPBN2(SIG_BLOCK);
    483 PHPBN2(SIG_SETMASK);
    484 PHPBN2(SIG_UNBLOCK);
    485 PHPBN2(TRAP_BRKPT);
    486 PHPBN2(TRAP_TRACE);
    487 
    488 /* Class names reserved by PHP */
    489 /* case insensitive */
    490 PHPCN(stdclass);
    491 PHPCN(__php_incomplete_class);
    492 PHPCN(directory);
    493 /* Added in PHP5 (this list apparently depends which extensions you load by default). */
    494 PHPCN(parent);
    495 PHPCN(self);
    496 PHPCN(exception);
    497 PHPCN(php_user_filter);
    498 PHPCN(errorexception);
    499 PHPCN(xmlwriter);
    500 PHPCN(libxmlerror);
    501 PHPCN(simplexmlelement);
    502 PHPCN(soapclient);
    503 PHPCN(soapvar);
    504 PHPCN(soapserver);
    505 PHPCN(soapfault);
    506 PHPCN(soapparam);
    507 PHPCN(soapheader);
    508 PHPCN(recursiveiteratoriterator);
    509 PHPCN(filteriterator);
    510 PHPCN(recursivefilteriterator);
    511 PHPCN(parentiterator);
    512 PHPCN(limititerator);
    513 PHPCN(cachingiterator);
    514 PHPCN(recursivecachingiterator);
    515 PHPCN(iteratoriterator);
    516 PHPCN(norewinditerator);
    517 PHPCN(appenditerator);
    518 PHPCN(infiniteiterator);
    519 PHPCN(emptyiterator);
    520 PHPCN(arrayobject);
    521 PHPCN(arrayiterator);
    522 PHPCN(recursivearrayiterator);
    523 PHPCN(splfileinfo);
    524 PHPCN(directoryiterator);
    525 PHPCN(recursivedirectoryiterator);
    526 PHPCN(splfileobject);
    527 PHPCN(spltempfileobject);
    528 PHPCN(simplexmliterator);
    529 PHPCN(logicexception);
    530 PHPCN(badfunctioncallexception);
    531 PHPCN(badmethodcallexception);
    532 PHPCN(domainexception);
    533 PHPCN(invalidargumentexception);
    534 PHPCN(lengthexception);
    535 PHPCN(outofrangeexception);
    536 PHPCN(runtimeexception);
    537 PHPCN(outofboundsexception);
    538 PHPCN(overflowexception);
    539 PHPCN(rangeexception);
    540 PHPCN(underflowexception);
    541 PHPCN(unexpectedvalueexception);
    542 PHPCN(splobjectstorage);
    543 PHPCN(reflectionexception);
    544 PHPCN(reflection);
    545 PHPCN(reflectionfunction);
    546 PHPCN(reflectionparameter);
    547 PHPCN(reflectionmethod);
    548 PHPCN(reflectionclass);
    549 PHPCN(reflectionobject);
    550 PHPCN(reflectionproperty);
    551 PHPCN(reflectionextension);
    552 PHPCN(domexception);
    553 PHPCN(domstringlist);
    554 PHPCN(domnamelist);
    555 PHPCN(domimplementationlist);
    556 PHPCN(domimplementationsource);
    557 PHPCN(domimplementation);
    558 PHPCN(domnode);
    559 PHPCN(domnamespacenode);
    560 PHPCN(domdocumentfragment);
    561 PHPCN(domdocument);
    562 PHPCN(domnodelist);
    563 PHPCN(domnamednodemap);
    564 PHPCN(domcharacterdata);
    565 PHPCN(domattr);
    566 PHPCN(domelement);
    567 PHPCN(domtext);
    568 PHPCN(domcomment);
    569 PHPCN(domtypeinfo);
    570 PHPCN(domuserdatahandler);
    571 PHPCN(domdomerror);
    572 PHPCN(domerrorhandler);
    573 PHPCN(domlocator);
    574 PHPCN(domconfiguration);
    575 PHPCN(domcdatasection);
    576 PHPCN(domdocumenttype);
    577 PHPCN(domnotation);
    578 PHPCN(domentity);
    579 PHPCN(domentityreference);
    580 PHPCN(domprocessinginstruction);
    581 PHPCN(domstringextend);
    582 PHPCN(domxpath);
    583 PHPCN(xmlreader);
    584 PHPCN(sqlitedatabase);
    585 PHPCN(sqliteresult);
    586 PHPCN(sqliteunbuffered);
    587 PHPCN(sqliteexception);
    588 PHPCN(datetime);
    589 
    590 /* Built-in PHP functions (incomplete). */
    591 PHPFN(cos);
    592 PHPFN(sin);
    593 PHPFN(tan);
    594 PHPFN(acos);
    595 PHPFN(asin);
    596 PHPFN(atan);
    597 PHPFN(atan2);
    598 PHPFN(cosh);
    599 PHPFN(sinh);
    600 PHPFN(tanh);
    601 PHPFN(exp);
    602 PHPFN(log);
    603 PHPFN(log10);
    604 PHPFN(pow);
    605 PHPFN(sqrt);
    606 PHPFN(ceil);
    607 PHPFN(floor);
    608 PHPFN(fmod);
    609 PHPFN(min);
    610 PHPFN(max);
    611 
    612 #undef PHPKW
    613 #undef PHPBN1
    614 #undef PHPBN2
    615 #undef PHPCN
    616 #undef PHPFN
    617