Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.c..
Decoded Output download
<?php /**
* Whoops - php errors for cool kids
* @author Filipe Dobreira <http://github.com/filp>
*/ namespace Whoops;use InvalidArgumentException;use Throwable;use Whoops\Exception\ErrorException;use Whoops\Handler\CallbackHandler;use Whoops\Handler\Handler;use Whoops\Handler\HandlerInterface;use Whoops\Inspector\CallableInspectorFactory;use Whoops\Inspector\InspectorFactory;use Whoops\Inspector\InspectorFactoryInterface;use Whoops\Inspector\InspectorInterface;use Whoops\Util\Misc;use Whoops\Util\SystemFacade;final class poct1b implements wpoy1c{/**
* @var bool
*/ private $wigu1d;/**
* @var bool
*/ private $bvri1e=true;/**
* @var bool
*/ private $qgda1f=true;/**
* @var integer|false
*/ private $ovyn20=500;/**
* @var integer|false
*/ private $pgfr21=1;/**
* @var HandlerInterface[]
*/ private $lgfi22=[];/**
* @var array
* @psalm-var list<array{patterns: string, levels: int}>
*/ private $pawg23=[];/**
* @var SystemFacade
*/ private $odeg24;/**
* In certain scenarios, like in shutdown handler, we can not throw exceptions.
*
* @var bool
*/ private $vkxf25=true;/**
* The inspector factory to create inspectors.
*
* @var InspectorFactoryInterface
*/ private $pntb26;/**
* @var array<callable>
*/ private $uzhr27=[];public function nusw0(SystemFacade $odeg24=null){$this->$oacz28=$odeg24?:new hskx29;$this->$vgqj2a=new dgvs2b();}/**
* Explicitly request your handler runs as the last of all currently registered handlers.
*
* @param callable|HandlerInterface $handler
*
* @return Run
*/ public function kuvu1($ypkj2c){array_unshift($this->$jkei2d,$this->ilga19($ypkj2c));return $this;}/**
* Explicitly request your handler runs as the first of all currently registered handlers.
*
* @param callable|HandlerInterface $handler
*
* @return Run
*/ public function ltez2($ypkj2c){return $this->ukaa3($ypkj2c);}/**
* Register your handler as the last of all currently registered handlers (to be executed first).
* Prefer using appendHandler and prependHandler for clarity.
*
* @param callable|HandlerInterface $handler
*
* @return Run
*
* @throws InvalidArgumentException If argument is not callable or instance of HandlerInterface.
*/ public function ukaa3($ypkj2c){$this->$jkei2d[]=$this->ilga19($ypkj2c);return $this;}/**
* Removes and returns the last handler pushed to the handler stack.
*
* @see Run::removeFirstHandler(), Run::removeLastHandler()
*
* @return HandlerInterface|null
*/ public function jqbd4(){return array_pop($this->$jkei2d);}/**
* Removes the first handler.
*
* @return void
*/ public function fzll5(){array_pop($this->$jkei2d);}/**
* Removes the last handler.
*
* @return void
*/ public function qopa6(){array_shift($this->$jkei2d);}/**
* Returns an array with all handlers, in the order they were added to the stack.
*
* @return array
*/ public function cawy7(){return $this->$jkei2d;}/**
* Clears all handlers in the handlerStack, including the default PrettyPage handler.
*
* @return Run
*/ public function xvjl8(){$this->$jkei2d=[];return $this;}public function utxf9(){return $this->$npik2e;}public function olwma(){$this->$npik2e=[];return $this;}/**
* Registers this instance as an error handler.
*
* @return Run
*/ public function inyrb(){if(!$this->$lvqs2f){class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cRXJyb3JFeGNlcHRpb24='));class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cRnJhbWVDb2xsZWN0aW9u'));class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cRnJhbWU='));class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cSW5zcGVjdG9y'));class_exists(base64_decode('XFdob29wc1xJbnNwZWN0b3JcSW5zcGVjdG9yRmFjdG9yeQ=='));$this->$oacz28->ezgk30([$this,self::ERROR_HANDLER]);$this->$oacz28->xeqe31([$this,self::EXCEPTION_HANDLER]);$this->$oacz28->qkev32([$this,self::SHUTDOWN_HANDLER]);$this->$lvqs2f=true;}return $this;}/**
* Unregisters all handlers registered by this Whoops\Run instance.
*
* @return Run
*/ public function wmnoc(){if($this->$lvqs2f){$this->$oacz28->mxnm33();$this->$oacz28->mlpj34();$this->$lvqs2f=false;}return $this;}/**
* Should Whoops allow Handlers to force the script to quit?
*
* @param bool|int $exit
*
* @return bool
*/ public function tfdpd($fhtf35=null){if(func_num_args()==0){return $this->$afji36;}return $this->$afji36=(bool)$fhtf35;}/**
* Silence particular errors in particular files.
*
* @param array|string $patterns List or a single regex pattern to match.
* @param int $levels Defaults to E_STRICT | E_DEPRECATED.
*
* @return Run
*/ public function hrcwe($ycvk37,$klju38=10240){$this->$njry39=array_merge($this->$njry39,array_map(function($nbij3a)use($klju38){return[base64_decode('cGF0dGVybg==')=>$nbij3a,base64_decode('bGV2ZWxz')=>$klju38,];},(array)$ycvk37));return $this;}/**
* Returns an array with silent errors in path configuration.
*
* @return array
*/ public function tcurf(){return $this->$njry39;}/**
* Should Whoops send HTTP error code to the browser if possible?
* Whoops will by default send HTTP code 500, but you may wish to
* use 502, 503, or another 5xx family code.
*
* @param bool|int $code
*
* @return int|false
*
* @throws InvalidArgumentException
*/ public function ogve10($okbo3b=null){if(func_num_args()==0){return $this->$vvro3c;}if(!$okbo3b){return $this->$vvro3c=false;}if($okbo3b===true){$okbo3b=500;}if($okbo3b<400||600<=$okbo3b){throw new qawj3d("Invalid status code '$okbo3b', must be 4xx or 5xx");}return $this->$vvro3c=$okbo3b;}/**
* Should Whoops exit with a specific code on the CLI if possible?
* Whoops will exit with 1 by default, but you can specify something else.
*
* @param int $code
*
* @return int
*
* @throws InvalidArgumentException
*/ public function xqet11($okbo3b=null){if(func_num_args()==0){return $this->$abpn3e;}if($okbo3b<0||255<=$okbo3b){throw new qawj3d("Invalid status code '$okbo3b', must be between 0 and 254");}return $this->$abpn3e=(int)$okbo3b;}/**
* Should Whoops push output directly to the client?
* If this is false, output will be returned by handleException.
*
* @param bool|int $send
*
* @return bool
*/ public function ijvo12($jfaq3f=null){if(func_num_args()==0){return $this->$virm40;}return $this->$virm40=(bool)$jfaq3f;}/**
* Handles an exception, ultimately generating a Whoops error page.
*
* @param Throwable $exception
*
* @return string Output generated by handlers.
*/ public function sqgb13($uhhf41){$cusw42=$this->abbb18($uhhf41);$this->$oacz28->xfxq43();$ibck44=null;$qmjs45=null;try{foreach(array_reverse($this->$jkei2d)as $ypkj2c){$ypkj2c->pvxq46($this);$ypkj2c->usvq47($cusw42);$ypkj2c->fjhx48($uhhf41);$ibck44=$ypkj2c->ozup49($uhhf41);$qmjs45=method_exists($ypkj2c,base64_decode('Y29udGVudFR5cGU='))?$ypkj2c->afkk4a():null;if(in_array($ibck44,[Handler::LAST_HANDLER,Handler::QUIT])){break;}}$gajt4b=$ibck44==Handler::QUIT&&$this->tfdpd();}finally{$jxyo4c=$this->$oacz28->iovp4d();}if($this->ijvo12()){if($gajt4b){while($this->$oacz28->jfyj4e()>0){$this->$oacz28->qips4f();}if(Misc::xwrr50()&&$qmjs45){header("Content-Type: {$qmjs45}");}}$this->tpmr1a($jxyo4c);}if($gajt4b){$this->$oacz28->vwus51();$this->$oacz28->cuji52($this->xqet11());}return $jxyo4c;}/**
* Converts generic PHP errors to \ErrorException instances, before passing them off to be handled.
*
* This method MUST be compatible with set_error_handler.
*
* @param int $level
* @param string $message
* @param string|null $file
* @param int|null $line
*
* @return bool
*
* @throws ErrorException
*/ public function fays14($yfdp53,$ninr54,$nadk55=null,$vrpa56=null){if($yfdp53&$this->$oacz28->mlcq57()){foreach($this->$njry39 as $qazl58){$lnbx59=(bool)preg_match($qazl58[base64_decode('cGF0dGVybg==')],$nadk55);$pise5a=$yfdp53&$qazl58[base64_decode('bGV2ZWxz')];if($lnbx59&&$pise5a){return true;}}$uhhf41=new qhpt5b($ninr54,$yfdp53,$yfdp53,$nadk55,$vrpa56);if($this->$tjqe5c){throw $uhhf41;}else{$this->sqgb13($uhhf41);}return true;}return false;}/**
* Special case to deal with Fatal errors and the like.
*
* @return void
*/ public function xzev15(){$this->$tjqe5c=false;$wplc5d=$this->$oacz28->edwb5e();if($wplc5d&&Misc::zupo5f($wplc5d[base64_decode('dHlwZQ==')])){$this->$afji36=false;$this->fays14($wplc5d[base64_decode('dHlwZQ==')],$wplc5d[base64_decode('bWVzc2FnZQ==')],$wplc5d[base64_decode('ZmlsZQ==')],$wplc5d[base64_decode('bGluZQ==')]);}}/**
* @param InspectorFactoryInterface $factory
*
* @return void
*/ public function bkly16(InspectorFactoryInterface $svlg60){$this->$vgqj2a=$svlg60;}public function vxos17($xdon61){if(!is_callable($xdon61)){throw new \qawj3d(sprintf(base64_decode('QSBmcmFtZSBmaWx0ZXIgbXVzdCBiZSBvZiB0eXBlIGNhbGxhYmxlLCAlcyB0eXBlIGdpdmVuLg=='),gettype($xdon61)));}$this->$npik2e[]=$xdon61;return $this;}/**
* @param Throwable $exception
*
* @return InspectorInterface
*/ private function abbb18($uhhf41){return $this->$vgqj2a->nwme62($uhhf41);}/**
* Resolves the giving handler.
*
* @param callable|HandlerInterface $handler
*
* @return HandlerInterface
*
* @throws InvalidArgumentException
*/ private function ilga19($ypkj2c){if(is_callable($ypkj2c)){$ypkj2c=new xtkn63($ypkj2c);}if(!$ypkj2c instanceof HandlerInterface){throw new qawj3d(base64_decode('SGFuZGxlciBtdXN0IGJlIGEgY2FsbGFibGUsIG9yIGluc3RhbmNlIG9mIA==').base64_decode('V2hvb3BzXEhhbmRsZXJcSGFuZGxlckludGVyZmFjZQ=='));}return $ypkj2c;}/**
* Echo something to the browser.
*
* @param string $output
*
* @return Run
*/ private function tpmr1a($jxyo4c){if($this->ogve10()&&Misc::xwrr50()){$this->$oacz28->ridk64($this->ogve10());}echo $jxyo4c;return $this;}}?>
Did this file decode correctly?
Original Code
<?php /**
* Whoops - php errors for cool kids
* @author Filipe Dobreira <http://github.com/filp>
*/ namespace Whoops;use InvalidArgumentException;use Throwable;use Whoops\Exception\ErrorException;use Whoops\Handler\CallbackHandler;use Whoops\Handler\Handler;use Whoops\Handler\HandlerInterface;use Whoops\Inspector\CallableInspectorFactory;use Whoops\Inspector\InspectorFactory;use Whoops\Inspector\InspectorFactoryInterface;use Whoops\Inspector\InspectorInterface;use Whoops\Util\Misc;use Whoops\Util\SystemFacade;final class poct1b implements wpoy1c{/**
* @var bool
*/ private $wigu1d;/**
* @var bool
*/ private $bvri1e=true;/**
* @var bool
*/ private $qgda1f=true;/**
* @var integer|false
*/ private $ovyn20=500;/**
* @var integer|false
*/ private $pgfr21=1;/**
* @var HandlerInterface[]
*/ private $lgfi22=[];/**
* @var array
* @psalm-var list<array{patterns: string, levels: int}>
*/ private $pawg23=[];/**
* @var SystemFacade
*/ private $odeg24;/**
* In certain scenarios, like in shutdown handler, we can not throw exceptions.
*
* @var bool
*/ private $vkxf25=true;/**
* The inspector factory to create inspectors.
*
* @var InspectorFactoryInterface
*/ private $pntb26;/**
* @var array<callable>
*/ private $uzhr27=[];public function nusw0(SystemFacade $odeg24=null){$this->$oacz28=$odeg24?:new hskx29;$this->$vgqj2a=new dgvs2b();}/**
* Explicitly request your handler runs as the last of all currently registered handlers.
*
* @param callable|HandlerInterface $handler
*
* @return Run
*/ public function kuvu1($ypkj2c){array_unshift($this->$jkei2d,$this->ilga19($ypkj2c));return $this;}/**
* Explicitly request your handler runs as the first of all currently registered handlers.
*
* @param callable|HandlerInterface $handler
*
* @return Run
*/ public function ltez2($ypkj2c){return $this->ukaa3($ypkj2c);}/**
* Register your handler as the last of all currently registered handlers (to be executed first).
* Prefer using appendHandler and prependHandler for clarity.
*
* @param callable|HandlerInterface $handler
*
* @return Run
*
* @throws InvalidArgumentException If argument is not callable or instance of HandlerInterface.
*/ public function ukaa3($ypkj2c){$this->$jkei2d[]=$this->ilga19($ypkj2c);return $this;}/**
* Removes and returns the last handler pushed to the handler stack.
*
* @see Run::removeFirstHandler(), Run::removeLastHandler()
*
* @return HandlerInterface|null
*/ public function jqbd4(){return array_pop($this->$jkei2d);}/**
* Removes the first handler.
*
* @return void
*/ public function fzll5(){array_pop($this->$jkei2d);}/**
* Removes the last handler.
*
* @return void
*/ public function qopa6(){array_shift($this->$jkei2d);}/**
* Returns an array with all handlers, in the order they were added to the stack.
*
* @return array
*/ public function cawy7(){return $this->$jkei2d;}/**
* Clears all handlers in the handlerStack, including the default PrettyPage handler.
*
* @return Run
*/ public function xvjl8(){$this->$jkei2d=[];return $this;}public function utxf9(){return $this->$npik2e;}public function olwma(){$this->$npik2e=[];return $this;}/**
* Registers this instance as an error handler.
*
* @return Run
*/ public function inyrb(){if(!$this->$lvqs2f){class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cRXJyb3JFeGNlcHRpb24='));class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cRnJhbWVDb2xsZWN0aW9u'));class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cRnJhbWU='));class_exists(base64_decode('XFdob29wc1xFeGNlcHRpb25cSW5zcGVjdG9y'));class_exists(base64_decode('XFdob29wc1xJbnNwZWN0b3JcSW5zcGVjdG9yRmFjdG9yeQ=='));$this->$oacz28->ezgk30([$this,self::ERROR_HANDLER]);$this->$oacz28->xeqe31([$this,self::EXCEPTION_HANDLER]);$this->$oacz28->qkev32([$this,self::SHUTDOWN_HANDLER]);$this->$lvqs2f=true;}return $this;}/**
* Unregisters all handlers registered by this Whoops\Run instance.
*
* @return Run
*/ public function wmnoc(){if($this->$lvqs2f){$this->$oacz28->mxnm33();$this->$oacz28->mlpj34();$this->$lvqs2f=false;}return $this;}/**
* Should Whoops allow Handlers to force the script to quit?
*
* @param bool|int $exit
*
* @return bool
*/ public function tfdpd($fhtf35=null){if(func_num_args()==0){return $this->$afji36;}return $this->$afji36=(bool)$fhtf35;}/**
* Silence particular errors in particular files.
*
* @param array|string $patterns List or a single regex pattern to match.
* @param int $levels Defaults to E_STRICT | E_DEPRECATED.
*
* @return Run
*/ public function hrcwe($ycvk37,$klju38=10240){$this->$njry39=array_merge($this->$njry39,array_map(function($nbij3a)use($klju38){return[base64_decode('cGF0dGVybg==')=>$nbij3a,base64_decode('bGV2ZWxz')=>$klju38,];},(array)$ycvk37));return $this;}/**
* Returns an array with silent errors in path configuration.
*
* @return array
*/ public function tcurf(){return $this->$njry39;}/**
* Should Whoops send HTTP error code to the browser if possible?
* Whoops will by default send HTTP code 500, but you may wish to
* use 502, 503, or another 5xx family code.
*
* @param bool|int $code
*
* @return int|false
*
* @throws InvalidArgumentException
*/ public function ogve10($okbo3b=null){if(func_num_args()==0){return $this->$vvro3c;}if(!$okbo3b){return $this->$vvro3c=false;}if($okbo3b===true){$okbo3b=500;}if($okbo3b<400||600<=$okbo3b){throw new qawj3d("Invalid status code '$okbo3b', must be 4xx or 5xx");}return $this->$vvro3c=$okbo3b;}/**
* Should Whoops exit with a specific code on the CLI if possible?
* Whoops will exit with 1 by default, but you can specify something else.
*
* @param int $code
*
* @return int
*
* @throws InvalidArgumentException
*/ public function xqet11($okbo3b=null){if(func_num_args()==0){return $this->$abpn3e;}if($okbo3b<0||255<=$okbo3b){throw new qawj3d("Invalid status code '$okbo3b', must be between 0 and 254");}return $this->$abpn3e=(int)$okbo3b;}/**
* Should Whoops push output directly to the client?
* If this is false, output will be returned by handleException.
*
* @param bool|int $send
*
* @return bool
*/ public function ijvo12($jfaq3f=null){if(func_num_args()==0){return $this->$virm40;}return $this->$virm40=(bool)$jfaq3f;}/**
* Handles an exception, ultimately generating a Whoops error page.
*
* @param Throwable $exception
*
* @return string Output generated by handlers.
*/ public function sqgb13($uhhf41){$cusw42=$this->abbb18($uhhf41);$this->$oacz28->xfxq43();$ibck44=null;$qmjs45=null;try{foreach(array_reverse($this->$jkei2d)as $ypkj2c){$ypkj2c->pvxq46($this);$ypkj2c->usvq47($cusw42);$ypkj2c->fjhx48($uhhf41);$ibck44=$ypkj2c->ozup49($uhhf41);$qmjs45=method_exists($ypkj2c,base64_decode('Y29udGVudFR5cGU='))?$ypkj2c->afkk4a():null;if(in_array($ibck44,[Handler::LAST_HANDLER,Handler::QUIT])){break;}}$gajt4b=$ibck44==Handler::QUIT&&$this->tfdpd();}finally{$jxyo4c=$this->$oacz28->iovp4d();}if($this->ijvo12()){if($gajt4b){while($this->$oacz28->jfyj4e()>0){$this->$oacz28->qips4f();}if(Misc::xwrr50()&&$qmjs45){header("Content-Type: {$qmjs45}");}}$this->tpmr1a($jxyo4c);}if($gajt4b){$this->$oacz28->vwus51();$this->$oacz28->cuji52($this->xqet11());}return $jxyo4c;}/**
* Converts generic PHP errors to \ErrorException instances, before passing them off to be handled.
*
* This method MUST be compatible with set_error_handler.
*
* @param int $level
* @param string $message
* @param string|null $file
* @param int|null $line
*
* @return bool
*
* @throws ErrorException
*/ public function fays14($yfdp53,$ninr54,$nadk55=null,$vrpa56=null){if($yfdp53&$this->$oacz28->mlcq57()){foreach($this->$njry39 as $qazl58){$lnbx59=(bool)preg_match($qazl58[base64_decode('cGF0dGVybg==')],$nadk55);$pise5a=$yfdp53&$qazl58[base64_decode('bGV2ZWxz')];if($lnbx59&&$pise5a){return true;}}$uhhf41=new qhpt5b($ninr54,$yfdp53,$yfdp53,$nadk55,$vrpa56);if($this->$tjqe5c){throw $uhhf41;}else{$this->sqgb13($uhhf41);}return true;}return false;}/**
* Special case to deal with Fatal errors and the like.
*
* @return void
*/ public function xzev15(){$this->$tjqe5c=false;$wplc5d=$this->$oacz28->edwb5e();if($wplc5d&&Misc::zupo5f($wplc5d[base64_decode('dHlwZQ==')])){$this->$afji36=false;$this->fays14($wplc5d[base64_decode('dHlwZQ==')],$wplc5d[base64_decode('bWVzc2FnZQ==')],$wplc5d[base64_decode('ZmlsZQ==')],$wplc5d[base64_decode('bGluZQ==')]);}}/**
* @param InspectorFactoryInterface $factory
*
* @return void
*/ public function bkly16(InspectorFactoryInterface $svlg60){$this->$vgqj2a=$svlg60;}public function vxos17($xdon61){if(!is_callable($xdon61)){throw new \qawj3d(sprintf(base64_decode('QSBmcmFtZSBmaWx0ZXIgbXVzdCBiZSBvZiB0eXBlIGNhbGxhYmxlLCAlcyB0eXBlIGdpdmVuLg=='),gettype($xdon61)));}$this->$npik2e[]=$xdon61;return $this;}/**
* @param Throwable $exception
*
* @return InspectorInterface
*/ private function abbb18($uhhf41){return $this->$vgqj2a->nwme62($uhhf41);}/**
* Resolves the giving handler.
*
* @param callable|HandlerInterface $handler
*
* @return HandlerInterface
*
* @throws InvalidArgumentException
*/ private function ilga19($ypkj2c){if(is_callable($ypkj2c)){$ypkj2c=new xtkn63($ypkj2c);}if(!$ypkj2c instanceof HandlerInterface){throw new qawj3d(base64_decode('SGFuZGxlciBtdXN0IGJlIGEgY2FsbGFibGUsIG9yIGluc3RhbmNlIG9mIA==').base64_decode('V2hvb3BzXEhhbmRsZXJcSGFuZGxlckludGVyZmFjZQ=='));}return $ypkj2c;}/**
* Echo something to the browser.
*
* @param string $output
*
* @return Run
*/ private function tpmr1a($jxyo4c){if($this->ogve10()&&Misc::xwrr50()){$this->$oacz28->ridk64($this->ogve10());}echo $jxyo4c;return $this;}}?>
Function Calls
None |
Stats
MD5 | 8b80054a056b525573a2548ed427941a |
Eval Count | 0 |
Decode Time | 164 ms |