|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51853 Allow php version info everywhere
Submitted: 2010-05-18 18:33 UTC Modified: 2011-07-05 15:05 UTC
From: Assigned: bjori (profile)
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
Solve the problem:
47 - 11 = ?
Subscribe to this entry?

 [2010-05-18 18:33 UTC]
This request allows us to add XML markup to any file, such as:

 <version>PHP 5 &gt;= 5.2.0</version>

Bad XML example. However, upon further thought any book/chapter/sect/... would 
allow adding version information in a similar fashion to how function pages do now 
(via versions.xml info).

Example places we might do this:
 - class docs
 - goto
 - include/require


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-18 18:45 UTC]
There is a <revision> and and a <revnumber> tag. But <revision> requires a <date> 
and either an <author> or an <authorinitials>.

But <para role="revinfo">PHP 5 &gt;= 5.3.0</para> should cover it.
 [2010-07-02 19:34 UTC]
Unsure how I feel about a magical element that needs to inject that information 
into the heading of the document.

How about something like:
<para><?phpdoc print-version-for="include_once"?></para>

Which would lookup in the aggregated versions.xml file and return the version of 

The you'd start the chapter/reference/article with that line to get the 
structure consistent with the refpages?
 [2011-04-18 16:50 UTC]
Sounds good and reasonable... Commit! :)
 [2011-07-05 15:05 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: bjori
 [2011-07-05 15:05 UTC]
This bug has been fixed in SVN. Since the websites are not directly
updated from the SVN server, the fix might need some time to spread
across the globe to all mirror sites, including itself.

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

Blah. Forgot to mention the bug number in the commit.
fixed in svn;
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 14:01:30 2024 UTC