开发者

Pear outputs IS_VAR

If I use pear from comandline i get strange output "IS_VAR" (whatever pear comands, php unit test's)

example "pear list"

IS_VAR

IS_VAR

IS_VAR

IS_VAR

IS_VAR

IS_VAR
Installed packages, channel pear.php.net:
=========================================
Pack开发者_如何学Goage          Version State
Archive_Tar      1.3.7   stable
Console_Getopt   1.3.0   stable
PEAR             1.9.1   stable
PHP_CodeSniffer  1.2.2   stable
PhpDocumentor    1.4.3   stable
Structures_Graph 1.0.4   stable

Any ideas to fix?

== update ==

I debugged pear script a bit. And I founded strange behavior

class PEAR_PackageFile, method factory

$version = $version{0};

and this line throws this error. I replaced to similar functionality

$version = substr($version,0,1);

and this output disappeared. Of course i hava same issue with some other places, like UnitTests. So question why this strange output is same mystery.


Disabling traces is NOT the answer as stack traces are one of the major useful features of xdebug. It was a problem with the xdebug package itself which has been fixed (see http://bugs.xdebug.org/view.php?id=756).

If you have a distribution copy of xdebug, you can install it from PECL (may require sudo/privilege escalation):

pecl install xdebug

Otherwise, you can upgrade it from PECL:

pecl upgrade xdebug


Set xdebug.auto_trace = 0 in your php.ini file. See bug #18173.


I think you have some debug output in your pear code, or maybe even some global php prepend file. The IS_VAR is NOT part of PEAR; you somehow added that yourself to the code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜