PHP_CompatInfo
[ class tree: PHP_CompatInfo ] [ index: PHP_CompatInfo ] [ all elements ]

Source for file const_array.php

Documentation is available at const_array.php

  1. <?php
  2. /**
  3.  * Constants
  4.  * @global array $GLOBALS['_PHP_COMPATINFO_CONST'] 
  5.  */
  6. $GLOBALS['_PHP_COMPATINFO_CONST'= array (
  7.   'tokens' =>
  8.     array (
  9.     0 => 363,
  10.     1 => 362,
  11.     2 => 361,
  12.     3 => 359,
  13.     4 => 360,
  14.     5 => 345,
  15.     6 => 337,
  16.     7 => 344,
  17.     8 => 288,
  18.     9 => 343,
  19.     10 => 342,
  20.     11 => 341,
  21.     12 => 338,
  22.     13 => 336,
  23.     14 => 298,
  24.     15 => 352,
  25.     16 => 354,
  26.   ),
  27.   '__FILE__' =>
  28.   array (
  29.     'init' => '4.0.0',
  30.     'name' => '__FILE__',
  31.   ),
  32.   '__LINE__' =>
  33.   array (
  34.     'init' => '4.0.0',
  35.     'name' => '__LINE__',
  36.   ),
  37.   '__FUNCTION__' =>
  38.   array (
  39.     'init' => '4.3.0',
  40.     'name' => '__FUNCTION__',
  41.   ),
  42.   '__CLASS__' =>
  43.   array (
  44.     'init' => '4.3.0',
  45.     'name' => '__CLASS__',
  46.   ),
  47.   '__METHOD__' =>
  48.   array (
  49.     'name' => '__METHOD__',
  50.     'init' => '5.0.0',
  51.   ),
  52.   'abstract' =>
  53.   array (
  54.     'init' => '5.0.0',
  55.     'name' => 'abstract',
  56.   ),
  57.   'catch' =>
  58.   array (
  59.     'init' => '5.0.0',
  60.     'name' => 'catch',
  61.   ),
  62.   'final' =>
  63.   array (
  64.     'init' => '5.0.0',
  65.     'name' => 'final',
  66.   ),
  67.   'instanceof' =>
  68.   array (
  69.     'init' => '5.0.0',
  70.     'name' => 'instanceof',
  71.   ),
  72.   'private' =>
  73.   array (
  74.     'init' => '5.0.0',
  75.     'name' => 'private',
  76.   ),
  77.   'protected' =>
  78.   array (
  79.     'init' => '5.0.0',
  80.     'name' => 'protected',
  81.   ),
  82.   'public' =>
  83.   array (
  84.     'init' => '5.0.0',
  85.     'name' => 'public',
  86.   ),
  87.   'throw' =>
  88.   array (
  89.     'init' => '5.0.0',
  90.     'name' => 'throw',
  91.   ),
  92.   'try' =>
  93.   array (
  94.     'init' => '5.0.0',
  95.     'name' => 'try',
  96.   ),
  97.   'clone' =>
  98.   array (
  99.     'init' => '5.0.0',
  100.     'name' => 'clone',
  101.   ),
  102.   'interface' =>
  103.   array (
  104.     'init' => '5.0.0',
  105.     'name' => 'interface',
  106.   ),
  107.   'implements' =>
  108.   array (
  109.     'init' => '5.0.0',
  110.     'name' => 'implements',
  111.   ),
  112. );
  113.  
  114. $php5_only = array(
  115.                 298 => 'T_CLONE',
  116.                 360 => '__METHOD__',
  117.                 343 => 'T_PRIVATE',
  118.                 342 => 'T_PUBLIC',
  119.                 341 => 'T_PROTECTED',
  120.                 338 => 'T_THROW',
  121.                 337 => 'T_CATCH',
  122.                 336 => 'T_TRY',
  123.                 352 => 'T_INTERFACE',
  124.                 345 => 'T_ABSTRACT',
  125.                 288 => 'T_INSTANCEOF',
  126.                 344 => 'T_FINAL',
  127.                  );
  128.  
  129.  
  130. if (!defined('T_CLONE')) {
  131.     foreach ($php5_only as $i => $token{
  132.         unset($GLOBALS['_PHP_COMPATINFO_CONST']['tokens'][$i]);
  133.     }
  134. }
  135. ?>

Documentation generated on Mon, 11 Mar 2019 14:41:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.