graceful-death:因为 PHP 进程应该有尊严地死去-源码

上传者: 42102272 | 上传时间: 2021-07-10 12:03:51 | 文件大小: 25KB | 文件类型: ZIP
PHP
优雅的死亡 您可能知道,在 PHP 中捕获致命错误是极其痛苦的,也几乎是不可能的。 这是一个(部分)解决这个问题的库 用法 <?php require __DIR__ . "/vendor/autoload.php" ; // The output will be: // // Yes, I can ;-) GracefulDeath :: around ( function () { try { // Avoid to print the error in order to have clean output, don't try this at home :-) error_reporting ( E_ALL ^ E_ERROR ); // Creating an instance of an unknown class wi

文件下载

资源详情

[{"title":"( 31 个子文件 25KB ) graceful-death:因为 PHP 进程应该有尊严地死去-源码","children":[{"title":"graceful-death-master","children":[{"title":"composer.json <span style='color:#111;'> 617B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 127B </span>","children":null,"spread":false},{"title":"phpunit.xml <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"composer.lock <span style='color:#111;'> 24.08KB </span>","children":null,"spread":false},{"title":".vimrc <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"bootstrap.php <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"GracefulDeath","children":[{"title":"CatchSignalsTest.php <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"CaptureOutputTest.php <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"GracefulDeathBaseTest.php <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"AvoidFutileMedicalCareTest.php <span style='color:#111;'> 613B </span>","children":null,"spread":false},{"title":"ReaninationTest.php <span style='color:#111;'> 4.10KB </span>","children":null,"spread":false},{"title":"GracefulDeathTest.php <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"fixtures","children":[{"title":"printOutputOnStdout.php <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"printOutputOnStderr.php <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"doNotPrintErrorsByConfiguration.php <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"stopOnSignal.php <span style='color:#111;'> 270B </span>","children":null,"spread":false},{"title":"printOutputOnErrorLog.php <span style='color:#111;'> 235B </span>","children":null,"spread":false},{"title":"doNotEchoOutput.php <span style='color:#111;'> 162B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"GracefulDeath.php <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"GracefulDeath","children":[{"title":"Builder.php <span style='color:#111;'> 5.25KB </span>","children":null,"spread":false},{"title":"Life.php <span style='color:#111;'> 827B </span>","children":null,"spread":false},{"title":"LastWill.php <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"examples","children":[{"title":"catch_memory_leak.php <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"reanimate_after_violent_death.php <span style='color:#111;'> 793B </span>","children":null,"spread":false},{"title":"catch_segmentation_fault.php <span style='color:#111;'> 606B </span>","children":null,"spread":false},{"title":"catch_stack_overflow.php <span style='color:#111;'> 446B </span>","children":null,"spread":false},{"title":"catch_signals.php <span style='color:#111;'> 552B </span>","children":null,"spread":false},{"title":"catch_violent_death.php <span style='color:#111;'> 564B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 253B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明