From: rob at OhReally dot nl Operating system: php.net PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: XML with functions and versions
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 -- Edit bug report at http://bugs.php.net/?id=42482&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42482&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42482&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42482&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42482&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42482&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42482&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42482&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42482&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42482&r=support Expected behavior: http://bugs.php.net/fix.php?id=42482&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42482&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42482&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42482&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42482&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42482&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42482&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42482&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42482&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42482&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42482&r=mysqlcfg