|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32217 "Wrong parameter count" errors do not contain clickable function names
Submitted: 2005-03-07 13:04 UTC Modified: 2014-07-27 01:49 UTC
Avg. Score:3.6 ± 0.5
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:5 (100.0%)
From: m at tacker dot org Assigned: andi (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: * OS: *
Private report: No CVE-ID: None
 [2005-03-07 13:04 UTC] m at tacker dot org
Even if html_errors, docref_root and docref_ext are set according to the description, no links are contained in the error messages.

Online test:
Online test source:

Reproduce code:
ini_set('html_errors', 'On');
ini_set('docref_root', '/php-doc/');
ini_set('docref_ext', '.html');
$test = str_replace();

Expected result:
str_replace() beeing linked to /php-doc/functions.str_replace.html

Actual result:
<br />
<b>Warning</b>:  Wrong parameter count for str_replace() in <b>/mnt/store/www/</b> on line <b>25</b><br />


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 19:57 UTC]
This is cause by the fact that the zend_wrong_param_count() does NOT use the php_error_docref() function..

 [2005-03-07 20:08 UTC]
Reclassified and assigned to Andi who can decide what to do. :) This is not exactly a bug but a feature request..

 [2005-03-08 10:00 UTC] m at tacker dot org
I see - It works with fatal errors.
I included a call to require_once('somefile'); in my example and this produces an error message with a link.
 [2010-12-20 14:11 UTC]
-Summary: html_errors don't contain clickable function names +Summary: "Wrong parameter count" errors do not contain clickable function names -Package: Feature/Change Request +Package: Scripting Engine problem -PHP Version: 4CVS, 5CVS (2005-03-07) +PHP Version: *
 [2014-07-27 01:49 UTC]
-Status: Assigned +Status: Closed
 [2014-07-27 01:49 UTC]
Not an issue anymore after the refactor to the "new" zpp API
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 26 21:03:34 2022 UTC