phpkw.swg 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. /* -----------------------------------------------------------------------------
  2. * phpkw.swg
  3. * ----------------------------------------------------------------------------- */
  4. /* Keyword (case insensitive) */
  5. #define PHPKW(x) %keywordwarn("'" `x` "' is a PHP keyword, renaming to 'c_" `x` "'",sourcefmt="%(lower)s",rename="c_%s") `x`
  6. /* Class (case insensitive) */
  7. #define PHPCN(x) %keywordwarn("'" `x` "' is a PHP reserved class name, renaming to 'c_" `x` "'",%$isclass,sourcefmt="%(lower)s",rename="c_%s") `x`
  8. /* Constant (case insensitive) */
  9. #define PHPBN1a(x) %namewarn(%warningmsg(SWIGWARN_PARSE_BUILTIN_NAME, "enum conflicts with a built-in constant '"`x`"' in PHP"),%$isenumitem,sourcefmt="%(lower)s") `x`
  10. #define PHPBN1b(x) %namewarn(%warningmsg(SWIGWARN_PARSE_BUILTIN_NAME, "constant conflicts with a built-in constant '"`x`"' in PHP"),%$isconstant,sourcefmt="%(lower)s") `x`
  11. %define PHPBN1(X)
  12. PHPBN1a(X); PHPBN1b(X)
  13. %enddef
  14. /* Constant (case sensitive) */
  15. #define PHPBN2a(x) %namewarn(%warningmsg(SWIGWARN_PARSE_BUILTIN_NAME, "enum conflicts with a built-in constant '"`x`"' in PHP"),%$isenumitem) `x`
  16. #define PHPBN2b(x) %namewarn(%warningmsg(SWIGWARN_PARSE_BUILTIN_NAME, "constant conflicts with a built-in constant '"`x`"' in PHP"),%$isconstant) `x`
  17. %define PHPBN2(X)
  18. PHPBN2a(X); PHPBN2b(X)
  19. %enddef
  20. #define PHPFN(x) %keywordwarn("'" `x` "' is a PHP built-in function, renaming to 'c_" `x` "'",sourcefmt="%(lower)s",%$isfunction,%$not %$ismember,rename="c_%s") `x`
  21. /* From: http://php.net/manual/en/reserved.keywords.php
  22. * "You cannot use any of the following words as constants, class names,
  23. * function or method names. Using them as variable names is generally OK, but
  24. * could lead to confusion."
  25. */
  26. /* Check is case insensitive - these *MUST* be listed in lower case here */
  27. PHPKW(__halt_compiler);
  28. PHPKW(abstract);
  29. PHPKW(and);
  30. PHPKW(array);
  31. PHPKW(as);
  32. PHPKW(break);
  33. PHPKW(callable); // As of PHP 5.4
  34. PHPKW(case);
  35. PHPKW(catch);
  36. PHPKW(class);
  37. PHPKW(clone);
  38. PHPKW(const);
  39. PHPKW(continue);
  40. PHPKW(declare);
  41. PHPKW(default);
  42. PHPKW(die); // "Language construct"
  43. PHPKW(do);
  44. PHPKW(echo); // "Language construct"
  45. PHPKW(else);
  46. PHPKW(elseif);
  47. PHPKW(empty); // "Language construct"
  48. PHPKW(enddeclare);
  49. PHPKW(endfor);
  50. PHPKW(endforeach);
  51. PHPKW(endif);
  52. PHPKW(endswitch);
  53. PHPKW(endwhile);
  54. PHPKW(eval); // "Language construct"
  55. PHPKW(exit); // "Language construct"
  56. PHPKW(extends);
  57. PHPKW(final);
  58. PHPKW(finally); // As of PHP 5.5
  59. PHPKW(for);
  60. PHPKW(foreach);
  61. PHPKW(function);
  62. PHPKW(global);
  63. PHPKW(goto); // As of PHP 5.3
  64. PHPKW(if);
  65. PHPKW(implements);
  66. PHPKW(include); // "Language construct"
  67. PHPKW(include_once); // "Language construct"
  68. PHPKW(instanceof);
  69. PHPKW(insteadof); // As of PHP 5.4
  70. PHPKW(interface);
  71. PHPKW(isset); // "Language construct"
  72. PHPKW(list); // "Language construct"
  73. PHPKW(namespace); // As of PHP 5.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(trait); // As of PHP 5.4
  87. PHPKW(try);
  88. PHPKW(unset); // "Language construct"
  89. PHPKW(use);
  90. PHPKW(var);
  91. PHPKW(while);
  92. PHPKW(xor);
  93. PHPKW(yield); // As of PHP 5.5
  94. // Compile-time "magic" constants
  95. // From: http://php.net/manual/en/reserved.keywords.php
  96. // also at: http://php.net/manual/en/language.constants.predefined.php
  97. /* These *MUST* be listed in lower case here */
  98. PHPKW(__class__);
  99. PHPKW(__dir__); // As of PHP 5.3
  100. PHPKW(__file__);
  101. PHPKW(__function__);
  102. PHPKW(__line__);
  103. PHPKW(__method__);
  104. PHPKW(__namespace__); // As of PHP 5.3
  105. PHPKW(__trait__); // As of PHP 5.4
  106. /* We classify these as built-in names since they conflict, but PHP still runs */
  107. /* Predefined case-insensitive constants */
  108. /* These *MUST* be listed in lower case here */
  109. PHPBN1(null);
  110. PHPBN1(true);
  111. PHPBN1(false);
  112. /* "Core Predefined Constants" from http://php.net/manual/en/reserved.constants.php */
  113. /* These are case sensitive */
  114. PHPBN2(PHP_VERSION);
  115. PHPBN2(PHP_MAJOR_VERSION); // As of PHP 5.2.7
  116. PHPBN2(PHP_MINOR_VERSION); // As of PHP 5.2.7
  117. PHPBN2(PHP_RELEASE_VERSION); // As of PHP 5.2.7
  118. PHPBN2(PHP_VERSION_ID); // As of PHP 5.2.7
  119. PHPBN2(PHP_EXTRA_VERSION); // As of PHP 5.2.7
  120. PHPBN2(PHP_ZTS); // As of PHP 5.2.7
  121. PHPBN2(PHP_DEBUG); // As of PHP 5.2.7
  122. PHPBN2(PHP_MAXPATHLEN); // As of PHP 5.3.0
  123. PHPBN2(PHP_OS);
  124. PHPBN2(PHP_SAPI);
  125. PHPBN2(PHP_EOL); // As of PHP 5.0.2
  126. PHPBN2(PHP_INT_MAX); // As of PHP 5.0.5
  127. PHPBN2(PHP_INT_SIZE); // As of PHP 5.0.5
  128. PHPBN2(DEFAULT_INCLUDE_PATH);
  129. PHPBN2(PEAR_INSTALL_DIR);
  130. PHPBN2(PEAR_EXTENSION_DIR);
  131. PHPBN2(PHP_EXTENSION_DIR);
  132. PHPBN2(PHP_PREFIX);
  133. PHPBN2(PHP_BINDIR);
  134. PHPBN2(PHP_BINARY); // As of PHP 5.4
  135. PHPBN2(PHP_MANDIR); // As of PHP 5.3.7
  136. PHPBN2(PHP_LIBDIR);
  137. PHPBN2(PHP_DATADIR);
  138. PHPBN2(PHP_SYSCONFDIR);
  139. PHPBN2(PHP_LOCALSTATEDIR);
  140. PHPBN2(PHP_CONFIG_FILE_PATH);
  141. PHPBN2(PHP_CONFIG_FILE_SCAN_DIR);
  142. PHPBN2(PHP_SHLIB_SUFFIX);
  143. PHPBN2(E_ERROR);
  144. PHPBN2(E_WARNING);
  145. PHPBN2(E_PARSE);
  146. PHPBN2(E_NOTICE);
  147. PHPBN2(E_CORE_ERROR);
  148. PHPBN2(E_CORE_WARNING);
  149. PHPBN2(E_COMPILE_ERROR);
  150. PHPBN2(E_COMPILE_WARNING);
  151. PHPBN2(E_USER_ERROR);
  152. PHPBN2(E_USER_WARNING);
  153. PHPBN2(E_USER_NOTICE);
  154. PHPBN2(E_DEPRECATED); // As of PHP 5.3.0
  155. PHPBN2(E_USER_DEPRECATED); // As of PHP 5.3.0
  156. PHPBN2(E_ALL);
  157. PHPBN2(E_STRICT);
  158. PHPBN2(__COMPILER_HALT_OFFSET__); // As of PHP 5.1.0
  159. // TRUE, FALSE, NULL are listed on the same page, but are actually
  160. // case-insensitive, whereas all the other constants listed there seem to be
  161. // case-sensitive, so we handle TRUE, FALSE, NULL in PHPBN1.
  162. PHPBN2(PHP_OUTPUT_HANDLER_START);
  163. PHPBN2(PHP_OUTPUT_HANDLER_CONT);
  164. PHPBN2(PHP_OUTPUT_HANDLER_END);
  165. /* These don't actually seem to be set (tested on Linux, I guess they're
  166. * Windows only?) */
  167. PHPBN2(PHP_WINDOWS_NT_DOMAIN_CONTROLLER); // As of PHP 5.3
  168. PHPBN2(PHP_WINDOWS_NT_SERVER); // As of PHP 5.3
  169. PHPBN2(PHP_WINDOWS_NT_WORKSTATION); // As of PHP 5.3
  170. PHPBN2(PHP_WINDOWS_VERSION_BUILD); // As of PHP 5.3
  171. PHPBN2(PHP_WINDOWS_VERSION_MAJOR); // As of PHP 5.3
  172. PHPBN2(PHP_WINDOWS_VERSION_MINOR); // As of PHP 5.3
  173. PHPBN2(PHP_WINDOWS_VERSION_PLATFORM); // As of PHP 5.3
  174. PHPBN2(PHP_WINDOWS_VERSION_PRODUCTTYPE); // As of PHP 5.3
  175. PHPBN2(PHP_WINDOWS_VERSION_SP_MAJOR); // As of PHP 5.3
  176. PHPBN2(PHP_WINDOWS_VERSION_SP_MINOR); // As of PHP 5.3
  177. PHPBN2(PHP_WINDOWS_VERSION_SUITEMASK); // As of PHP 5.3
  178. /* "Standard Predefined Constants" from http://php.net/manual/en/reserved.constants.php */
  179. PHPBN2(EXTR_OVERWRITE);
  180. PHPBN2(EXTR_SKIP);
  181. PHPBN2(EXTR_PREFIX_SAME);
  182. PHPBN2(EXTR_PREFIX_ALL);
  183. PHPBN2(EXTR_PREFIX_INVALID);
  184. PHPBN2(EXTR_PREFIX_IF_EXISTS);
  185. PHPBN2(EXTR_IF_EXISTS);
  186. PHPBN2(SORT_ASC);
  187. PHPBN2(SORT_DESC);
  188. PHPBN2(SORT_REGULAR);
  189. PHPBN2(SORT_NUMERIC);
  190. PHPBN2(SORT_STRING);
  191. PHPBN2(CASE_LOWER);
  192. PHPBN2(CASE_UPPER);
  193. PHPBN2(COUNT_NORMAL);
  194. PHPBN2(COUNT_RECURSIVE);
  195. PHPBN2(ASSERT_ACTIVE);
  196. PHPBN2(ASSERT_CALLBACK);
  197. PHPBN2(ASSERT_BAIL);
  198. PHPBN2(ASSERT_WARNING);
  199. PHPBN2(ASSERT_QUIET_EVAL);
  200. PHPBN2(CONNECTION_ABORTED);
  201. PHPBN2(CONNECTION_NORMAL);
  202. PHPBN2(CONNECTION_TIMEOUT);
  203. PHPBN2(INI_USER);
  204. PHPBN2(INI_PERDIR);
  205. PHPBN2(INI_SYSTEM);
  206. PHPBN2(INI_ALL);
  207. PHPBN2(INI_SCANNER_NORMAL); // As of PHP 5.3
  208. PHPBN2(INI_SCANNER_RAW); // As of PHP 5.3
  209. PHPBN2(M_E);
  210. PHPBN2(M_LOG2E);
  211. PHPBN2(M_LOG10E);
  212. PHPBN2(M_LN2);
  213. PHPBN2(M_LN10);
  214. PHPBN2(M_PI);
  215. PHPBN2(M_PI_2);
  216. PHPBN2(M_PI_4);
  217. PHPBN2(M_1_PI);
  218. PHPBN2(M_2_PI);
  219. PHPBN2(M_2_SQRTPI);
  220. PHPBN2(M_SQRT2);
  221. PHPBN2(M_SQRT1_2);
  222. PHPBN2(M_EULER); // As of PHP 5.2
  223. PHPBN2(M_LNPI); // As of PHP 5.2
  224. PHPBN2(M_SQRT3); // As of PHP 5.2
  225. PHPBN2(M_SQRTPI); // As of PHP 5.2
  226. PHPBN2(CRYPT_SALT_LENGTH);
  227. PHPBN2(CRYPT_STD_DES);
  228. PHPBN2(CRYPT_EXT_DES);
  229. PHPBN2(CRYPT_MD5);
  230. PHPBN2(CRYPT_BLOWFISH);
  231. PHPBN2(DIRECTORY_SEPARATOR);
  232. PHPBN2(SEEK_SET);
  233. PHPBN2(SEEK_CUR);
  234. PHPBN2(SEEK_END);
  235. PHPBN2(LOCK_SH);
  236. PHPBN2(LOCK_EX);
  237. PHPBN2(LOCK_UN);
  238. PHPBN2(LOCK_NB);
  239. PHPBN2(HTML_SPECIALCHARS);
  240. PHPBN2(HTML_ENTITIES);
  241. PHPBN2(ENT_COMPAT);
  242. PHPBN2(ENT_QUOTES);
  243. PHPBN2(ENT_NOQUOTES);
  244. PHPBN2(INFO_GENERAL);
  245. PHPBN2(INFO_CREDITS);
  246. PHPBN2(INFO_CONFIGURATION);
  247. PHPBN2(INFO_MODULES);
  248. PHPBN2(INFO_ENVIRONMENT);
  249. PHPBN2(INFO_VARIABLES);
  250. PHPBN2(INFO_LICENSE);
  251. PHPBN2(INFO_ALL);
  252. PHPBN2(CREDITS_GROUP);
  253. PHPBN2(CREDITS_GENERAL);
  254. PHPBN2(CREDITS_SAPI);
  255. PHPBN2(CREDITS_MODULES);
  256. PHPBN2(CREDITS_DOCS);
  257. PHPBN2(CREDITS_FULLPAGE);
  258. PHPBN2(CREDITS_QA);
  259. PHPBN2(CREDITS_ALL);
  260. PHPBN2(STR_PAD_LEFT);
  261. PHPBN2(STR_PAD_RIGHT);
  262. PHPBN2(STR_PAD_BOTH);
  263. PHPBN2(PATHINFO_DIRNAME);
  264. PHPBN2(PATHINFO_BASENAME);
  265. PHPBN2(PATHINFO_EXTENSION);
  266. PHPBN2(PATHINFO_FILENAME); // As of PHP 5.2
  267. PHPBN2(PATH_SEPARATOR);
  268. PHPBN2(CHAR_MAX);
  269. PHPBN2(LC_CTYPE);
  270. PHPBN2(LC_NUMERIC);
  271. PHPBN2(LC_TIME);
  272. PHPBN2(LC_COLLATE);
  273. PHPBN2(LC_MONETARY);
  274. PHPBN2(LC_ALL);
  275. PHPBN2(LC_MESSAGES);
  276. PHPBN2(ABDAY_1);
  277. PHPBN2(ABDAY_2);
  278. PHPBN2(ABDAY_3);
  279. PHPBN2(ABDAY_4);
  280. PHPBN2(ABDAY_5);
  281. PHPBN2(ABDAY_6);
  282. PHPBN2(ABDAY_7);
  283. PHPBN2(DAY_1);
  284. PHPBN2(DAY_2);
  285. PHPBN2(DAY_3);
  286. PHPBN2(DAY_4);
  287. PHPBN2(DAY_5);
  288. PHPBN2(DAY_6);
  289. PHPBN2(DAY_7);
  290. PHPBN2(ABMON_1);
  291. PHPBN2(ABMON_2);
  292. PHPBN2(ABMON_3);
  293. PHPBN2(ABMON_4);
  294. PHPBN2(ABMON_5);
  295. PHPBN2(ABMON_6);
  296. PHPBN2(ABMON_7);
  297. PHPBN2(ABMON_8);
  298. PHPBN2(ABMON_9);
  299. PHPBN2(ABMON_10);
  300. PHPBN2(ABMON_11);
  301. PHPBN2(ABMON_12);
  302. PHPBN2(MON_1);
  303. PHPBN2(MON_2);
  304. PHPBN2(MON_3);
  305. PHPBN2(MON_4);
  306. PHPBN2(MON_5);
  307. PHPBN2(MON_6);
  308. PHPBN2(MON_7);
  309. PHPBN2(MON_8);
  310. PHPBN2(MON_9);
  311. PHPBN2(MON_10);
  312. PHPBN2(MON_11);
  313. PHPBN2(MON_12);
  314. PHPBN2(AM_STR);
  315. PHPBN2(PM_STR);
  316. PHPBN2(D_T_FMT);
  317. PHPBN2(D_FMT);
  318. PHPBN2(T_FMT);
  319. PHPBN2(T_FMT_AMPM);
  320. PHPBN2(ERA);
  321. PHPBN2(ERA_YEAR);
  322. PHPBN2(ERA_D_T_FMT);
  323. PHPBN2(ERA_D_FMT);
  324. PHPBN2(ERA_T_FMT);
  325. PHPBN2(ALT_DIGITS);
  326. PHPBN2(INT_CURR_SYMBOL);
  327. PHPBN2(CURRENCY_SYMBOL);
  328. PHPBN2(CRNCYSTR);
  329. PHPBN2(MON_DECIMAL_POINT);
  330. PHPBN2(MON_THOUSANDS_SEP);
  331. PHPBN2(MON_GROUPING);
  332. PHPBN2(POSITIVE_SIGN);
  333. PHPBN2(NEGATIVE_SIGN);
  334. PHPBN2(INT_FRAC_DIGITS);
  335. PHPBN2(FRAC_DIGITS);
  336. PHPBN2(P_CS_PRECEDES);
  337. PHPBN2(P_SEP_BY_SPACE);
  338. PHPBN2(N_CS_PRECEDES);
  339. PHPBN2(N_SEP_BY_SPACE);
  340. PHPBN2(P_SIGN_POSN);
  341. PHPBN2(N_SIGN_POSN);
  342. PHPBN2(DECIMAL_POINT);
  343. PHPBN2(RADIXCHAR);
  344. PHPBN2(THOUSANDS_SEP);
  345. PHPBN2(THOUSEP);
  346. PHPBN2(GROUPING);
  347. PHPBN2(YESEXPR);
  348. PHPBN2(NOEXPR);
  349. PHPBN2(YESSTR);
  350. PHPBN2(NOSTR);
  351. PHPBN2(CODESET);
  352. PHPBN2(LOG_EMERG);
  353. PHPBN2(LOG_ALERT);
  354. PHPBN2(LOG_CRIT);
  355. PHPBN2(LOG_ERR);
  356. PHPBN2(LOG_WARNING);
  357. PHPBN2(LOG_NOTICE);
  358. PHPBN2(LOG_INFO);
  359. PHPBN2(LOG_DEBUG);
  360. PHPBN2(LOG_KERN);
  361. PHPBN2(LOG_USER);
  362. PHPBN2(LOG_MAIL);
  363. PHPBN2(LOG_DAEMON);
  364. PHPBN2(LOG_AUTH);
  365. PHPBN2(LOG_SYSLOG);
  366. PHPBN2(LOG_LPR);
  367. PHPBN2(LOG_NEWS);
  368. PHPBN2(LOG_UUCP);
  369. PHPBN2(LOG_CRON);
  370. PHPBN2(LOG_AUTHPRIV);
  371. PHPBN2(LOG_LOCAL0);
  372. PHPBN2(LOG_LOCAL1);
  373. PHPBN2(LOG_LOCAL2);
  374. PHPBN2(LOG_LOCAL3);
  375. PHPBN2(LOG_LOCAL4);
  376. PHPBN2(LOG_LOCAL5);
  377. PHPBN2(LOG_LOCAL6);
  378. PHPBN2(LOG_LOCAL7);
  379. PHPBN2(LOG_PID);
  380. PHPBN2(LOG_CONS);
  381. PHPBN2(LOG_ODELAY);
  382. PHPBN2(LOG_NDELAY);
  383. PHPBN2(LOG_NOWAIT);
  384. PHPBN2(LOG_PERROR);
  385. /* Added in PHP 5.2 */
  386. PHPBN2(PREG_BACKTRACK_LIMIT_ERROR);
  387. PHPBN2(PREG_BAD_UTF8_ERROR);
  388. PHPBN2(PREG_INTERNAL_ERROR);
  389. PHPBN2(PREG_NO_ERROR);
  390. PHPBN2(PREG_RECURSION_LIMIT_ERROR);
  391. PHPBN2(UPLOAD_ERR_EXTENSION);
  392. PHPBN2(STREAM_SHUT_RD);
  393. PHPBN2(STREAM_SHUT_WR);
  394. PHPBN2(STREAM_SHUT_RDWR);
  395. PHPBN2(CURLE_FILESIZE_EXCEEDED);
  396. PHPBN2(CURLE_FTP_SSL_FAILED);
  397. PHPBN2(CURLE_LDAP_INVALID_URL);
  398. PHPBN2(CURLFTPAUTH_DEFAULT);
  399. PHPBN2(CURLFTPAUTH_SSL);
  400. PHPBN2(CURLFTPAUTH_TLS);
  401. PHPBN2(CURLFTPSSL_ALL);
  402. PHPBN2(CURLFTPSSL_CONTROL);
  403. PHPBN2(CURLFTPSSL_NONE);
  404. PHPBN2(CURLFTPSSL_TRY);
  405. PHPBN2(CURLOPT_FTP_SSL);
  406. PHPBN2(CURLOPT_FTPSSLAUTH);
  407. PHPBN2(CURLOPT_TCP_NODELAY); // Added in PHP 5.2.1
  408. PHPBN2(CURLOPT_TIMEOUT_MS); // Added in PHP 5.2.3
  409. PHPBN2(CURLOPT_CONNECTTIMEOUT_MS); // Added in PHP 5.2.3
  410. PHPBN2(GMP_VERSION); // Added in PHP 5.2.2
  411. PHPBN2(SWFTEXTFIELD_USEFONT);
  412. PHPBN2(SWFTEXTFIELD_AUTOSIZE);
  413. PHPBN2(SWF_SOUND_NOT_COMPRESSED);
  414. PHPBN2(SWF_SOUND_ADPCM_COMPRESSED);
  415. PHPBN2(SWF_SOUND_MP3_COMPRESSED);
  416. PHPBN2(SWF_SOUND_NOT_COMPRESSED_LE);
  417. PHPBN2(SWF_SOUND_NELLY_COMPRESSED);
  418. PHPBN2(SWF_SOUND_5KHZ);
  419. PHPBN2(SWF_SOUND_11KHZ);
  420. PHPBN2(SWF_SOUND_22KHZ);
  421. PHPBN2(SWF_SOUND_44KHZ);
  422. PHPBN2(SWF_SOUND_8BITS);
  423. PHPBN2(SWF_SOUND_16BITS);
  424. PHPBN2(SWF_SOUND_MONO);
  425. PHPBN2(SWF_SOUND_STEREO);
  426. PHPBN2(OPENSSL_VERSION_NUMBER);
  427. PHPBN2(SNMP_OID_OUTPUT_FULL);
  428. PHPBN2(SNMP_OID_OUTPUT_NUMERIC);
  429. PHPBN2(MSG_EAGAIN);
  430. PHPBN2(MSG_ENOMSG);
  431. /* Added in PHP 5.3 */
  432. PHPBN2(CURLOPT_PROGRESSFUNCTION);
  433. PHPBN2(IMG_FILTER_PIXELATE);
  434. PHPBN2(JSON_ERROR_CTRL_CHAR);
  435. PHPBN2(JSON_ERROR_DEPTH);
  436. PHPBN2(JSON_ERROR_NONE);
  437. PHPBN2(JSON_ERROR_STATE_MISMATCH);
  438. PHPBN2(JSON_ERROR_SYNTAX);
  439. PHPBN2(JSON_FORCE_OBJECT);
  440. PHPBN2(JSON_HEX_TAG);
  441. PHPBN2(JSON_HEX_AMP);
  442. PHPBN2(JSON_HEX_APOS);
  443. PHPBN2(JSON_HEX_QUOT);
  444. PHPBN2(LDAP_OPT_NETWORK_TIMEOUT);
  445. PHPBN2(LIBXML_LOADED_VERSION);
  446. PHPBN2(PREG_BAD_UTF8_OFFSET_ERROR);
  447. PHPBN2(BUS_ADRALN);
  448. PHPBN2(BUS_ADRERR);
  449. PHPBN2(BUS_OBJERR);
  450. PHPBN2(CLD_CONTIUNED);
  451. PHPBN2(CLD_DUMPED);
  452. PHPBN2(CLD_EXITED);
  453. PHPBN2(CLD_KILLED);
  454. PHPBN2(CLD_STOPPED);
  455. PHPBN2(CLD_TRAPPED);
  456. PHPBN2(FPE_FLTDIV);
  457. PHPBN2(FPE_FLTINV);
  458. PHPBN2(FPE_FLTOVF);
  459. PHPBN2(FPE_FLTRES);
  460. PHPBN2(FPE_FLTSUB);
  461. PHPBN2(FPE_FLTUND);
  462. PHPBN2(FPE_INTDIV);
  463. PHPBN2(FPE_INTOVF);
  464. PHPBN2(ILL_BADSTK);
  465. PHPBN2(ILL_COPROC);
  466. PHPBN2(ILL_ILLADR);
  467. PHPBN2(ILL_ILLOPC);
  468. PHPBN2(ILL_ILLOPN);
  469. PHPBN2(ILL_ILLTRP);
  470. PHPBN2(ILL_PRVOPC);
  471. PHPBN2(ILL_PRVREG);
  472. PHPBN2(POLL_ERR);
  473. PHPBN2(POLL_HUP);
  474. PHPBN2(POLL_IN);
  475. PHPBN2(POLL_MSG);
  476. PHPBN2(POLL_OUT);
  477. PHPBN2(POLL_PRI);
  478. PHPBN2(SEGV_ACCERR);
  479. PHPBN2(SEGV_MAPERR);
  480. PHPBN2(SI_ASYNCIO);
  481. PHPBN2(SI_KERNEL);
  482. PHPBN2(SI_MESGQ);
  483. PHPBN2(SI_NOINFO);
  484. PHPBN2(SI_QUEUE);
  485. PHPBN2(SI_SIGIO);
  486. PHPBN2(SI_TIMER);
  487. PHPBN2(SI_TKILL);
  488. PHPBN2(SI_USER);
  489. PHPBN2(SIG_BLOCK);
  490. PHPBN2(SIG_SETMASK);
  491. PHPBN2(SIG_UNBLOCK);
  492. PHPBN2(TRAP_BRKPT);
  493. PHPBN2(TRAP_TRACE);
  494. /* Added in PHP 5.4 */
  495. PHPBN2(ENT_DISALLOWED);
  496. PHPBN2(ENT_HTML401);
  497. PHPBN2(ENT_HTML5);
  498. PHPBN2(ENT_SUBSTITUTE);
  499. PHPBN2(ENT_XML1);
  500. PHPBN2(ENT_XHTML);
  501. PHPBN2(IPPROTO_IP);
  502. PHPBN2(IPPROTO_IPV6);
  503. PHPBN2(IPV6_MULTICAST_HOPS);
  504. PHPBN2(IPV6_MULTICAST_IF);
  505. PHPBN2(IPV6_MULTICAST_LOOP);
  506. PHPBN2(IP_MULTICAST_IF);
  507. PHPBN2(IP_MULTICAST_LOOP);
  508. PHPBN2(IP_MULTICAST_TTL);
  509. PHPBN2(MCAST_JOIN_GROUP);
  510. PHPBN2(MCAST_LEAVE_GROUP);
  511. PHPBN2(MCAST_BLOCK_SOURCE);
  512. PHPBN2(MCAST_UNBLOCK_SOURCE);
  513. PHPBN2(MCAST_JOIN_SOURCE_GROUP);
  514. PHPBN2(MCAST_LEAVE_SOURCE_GROUP);
  515. PHPBN2(CURLOPT_MAX_RECV_SPEED_LARGE);
  516. PHPBN2(CURLOPT_MAX_SEND_SPEED_LARGE);
  517. PHPBN2(LIBXML_HTML_NODEFDTD);
  518. PHPBN2(LIBXML_HTML_NOIMPLIED);
  519. PHPBN2(LIBXML_PEDANTIC);
  520. PHPBN2(OPENSSL_CIPHER_AES_128_CBC);
  521. PHPBN2(OPENSSL_CIPHER_AES_192_CBC);
  522. PHPBN2(OPENSSL_CIPHER_AES_256_CBC);
  523. PHPBN2(OPENSSL_RAW_DATA);
  524. PHPBN2(OPENSSL_ZERO_PADDING);
  525. PHPBN2(PHP_OUTPUT_HANDLER_CLEAN);
  526. PHPBN2(PHP_OUTPUT_HANDLER_CLEANABLE);
  527. PHPBN2(PHP_OUTPUT_HANDLER_DISABLED);
  528. PHPBN2(PHP_OUTPUT_HANDLER_FINAL);
  529. PHPBN2(PHP_OUTPUT_HANDLER_FLUSH);
  530. PHPBN2(PHP_OUTPUT_HANDLER_FLUSHABLE);
  531. PHPBN2(PHP_OUTPUT_HANDLER_REMOVABLE);
  532. PHPBN2(PHP_OUTPUT_HANDLER_STARTED);
  533. PHPBN2(PHP_OUTPUT_HANDLER_STDFLAGS);
  534. PHPBN2(PHP_OUTPUT_HANDLER_WRITE);
  535. PHPBN2(PHP_SESSION_ACTIVE);
  536. PHPBN2(PHP_SESSION_DISABLED);
  537. PHPBN2(PHP_SESSION_NONE);
  538. PHPBN2(STREAM_META_ACCESS);
  539. PHPBN2(STREAM_META_GROUP);
  540. PHPBN2(STREAM_META_GROUP_NAME);
  541. PHPBN2(STREAM_META_OWNER);
  542. PHPBN2(STREAM_META_OWNER_NAME);
  543. PHPBN2(STREAM_META_TOUCH);
  544. PHPBN2(ZLIB_ENCODING_DEFLATE);
  545. PHPBN2(ZLIB_ENCODING_GZIP);
  546. PHPBN2(ZLIB_ENCODING_RAW);
  547. PHPBN2(U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR);
  548. PHPBN2(IDNA_CHECK_BIDI);
  549. PHPBN2(IDNA_CHECK_CONTEXTJ);
  550. PHPBN2(IDNA_NONTRANSITIONAL_TO_ASCII);
  551. PHPBN2(IDNA_NONTRANSITIONAL_TO_UNICODE);
  552. PHPBN2(INTL_IDNA_VARIANT_2003);
  553. PHPBN2(INTL_IDNA_VARIANT_UTS46);
  554. PHPBN2(IDNA_ERROR_EMPTY_LABEL);
  555. PHPBN2(IDNA_ERROR_LABEL_TOO_LONG);
  556. PHPBN2(IDNA_ERROR_DOMAIN_NAME_TOO_LONG);
  557. PHPBN2(IDNA_ERROR_LEADING_HYPHEN);
  558. PHPBN2(IDNA_ERROR_TRAILING_HYPHEN);
  559. PHPBN2(IDNA_ERROR_HYPHEN_3_4);
  560. PHPBN2(IDNA_ERROR_LEADING_COMBINING_MARK);
  561. PHPBN2(IDNA_ERROR_DISALLOWED);
  562. PHPBN2(IDNA_ERROR_PUNYCODE);
  563. PHPBN2(IDNA_ERROR_LABEL_HAS_DOT);
  564. PHPBN2(IDNA_ERROR_INVALID_ACE_LABEL);
  565. PHPBN2(IDNA_ERROR_BIDI);
  566. PHPBN2(IDNA_ERROR_CONTEXTJ);
  567. PHPBN2(JSON_PRETTY_PRINT);
  568. PHPBN2(JSON_UNESCAPED_SLASHES);
  569. PHPBN2(JSON_NUMERIC_CHECK);
  570. PHPBN2(JSON_UNESCAPED_UNICODE);
  571. PHPBN2(JSON_BIGINT_AS_STRING);
  572. /* Added in PHP 5.5 */
  573. PHPBN2(IMG_AFFINE_TRANSLATE);
  574. PHPBN2(IMG_AFFINE_SCALE);
  575. PHPBN2(IMG_AFFINE_ROTATE);
  576. PHPBN2(IMG_AFFINE_SHEAR_HORIZONTAL);
  577. PHPBN2(IMG_AFFINE_SHEAR_VERTICAL);
  578. PHPBN2(IMG_CROP_DEFAULT);
  579. PHPBN2(IMG_CROP_TRANSPARENT);
  580. PHPBN2(IMG_CROP_BLACK);
  581. PHPBN2(IMG_CROP_WHITE);
  582. PHPBN2(IMG_CROP_SIDES);
  583. PHPBN2(IMG_FLIP_BOTH);
  584. PHPBN2(IMG_FLIP_HORIZONTAL);
  585. PHPBN2(IMG_FLIP_VERTICAL);
  586. PHPBN2(IMG_BELL);
  587. PHPBN2(IMG_BESSEL);
  588. PHPBN2(IMG_BICUBIC);
  589. PHPBN2(IMG_BICUBIC_FIXED);
  590. PHPBN2(IMG_BLACKMAN);
  591. PHPBN2(IMG_BOX);
  592. PHPBN2(IMG_BSPLINE);
  593. PHPBN2(IMG_CATMULLROM);
  594. PHPBN2(IMG_GAUSSIAN);
  595. PHPBN2(IMG_GENERALIZED_CUBIC);
  596. PHPBN2(IMG_HERMITE);
  597. PHPBN2(IMG_HAMMING);
  598. PHPBN2(IMG_HANNING);
  599. PHPBN2(IMG_MITCHELL);
  600. PHPBN2(IMG_POWER);
  601. PHPBN2(IMG_QUADRATIC);
  602. PHPBN2(IMG_SINC);
  603. PHPBN2(IMG_NEAREST_NEIGHBOUR);
  604. PHPBN2(IMG_WEIGHTED4);
  605. PHPBN2(IMG_TRIANGLE);
  606. PHPBN2(JSON_ERROR_RECURSION);
  607. PHPBN2(JSON_ERROR_INF_OR_NAN);
  608. PHPBN2(JSON_ERROR_UNSUPPORTED_TYPE);
  609. PHPBN2(MYSQLI_SERVER_PUBLIC_KEY);
  610. /* Added in PHP 5.6 */
  611. PHPBN2(LDAP_ESCAPE_DN);
  612. PHPBN2(LDAP_ESCAPE_FILTER);
  613. PHPBN2(OPENSSL_DEFAULT_STREAM_CIPHERS);
  614. PHPBN2(STREAM_CRYPTO_METHOD_ANY_CLIENT);
  615. PHPBN2(STREAM_CRYPTO_METHOD_ANY_SERVER);
  616. PHPBN2(STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT);
  617. PHPBN2(STREAM_CRYPTO_METHOD_TLSv1_0_SERVER);
  618. PHPBN2(STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT);
  619. PHPBN2(STREAM_CRYPTO_METHOD_TLSv1_1_SERVER);
  620. PHPBN2(STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
  621. PHPBN2(STREAM_CRYPTO_METHOD_TLSv1_2_SERVER);
  622. PHPBN2(PGSQL_CONNECT_ASYNC);
  623. PHPBN2(PGSQL_CONNECTION_AUTH_OK);
  624. PHPBN2(PGSQL_CONNECTION_AWAITING_RESPONSE);
  625. PHPBN2(PGSQL_CONNECTION_MADE);
  626. PHPBN2(PGSQL_CONNECTION_SETENV);
  627. PHPBN2(PGSQL_CONNECTION_SSL_STARTUP);
  628. PHPBN2(PGSQL_CONNECTION_STARTED);
  629. PHPBN2(PGSQL_DML_ESCAPE);
  630. PHPBN2(PGSQL_POLLING_ACTIVE);
  631. PHPBN2(PGSQL_POLLING_FAILED);
  632. PHPBN2(PGSQL_POLLING_OK);
  633. PHPBN2(PGSQL_POLLING_READING);
  634. PHPBN2(PGSQL_POLLING_WRITING);
  635. /* Class names reserved by PHP (case insensitive) */
  636. PHPCN(directory);
  637. PHPCN(stdclass);
  638. PHPCN(__php_incomplete_class);
  639. /* Added in PHP5. */
  640. PHPCN(exception);
  641. PHPCN(errorexception); // As of PHP 5.1
  642. PHPCN(php_user_filter);
  643. PHPCN(closure); // As of PHP 5.3
  644. PHPCN(generator); // As of PHP 5.5
  645. PHPCN(self);
  646. PHPCN(static);
  647. PHPCN(parent);
  648. /* From extensions (which of these are actually predefined depends which
  649. * extensions are loaded by default). */
  650. PHPCN(xmlwriter);
  651. PHPCN(libxmlerror);
  652. PHPCN(simplexmlelement);
  653. PHPCN(soapclient);
  654. PHPCN(soapvar);
  655. PHPCN(soapserver);
  656. PHPCN(soapfault);
  657. PHPCN(soapparam);
  658. PHPCN(soapheader);
  659. PHPCN(recursiveiteratoriterator);
  660. PHPCN(filteriterator);
  661. PHPCN(recursivefilteriterator);
  662. PHPCN(parentiterator);
  663. PHPCN(limititerator);
  664. PHPCN(cachingiterator);
  665. PHPCN(recursivecachingiterator);
  666. PHPCN(iteratoriterator);
  667. PHPCN(norewinditerator);
  668. PHPCN(appenditerator);
  669. PHPCN(infiniteiterator);
  670. PHPCN(emptyiterator);
  671. PHPCN(arrayobject);
  672. PHPCN(arrayiterator);
  673. PHPCN(recursivearrayiterator);
  674. PHPCN(splfileinfo);
  675. PHPCN(directoryiterator);
  676. PHPCN(recursivedirectoryiterator);
  677. PHPCN(splfileobject);
  678. PHPCN(spltempfileobject);
  679. PHPCN(simplexmliterator);
  680. PHPCN(logicexception);
  681. PHPCN(badfunctioncallexception);
  682. PHPCN(badmethodcallexception);
  683. PHPCN(domainexception);
  684. PHPCN(invalidargumentexception);
  685. PHPCN(lengthexception);
  686. PHPCN(outofrangeexception);
  687. PHPCN(runtimeexception);
  688. PHPCN(outofboundsexception);
  689. PHPCN(overflowexception);
  690. PHPCN(rangeexception);
  691. PHPCN(underflowexception);
  692. PHPCN(unexpectedvalueexception);
  693. PHPCN(splobjectstorage);
  694. PHPCN(reflectionexception);
  695. PHPCN(reflection);
  696. PHPCN(reflectionfunction);
  697. PHPCN(reflectionparameter);
  698. PHPCN(reflectionmethod);
  699. PHPCN(reflectionclass);
  700. PHPCN(reflectionobject);
  701. PHPCN(reflectionproperty);
  702. PHPCN(reflectionextension);
  703. PHPCN(domexception);
  704. PHPCN(domstringlist);
  705. PHPCN(domnamelist);
  706. PHPCN(domimplementationlist);
  707. PHPCN(domimplementationsource);
  708. PHPCN(domimplementation);
  709. PHPCN(domnode);
  710. PHPCN(domnamespacenode);
  711. PHPCN(domdocumentfragment);
  712. PHPCN(domdocument);
  713. PHPCN(domnodelist);
  714. PHPCN(domnamednodemap);
  715. PHPCN(domcharacterdata);
  716. PHPCN(domattr);
  717. PHPCN(domelement);
  718. PHPCN(domtext);
  719. PHPCN(domcomment);
  720. PHPCN(domtypeinfo);
  721. PHPCN(domuserdatahandler);
  722. PHPCN(domdomerror);
  723. PHPCN(domerrorhandler);
  724. PHPCN(domlocator);
  725. PHPCN(domconfiguration);
  726. PHPCN(domcdatasection);
  727. PHPCN(domdocumenttype);
  728. PHPCN(domnotation);
  729. PHPCN(domentity);
  730. PHPCN(domentityreference);
  731. PHPCN(domprocessinginstruction);
  732. PHPCN(domstringextend);
  733. PHPCN(domxpath);
  734. PHPCN(xmlreader);
  735. PHPCN(sqlitedatabase);
  736. PHPCN(sqliteresult);
  737. PHPCN(sqliteunbuffered);
  738. PHPCN(sqliteexception);
  739. PHPCN(datetime);
  740. /* Built-in PHP functions (incomplete). */
  741. /* Includes Array Functions - http://php.net/manual/en/ref.array.php */
  742. /* Check is case insensitive - these *MUST* be listed in lower case here */
  743. PHPFN(acos);
  744. PHPFN(array_change_key_case);
  745. PHPFN(array_chunk);
  746. PHPFN(array_column);
  747. PHPFN(array_combine);
  748. PHPFN(array_count_values);
  749. PHPFN(array_diff);
  750. PHPFN(array_diff_assoc);
  751. PHPFN(array_diff_key);
  752. PHPFN(array_diff_uassoc);
  753. PHPFN(array_diff_ukey);
  754. PHPFN(array_fill);
  755. PHPFN(array_fill_keys);
  756. PHPFN(array_filter);
  757. PHPFN(array_flip);
  758. PHPFN(array_intersect);
  759. PHPFN(array_intersect_assoc);
  760. PHPFN(array_intersect_key);
  761. PHPFN(array_intersect_uassoc);
  762. PHPFN(array_intersect_ukey);
  763. PHPFN(array_key_exists);
  764. PHPFN(array_keys);
  765. PHPFN(array_map);
  766. PHPFN(array_merge);
  767. PHPFN(array_merge_recursive);
  768. PHPFN(array_multisort);
  769. PHPFN(array_pad);
  770. PHPFN(array_pop);
  771. PHPFN(array_product);
  772. PHPFN(array_push);
  773. PHPFN(array_rand);
  774. PHPFN(array_reduce);
  775. PHPFN(array_replace);
  776. PHPFN(array_replace_recursive);
  777. PHPFN(array_reverse);
  778. PHPFN(array_search);
  779. PHPFN(array_shift);
  780. PHPFN(array_slice);
  781. PHPFN(array_splice);
  782. PHPFN(array_sum);
  783. PHPFN(array_udiff);
  784. PHPFN(array_udiff_assoc);
  785. PHPFN(array_udiff_uassoc);
  786. PHPFN(array_uintersect);
  787. PHPFN(array_uintersect_assoc);
  788. PHPFN(array_uintersect_uassoc);
  789. PHPFN(array_unique);
  790. PHPFN(array_unshift);
  791. PHPFN(array_values);
  792. PHPFN(array_walk);
  793. PHPFN(array_walk_recursive);
  794. PHPFN(arsort);
  795. PHPFN(asin);
  796. PHPFN(asort);
  797. PHPFN(atan);
  798. PHPFN(atan2);
  799. PHPFN(ceil);
  800. PHPFN(compact);
  801. PHPFN(cos);
  802. PHPFN(cosh);
  803. PHPFN(count);
  804. PHPFN(current);
  805. PHPFN(each);
  806. PHPFN(end);
  807. PHPFN(exp);
  808. PHPFN(extract);
  809. PHPFN(floor);
  810. PHPFN(fmod);
  811. PHPFN(in_array);
  812. PHPFN(key);
  813. PHPFN(key_exists);
  814. PHPFN(krsort);
  815. PHPFN(ksort);
  816. PHPFN(log);
  817. PHPFN(log10);
  818. PHPFN(max);
  819. PHPFN(min);
  820. PHPFN(natcasesort);
  821. PHPFN(natsort);
  822. PHPFN(next);
  823. PHPFN(pos);
  824. PHPFN(pow);
  825. PHPFN(prev);
  826. PHPFN(range);
  827. PHPFN(reset);
  828. PHPFN(rsort);
  829. PHPFN(shuffle);
  830. PHPFN(sin);
  831. PHPFN(sinh);
  832. PHPFN(sizeof);
  833. PHPFN(sort);
  834. PHPFN(sqrt);
  835. PHPFN(tan);
  836. PHPFN(tanh);
  837. PHPFN(uasort);
  838. PHPFN(uksort);
  839. PHPFN(usort);
  840. #undef PHPKW
  841. #undef PHPBN1a
  842. #undef PHPBN1b
  843. #undef PHPBN1
  844. #undef PHPBN2a
  845. #undef PHPBN2b
  846. #undef PHPBN2
  847. #undef PHPCN
  848. #undef PHPFN