violent-death:生成分段错误的 PHP 本机扩展

时间:2021-06-28 20:43:45
【文件属性】:
文件名称:violent-death:生成分段错误的 PHP 本机扩展
文件大小:16KB
文件格式:ZIP
更新时间:2021-06-28 20:43:45
PHP 暴力死亡 你怎么知道你的代码是容错的? 当发生不好的事情时,您如何验证它不会以某种可怕且无法恢复的方式破裂? 这个包将帮助您模拟您的代码在其生命周期中可能面临的最致命的事件。 设想 您想测试代码的容错性。 您希望确保您的代码始终以一致的状态离开这个世界。 问题是你可以在 PHP 中创建的那种失败是 软:它们或多或少由 PHP 解释器管理 可预测:它们是由您以同步方式创建的,在现实生活中会在您不期望的情况下发生,但是您无法模拟失败,例如在执行查询或向远程发出请求时服务器 如果你问自己如何应对这种失败,那么就是你的答案 用法 <?php require __DIR__ . "/../vendor/autoload.php" ; // The output will be something like: // // What is this? Should I drink it? // Th
【文件预览】:
violent-death-master
----src()
--------violent_death.php(2KB)
----php_blast.h(3KB)
----blast.php(24B)
----examples()
--------die_violently.php(24B)
--------drink_poison.php(872B)
--------play_russian_roulette.php(575B)
----.travis.yml(276B)
----LICENSE(1KB)
----composer.lock(24KB)
----config.m4(1KB)
----phpunit.xml(187B)
----README.md(4KB)
----config.w32(289B)
----tests()
--------DrinkPoisonTest.php(1KB)
--------DieViolentlyTest.php(1KB)
--------bootstrap.php(52B)
----.gitignore(38B)
----blast.c(3KB)
----composer.json(466B)

网友评论