php-exception-locals:局部变量支持 PHP 异常

时间:2021-06-08 17:01:18
【文件属性】:
文件名称:php-exception-locals:局部变量支持 PHP 异常
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-08 17:01:18
PHP 局部变量支持 PHP 异常 使用这个 PHP 扩展,异常堆栈跟踪的局部变量的内容被捕获并在getTrace()方法中公开。 安装 从源安装: phpize && ./configure && make && sudo make install 用法 首先,您只需要安装此扩展并在 php.ini 配置中激活它。 例子 这段简单的代码: class Zoo { private $ animals = []; private function generateName () { static $ names = [ 'Bella' , 'Max' , 'Oliver' ]; return $ names [ array_rand ( $ names )]; } public function addAnimal ( $ species ) { $ na
【文件预览】:
php-exception-locals-master
----.gitignore(214B)
----.travis.yml(287B)
----config.m4(308B)
----exception-locals.h(774B)
----LICENSE(1KB)
----exception-locals.php(532B)
----config.w32(224B)
----README.md(2KB)
----tests()
--------003.phpt(2KB)
--------002.phpt(3KB)
--------001.phpt(1KB)
--------002_54.phpt(3KB)
----exception-locals.c(6KB)

网友评论