php.net |  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
Votes:5
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
Description:
------------
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: http://www.tacker.org/html_errors.php
Online test source: http://www.tacker.org/html_errors.phps

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/tacker.org/htdoc/html_errors.php</b> on line <b>25</b><br />

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 19:57 UTC] sniper@php.net
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] sniper@php.net
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] jani@php.net
-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] kalle@php.net
-Status: Assigned +Status: Closed
 [2014-07-27 01:49 UTC] kalle@php.net
Not an issue anymore after the refactor to the "new" zpp API
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC