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: Open
+Status: Analyzed
Type: Feature/Change Request
Package: PHP_DocBlockGenerator
Operating System: CentOS 5.2
Package Version: 1.1.1
PHP Version: 5.2.8
-Assigned To:
+Assigned To: hm2k
Roadmap Versions:
New Comment:

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



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

[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
postedAug 9, '10 at 8:44p
activeAug 9, '10 at 8:44p
posts1
users1
websitepear.php.net

1 user in discussion

Hm2k: 1 post

People

Translate

site design / logo © 2022 Grokbase