Doc #51418 [NEW]: Deprecated functions should recommend replacements
| From: | lion at netngine dot hu | Date: | Sun, 28 Mar 2010 12:19:56 +0000 |
| Subject: | Doc #51418 [NEW]: Deprecated functions should recommend replacements | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-7801@lists.php.net to get a copy of this message | ||
From:
Operating system: all
PHP version: Irrelevant
Package: Website problem
Bug Type: Documentation Problem
Bug description:Deprecated functions should recommend replacements
Description:
------------
Deprecated functions are marked with a big red warning on the website, like
for example this one:
http://hu.php.net/manual/en/function.eregi.php
The warning text is:
"This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature
is highly discouraged."
But there is absolutely no idea given of what kind of other functions could
be used to replace the deprecated function. Especially bad when trying to
fix an older script to work on an updated server, with no serious knowledge
of every old function used in an old script.
One needs to clearly read the function, understand old behavior, then start
from the Table Of Contents of PHP documentation, try to find a new
function, and then convert the call.
Instead, these warnings should
1. link to recommended replacements
2. note most important changes between the old and new function
Note that I also checked "See also" links on many deprecated functions when
I ran into this problem, and in most cases all see-also are also
deprecated, so no there is no help.
--
Edit bug report at http://bugs.php.net/bug.php?id=51418&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51418&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51418&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51418&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51418&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51418&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51418&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51418&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51418&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51418&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51418&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51418&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51418&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51418&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51418&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51418&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51418&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51418&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51418&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51418&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51418&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51418&r=mysqlcfg