-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 Yaf debug 模式出现问题 #389
Comments
还有一个建议, 能不能将 Debug 模式改成从环境变量之类的获取, 而不是需要重新编译 |
看样子是xdebug 扩展引起的,有最小实现代码吗?你去看下xdebug扩展是否支持php7.2 |
我切换到 php7.0.27 只以 debug 模式安装 yaf 扩展依然不行
|
怎么重现呢? 有重现脚本么 |
有, 已整理好经发到你的 laruence@php.net 邮箱了, 邮件标题是 |
邮件发送不成功 单独使用 Yaf debug 并没有问题, 当使用 PHPUnit 运行单元测试的时候, 创建 Application 会出现问题 链接: https://pan.baidu.com/s/1ggdwZvH 密码: ugrp
application/controllers/Index.php
server {
} 测试情况:
请求: 响应: "$_GET: 123"
进入项目根目录: $ php cli.php Strict Standards: Yaf_Application::__construct(): Yaf is running in debug mode in /Users/didi/projs/online/yafdemo/cli.php on line 5
测试文件放在 tests/ 目录下 $ vendor/phpunit/phpunit/phpunit "before" |
只有加 --enable-yaf-debug 编译后才会出现以上问题, 正常编译可以正常运行 |
应该已经修复, 你试试拉取master的代码重新编译下跑跑验证下. 谢谢报告 :) |
可以了, 多谢 |
系统: Darwin bogon 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
PHP版本: PHP 7.2.0
Yaf 版本: 3.0.7-dev
使用 HTTP 请求可以正常返回
使用 Cli 模式时候, 使用 Yaf_Request_Simple 构造 Request
在代码中执行: new Yaf_Application($this->config); 时候, 有以下错误
[1] 75752 segmentation fault phpunit tests/FirstTest.php
-- core 信息 --
_emalloc + 203 frame #1: 0x0000000108165f92 php
zif_dirname + 128frame Feature in controller class about exceptions #2: 0x000000010945365a xdebug.so
xdebug_execute_internal + 433 frame #3: 0x00000001082a6686 php
ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER + 465frame Cannot initialize Yaf\\Route\\Static #4: 0x000000010826d377 php
execute_ex + 56 frame #5: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141frame Can Yaf_Dispatcher::setErrorHandler supports closure? #6: 0x00000001082a625c php
ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 594 frame #7: 0x000000010826d377 php
execute_ex + 56frame yaf_route_simple_assemble complete #8: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141 frame #9: 0x00000001082a671d php
ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER + 616frame yaf_route_simple_assemble complete #10: 0x000000010826d377 php
execute_ex + 56 frame #11: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141frame yaf_route_simple_assemble complete #12: 0x00000001082a671d php
ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER + 616 frame #13: 0x000000010826d377 php
execute_ex + 56frame Not resolving modules #14: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141 frame #15: 0x0000000108222fd6 php
zend_call_function + 1214frame windows testing #16: 0x000000010824c8d7 php
zend_call_method + 531 frame #17: 0x0000000108265d6b php
zend_std_cast_object_tostring + 299frame fixed the project path bug #18: 0x000000010822825e php
_zval_get_string_func + 346 frame #19: 0x0000000108278a40 php
ZEND_CAST_SPEC_CV_HANDLER + 320frame Yaf_View_Simple has a method named
eval
#20: 0x000000010826d377 phpexecute_ex + 56 frame #21: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141frame Yaf_Load conflict sql_autoload_register #22: 0x00000001082a625c php
ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 594 frame #23: 0x000000010826d377 php
execute_ex + 56frame assemble complete #24: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141 frame #25: 0x00000001082a625c php
ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 594frame route assemble complete #26: 0x000000010826d377 php
execute_ex + 56 frame #27: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141frame Forward action between two modules on this same controllers name #28: 0x00000001082a625c php
ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 594 frame #29: 0x000000010826d377 php
execute_ex + 56frame forward to an action that is defined in a separate file #30: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141 frame #31: 0x00000001082a625c php
ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 594frame fix one bug #32: 0x000000010826d377 php
execute_ex + 56 frame #33: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141frame make code better for vim #34: 0x00000001082a625c php
ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 594 frame #35: 0x000000010826d377 php
execute_ex + 56frame Adds namespaces support for Yaf`s skeleton class generator #36: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141 frame #37: 0x00000001082a671d php
ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER + 616frame Fixes all tests to pass on most machines #38: 0x000000010826d377 php
execute_ex + 56 frame #39: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141frame 增加Yaf_View_Interface、Yaf_Route_Interface接口语法导出 #40: 0x00000001082a671d php
ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER + 616 frame #41: 0x000000010826d377 php
execute_ex + 56frame yaf_cg is not affected by yaf.use_namespace config #42: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141 frame #43: 0x00000001082a625c php
ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER + 594frame 最新的文档 #44: 0x000000010826d377 php
execute_ex + 56 frame #45: 0x0000000109453350 xdebug.so
xdebug_execute_ex + 2141frame 在conf文件夹下可以写多个.ini配置文件吗,如何引入它们? #46: 0x000000010826d51f php
zend_execute + 355 frame #47: 0x000000010823199b php
zend_execute_scripts + 277frame Fix incorrect assignment for variable $app_path #48: 0x00000001081d983b php
php_execute_script + 657 frame #49: 0x00000001082f13d3 php
do_cli + 3874frame 关于__call() #50: 0x00000001082f032d php
main + 1135 frame #51: 0x00007fffe47cd235 libdyld.dylib
start + 1frame 关于 Favicon.ico.php #52: 0x00007fffe47cd235 libdyld.dylib`start + 1
The text was updated successfully, but these errors were encountered: