From: subscription at nazarenko dot net Operating system: SuSE Linux 10.0 PHP version: 5CVS-2005-11-09 (snap) PHP Bug Type: PHP options/info functions Bug description: Not all function names are changed to documentation links in error messages
Description: ------------ When 'html_errors=On' and 'docref_root' and 'docref_ext' are set, not all warnings/errors become html links to the documentation. It seems that the warnings about wrong function arguments do not generate html links, whereas failed function calls with the properly given arguments do so. Reproduce code: --------------- A fragment of php.ini: error_reporting = E_ALL|E_STRICT display_errors = On html_errors = On docref_root = "http://de.php.net/manual/en/" docref_ext = ".php" And then the test script: <?php str_replace('one','two'); mysqli_connect('fake'); ?> Produces this html: <br /> <b>Warning</b>: Wrong parameter count for str_replace() in <b>x.php</b> on line <b>3</b><br /> <br /> <b>Warning</b>: mysqli_connect() [<a href='http://de.php.net/manual/en/function.mysqli-connect.php'>function.mysqli-connect.php</a>]: (HY000/2005): Unknown MySQL server host 'fake' (1) in <b>x.php</b> on line <b>4</b><br /> Expected result: ---------------- I think it would be MUCH more useful for a developer to get links to the documentation when there are inconsistencies in a function arguments (and such), rather than when the function call actually failed with the properly specified arguments. When the function returns an error or warning it is often 'too late' to look into the documentation. On the other hand, very often an error is made in a number/order/type of function arguments, i.e. before the function is called, which is when the documentation is very handy. -- Edit bug report at http://bugs.php.net/?id=35175&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35175&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35175&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35175&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35175&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35175&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35175&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35175&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35175&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35175&r=support Expected behavior: http://bugs.php.net/fix.php?id=35175&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35175&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35175&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35175&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35175&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35175&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35175&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35175&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35175&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35175&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35175&r=mysqlcfg