Пример #1
0
 function plato_require($file, $args = array(), $type = PLATO_TYPE_INTEGER, $debug = null)
 {
     $object = plato_include($file, $args, $type, $debug);
     /* exception */
     if ($object instanceof plato_exception) {
         if ((error_reporting() & E_WARNING) == E_WARNING) {
             $object->report();
         }
         /* error reporting disabled */
         exit;
     }
     return $object;
 }
 public function handle_plato_include()
 {
     $return = $this->pop_int();
     $file = $this->pop_string(0);
     $this->list_variable[0] = plato_include($file, $this->list_argument, $return);
     $this->ldr->recover();
 }