Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Blackfire无法使用WAMP在Windows上创建网络流_Php_Symfony_Curl_Profiling_Blackfire - Fatal编程技术网

Php Blackfire无法使用WAMP在Windows上创建网络流

Php Blackfire无法使用WAMP在Windows上创建网络流,php,symfony,curl,profiling,blackfire,Php,Symfony,Curl,Profiling,Blackfire,我正在尝试使用Blackfire分析HTTP请求。我安装了以下元件: blackfire代理及其配置文件(使用我的服务器id) blackfire客户端,我用(我的客户端id)对其进行了配置(我启动了C:\Users\a.t>blackfire配置) blackfire php probe(dll,php.ini是用我的服务器id编辑的) 但我还是发现了一个错误: C:\Users\a.t>blackfire curl--解析'simdate.dev:80:127.0.0.1'http://

我正在尝试使用Blackfire分析HTTP请求。我安装了以下元件:

  • blackfire代理及其配置文件(使用我的服务器id)
  • blackfire客户端,我用(我的客户端id)对其进行了配置(我启动了
    C:\Users\a.t>blackfire配置
  • blackfire php probe(dll,php.ini是用我的服务器id编辑的)
但我还是发现了一个错误:

C:\Users\a.t>blackfire curl--解析'simdate.dev:80:127.0.0.1'http://simdate.dev/

您有权配置此页面吗?没有探测响应,缺少PHP扩展或中继代理的签名无效

  • Xdebug和其他调试扩展插件在php.ini文件中被禁用
  • 客户端ID和客户端密钥与服务器ID和服务器密钥不同
  • Blackfire代理也在运行(如果我停止它,我也会出现同样的错误)
以下是我在php中声明的日志文件中的日志文件:

Sat Mar 11 12:31:44 2017 (11080): [Info] Can't find pgsql module, Blackfire SQL analyzer will be disabled for pgsql SQL queries
Sat Mar 11 12:31:44 2017 (11080): [Info] Can't find oci module, Blackfire SQL analyzer will be disabled for oci SQL queries
Sat Mar 11 12:31:58 2017 (11080): [Debug] Found signature : RWQUOK8z****************iNQE=
Sat Mar 11 12:31:58 2017 (11080): [Info] No key found in memory or key expired, continuing without validation
Sat Mar 11 12:31:58 2017 (11080): [Debug] Found valid agent id
Sat Mar 11 12:31:58 2017 (11080): [Debug] Found file based probe stream (utcp://127.0.0.1:8307)
Sat Mar 11 12:31:58 2017 (11080): [Warning] Unable to create a network stream
这是blackfire代理的日志输出。正如你所看到的,他似乎从来没有抓住联系:

[2017-03-11T12:43:03+01:00] DEBUG: blackfire-agent 1.9.2 windows amd64 gc 2016-12-14T10:46:38+0000
[2017-03-11T12:43:03+01:00] DEBUG: Retrieving public keys from API
[2017-03-11T12:43:03+01:00] DEBUG: Fetching public keys from API
[2017-03-11T12:43:03+01:00] DEBUG: Sending request GET https://blackfire.io/agent-api/v1/public-keys
[2017-03-11T12:43:03+01:00] DEBUG: API answered with status code: 200
[2017-03-11T12:43:03+01:00] DEBUG: Unmarshalled json result: &{[{RWQUOK8z--------------------------Ac= 20170426}]}
[2017-03-11T12:43:03+01:00] DEBUG: Started verification of '1' public keys
[2017-03-11T12:43:03+01:00] DEBUG: Retrieving specs from the API
[2017-03-11T12:43:03+01:00] DEBUG: Fetching specs from API
[2017-03-11T12:43:03+01:00] DEBUG: Sending request GET https://blackfire.io/agent-api/v1/specs
[2017-03-11T12:43:03+01:00] DEBUG: API answered with status code: 200
[2017-03-11T12:43:03+01:00] DEBUG: Merging spec from the API and local spec
[2017-03-11T12:43:03+01:00] DEBUG: New value of DefaultSpec.LastMaxAge:  24h0m0s
[2017-03-11T12:43:03+01:00] DEBUG: Listening for connections on 'tcp://127.0.0.1:8307'
[2017-03-11T12:43:03+01:00] DEBUG: Waiting for new connection
这里有两个截图

第一个显示已禁用的Xdebug 第二个显示我的blackfire php配置(xxxx和yyyy是屏幕截图的factice值)


Windows防火墙已被禁用。

您的php.ini配置中有一个输入错误,您应该使用
tcp://127.0.0.1:8307
而不是
utcp://127.0.0.1:8307
blackfire.agent_socket
值的
utcp
/
tcp
输入错误(请注意
utcp
/
tcp
输入错误)

php.ini配置中存在输入错误,您应该使用
tcp://127.0.0.1:8307
而不是
utcp://127.0.0.1:8307
(注意
utcp
/
tcp
typo)用于
blackfire.agent\u socket
value

非常感谢您的Romain,您为我节省了很多时间!非常感谢你的罗曼,你为我节省了很多时间!