function __construct(parent $parent, $exception_callback)
 {
     parent::__construct($parent);
     $this->exceptionCallback .= ltrim($exception_callback, '\\');
     if ($this->targetPhpVersionId < 50300) {
         $this->exceptionCallback = substr($this->exceptionCallback, 1);
     }
 }
Example #2
0
 function __construct(parent $parent, &$openToken, $curly, $open, $close)
 {
     $this->openToken =& $openToken;
     $this->curly = $curly;
     $this->open = $open;
     $this->close = $close;
     parent::__construct($parent);
 }
 function __construct(parent $parent, $error_handler)
 {
     parent::__construct($parent);
     if ($error_handler) {
         if (is_array($error_handler)) {
             $error_handler = implode('::', $error_handler);
         }
         $this->errorHandler = self::export($error_handler);
     }
 }
 function __construct(parent $parent)
 {
     $b = $this->backports;
     foreach ($b as $k => $i) {
         if (self::T_OFFSET >= $i) {
             unset($b[$k]);
         }
     }
     parent::__construct($parent);
     $this->backports += $b;
 }
 function __construct(parent $parent = null, $prepended_code)
 {
     if ($prepended_code) {
         $this->prependedCode = $prepended_code;
     }
     if ($this->prependedCode) {
         $this->prependedCode .= '(';
     } else {
         unset($this->callbacks['~tagRequire']);
     }
     parent::__construct($parent);
 }
Example #6
0
 function __construct(Parser $parent, $inlineClass, $mark_require, $file)
 {
     foreach ($inlineClass as $inlineClass) {
         $this->inlineClass[strtolower(strtr($inlineClass, '\\', '_'))] = 1;
     }
     Parser::__construct($parent);
     $mark_require or $this->unregister(array('tagAutoloader' => array(T_REQUIRE_ONCE, T_INCLUDE_ONCE, T_REQUIRE, T_INCLUDE)));
     $s = stat($file);
     $s = array($file, $s['dev'], $s['ino'], $s['size'], $s['mtime'], $s['ctime']);
     $s = base64_encode(md5(implode('-', $s), true));
     $this->seed = substr($s, 0, 8);
 }
 function __construct(parent $parent, $file, &$new_consts = array(), $compiler_halt_offset = 0)
 {
     if ($file) {
         $this->file = $file;
     } else {
         unset($this->callbacks['tagFileC'], $this->callbacks['tagLineC']);
     }
     $file = self::$staticConsts;
     self::loadConsts($new_consts);
     $this->constants = self::$staticConsts;
     self::$staticConsts = $file;
     $this->newConsts =& $new_consts;
     if (0 < $compiler_halt_offset) {
         $this->constants['__COMPILER_HALT_OFFSET__'] = (int) $compiler_halt_offset;
     }
     parent::__construct($parent);
 }
Example #8
0
 function __construct(parent $parent, $autoglobals)
 {
     foreach ((array) $autoglobals as $autoglobals) {
         switch ($autoglobals) {
             case '$_GET':
             case '$_ENV':
             case '$_POST':
             case '$_COOKIE':
             case '$_SERVER':
             case '$_REQUEST':
             case '$GLOBALS':
                 continue 2;
         }
         $this->autoglobals[$autoglobals] = 1;
     }
     parent::__construct($parent);
 }
 function __construct(parent $parent, $ns_code_loader = null)
 {
     $this->nsCodeLoader = $ns_code_loader ? $ns_code_loader : array($this, 'nsCodeLoader');
     parent::__construct($parent);
 }
Example #10
0
 function __construct(parent $parent, &$new_shims = array())
 {
     parent::__construct($parent);
     $this->shims = self::$staticShims;
     $this->newShims =& $new_shims;
 }
Example #11
0
 function __construct(parent $parent)
 {
     $this->callbacks = $parent->targetPhpVersionId < 50400 ? $this->backwardCallbacks : $this->forwardCallbacks;
     parent::__construct($parent);
 }
Example #12
0
 function __construct(parent $parent = null)
 {
     parent::__construct($parent);
     $this->register($this->stateCallbacks[2]);
     $this->runtimeKey = mt_rand(1, mt_getrandmax());
 }
 function __construct(parent $parent, $alias_add = false)
 {
     $this->aliasAdd = $alias_add;
     parent::__construct($parent);
 }