FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=15490&edit=1

ID: 15490
Updated by: hm2k@php.net
Reported By: shimooka at doyouphp dot jp
Summary: Messages from PHP_CompatInfo
-Status: Analyzed
+Status: Closed
Type: Feature/Change Request
Package: PHP_DocBlockGenerator
Operating System: CentOS 5.2
Package Version: 1.1.1
PHP Version: 5.2.8
Assigned To: hm2k
Roadmap Versions:
New Comment:

-Status: Analyzed
+Status: Closed
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




Previous Comments:
------------------------------------------------------------------------

[2010-08-09 20:44:11] hm2k

-Status: Open
+Status: Analyzed
-Assigned To:
+Assigned To: hm2k


------------------------------------------------------------------------

[2009-01-03 07:26:37] hshimooka

Description:
------------
I use PHP_DocBlockGenerator-1.1.1 with PHP_CompatInfo-1.8.1 .

I ran docblockgen, then displayed messages like 'print_r'. I read source
codes both of PHP_DocBlockGenerator and PHP_CompatInfo, and found that
the constructor of PHP_CompatInfo added PHP_CompatInfo_Renderer_Array to
its listener by default.

If you can, toggle thats messages with some option, or not display it.
In the latter case, I think ok to pass 'null' string to the constructor
of PHP_CompatInfo in PHP_DocBlockGenerator_Tokens's constructor .

-=-=-=-=-

$ diff /usr/local/lib/php5/pear/PHP/DocBlockGenerator/Tokens.php.org
/usr/local/lib/php5/pear/PHP/DocBlockGenerator/Tokens.php
150c150
< $this->info = new PHP_CompatInfo();
---
$this->info = new PHP_CompatInfo("null");
$


Test script:
---------------
$ docblockgen /path/to/sample.php /path/to/commented.php


Expected result:
----------------
$ docblockgen /path/to/sample.php /path/to/commented.php
$

Actual result:
--------------
$ docblockgen /path/to/sample.php /path/to/commented.php
array (
'ignored_files' =>
array (
),
'ignored_functions' =>
array (
),
'ignored_extensions' =>
array (
),
'ignored_constants' =>
array (
),
'max_version' => '',
'version' => '5.0.0',
'extensions' =>
array (
),
'constants' =>
array (
0 => 'PHP_EOL',
),
'tokens' =>
array (
0 => 'public',
),
'cond_code' =>
array (
0 => 0,
),
)$

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 6, '11 at 4:11p
activeSep 6, '11 at 4:11p
posts1
users1
websitepear.php.net

1 user in discussion

Hm2k: 1 post

People

Translate

site design / logo © 2022 Grokbase