PageRenderTime 28ms CodeModel.GetById 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/php/phpkw.swg

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