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

ID: 15490
Updated by: [email protected]
Reported By: shimooka at doyouphp dot jp
Summary: Messages from PHP_CompatInfo
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
+Assigned To: danielc
Roadmap Versions:
New Comment:

-Assigned To: hm2k
+Assigned To: danielc
That commit didn't fix the problem. The parameter is the string "null",
not the type NULL.


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

[2011-09-06 18:12:15] hm2k

-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.

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

[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
postedDec 11, '11 at 3:11p
activeDec 11, '11 at 3:11p
posts1
users1
websitepear.php.net

1 user in discussion

Danielc: 1 post

People

Translate

site design / logo © 2023 Grokbase