Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a1

Bug #11540 inline @static tag renders wrong result with XML:DocBook/peardoc2:default
Submitted: 2007-07-06 07:52 UTC
From: farell Assigned: ashnazg
Status: Wont fix Package: PhpDocumentor (version 1.4.0RC1)
PHP Version: 5.2.3 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 33 - 16 = ?

 
 [2007-07-06 07:52 UTC] farell (Laurent Laville)
Description: ------------ While trying to generate XML DocBook pages for PEAR_Info, I've noticed that @static tag is not well renders. Using phpdoc command line on a Windows XP dosbox See file content: language-snippets.ent http://cvs.php.net/viewvc.cgi/peardoc/en/language-snippets.ent?revision=1.15&view=markup ---------------- <!ENTITY note.shouldstatic '<simpara>This function should be called statically.</simpara>'> <!ENTITY note.notstatic '<simpara>This function can not be called statically.</simpara>'> ---------------- Test script: --------------- phpdoc -c pear_info.ini With C:\wamp\php\PEAR\data\PhpDocumentor\user\pear_info.ini content (comment stripped tags) [Parse Data] title = PEAR_Info Manual hidden = false parseprivate = off javadocdesc = off defaultcategoryname = PEAR defaultpackagename = PEAR_Info target = C:\php5\phpdoc\PEAR_Info readmeinstallchangelog = README, INSTALL, FAQ, LICENSE directory = c:/php/pear/PEAR_Info ignore = CVS/* output=XML:DocBook/peardoc2:default sourcecode = on Expected result: ---------------- <refsect1 id="package.pear.pear-info.pear-info.setproxy.note"> &title.note; &note.shouldstatic; </refsect1> Actual result: -------------- <refsect1 id="package.pear.pear-info.pear-info.setproxy.note"> &title.note; &note.notstatic; </refsect1>

Comments

 [2007-12-09 02:00 UTC] ashnazg (Chuck Burgess)
I find no reference to "shouldstatic" anywhere in the XML converter codebase. I do however see "canstatic" along with "notstatic". Is it possible that "canstatic" is what you want rather than "shouldstatic"? /me is mostly clueless about DocBook :(
 [2007-12-18 15:39 UTC] ashnazg (Chuck Burgess)
Or, do all _three_ of these terms exist in the DocBook spec? If both "shouldstatic" and "canstatic" are both valid DocBook tags, then perhaps I just need to add a "shouldstatic" handler to the PhpDoc converter.
 [2007-12-19 03:48 UTC] ashnazg (Chuck Burgess)
Hmmm... from actually looking at that CVS link you provided, I see entries for all three static keywords (canstatic, shouldstatic, notstatic). So, I think that alone does tell me that all three should be handled by the peardoc2 converter. Now to figure out how to add "shouldstatic" to the mix...
 [2011-12-01 03:29 UTC] ashnazg (Chuck Burgess)
-Roadmap Versions: 1.4.4 +Roadmap Versions: 1.4.5
 [2012-09-01 02:33 UTC] ashnazg (Chuck Burgess)
-Status: Verified +Status: Wont fix -Assigned To: +Assigned To: ashnazg -Roadmap Versions: 1.4.5 +Roadmap Versions:
No more feature work on phpDocumentor 1.x. Check out the new phpDocumentor 2.x (http://www.phpdoc.org/).