为什么XDebug会生成损坏的文件?

时间:2009-06-04 17:08:26

标签: php drupal profiling xdebug

我在XAMPP安装上启用了XDebug。我已经使用XDebug + Wincachegrind来描述我的代码已有一段时间了。最近,XDebug开始向cachegrind.out文件中添加一些奇怪的内容。

奇怪的东西的例子:

fl=fl=php:internal
fn=php::ini_set
127 7

fl=C:\xampp\htdocs\drupal-5.7\includes\session.inc
fn=sess_close
0 3

=1 0 0
72 2991

fl=C:\xampp\htdocs\drupal-5.7\includes\session.inc
fn=sess_close
0 3

ession.inc
fn=sess_close
0 2

我正在编写Drupal模块,如果重要的话。这种行为的原因是什么?

1 个答案:

答案 0 :(得分:3)

我无法测试文件写入并发性。如果您有两个同时进入同一文件的请求,则会发生这种情况。诀窍是使用here所述的设置更改文件格式。

德里克

相关问题