php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42482 XML with functions and versions
Submitted: 2007-08-30 08:04 UTC Modified: 2007-08-30 13:32 UTC
From: rob at OhReally dot nl Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: php.net
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rob at OhReally dot nl
New email:
PHP Version: OS:

 

 [2007-08-30 08:04 UTC] rob at OhReally dot nl
Description:
------------
The documentation at php.net lists the PHP version in which a function was introduced, and when a function became deprecated.
It would be cool if an XML (or other format) would be included in the site which states only the functions and the version numbers. This would enable me to write a script to test a website for compliance.

My development server always runs the latest stable version of all software; I upgrade it once a week. However, customers' providers are not always as eager to upgrade. Having the XML described above would enable me to just develop the website as I see fit, then run a script to check all functions for compatibility, and then add some 'if (!function_exists())' alternatives where needed.

(Even cooler would be a function 'behave_as_version()' included in PHP itself, of course, but this would be considerably more work, I guess.)

Reproduce code:
---------------
irrelevant

Expected result:
----------------
<phpfunctions>
 <function>
  <name>array_diff</name>
  <introduced>4.0.1</name>
  <broken>4.0.4</broken>
 </function>
 <function>
  <name>array_map</name>
  <introduced>4.0.6</introduced>
 </function>
 <function>
  <name>trim</name>
  <introduced>3.x.x</introduced>
  <changelog>
   <change>
    <version>4.1.0</version>
    <description>The optional charlist parameter was added.</description>
   </change>
  </changelog>
 </function>
 <function>
  <name>some_function</name>
  <introduced>6.2.3</introduced>
  <deprecated>8.5.0</deprecated>
 </function>
</phpfunctions>

Actual result:
--------------
irrelevant

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 13:01:31 2024 UTC