Req #32217 [Asn->Csd]: "Wrong parameter count" errors do not contain clickable function names
| From: | kalle@php.net | Date: | Sun, 27 Jul 2014 01:49:54 +0000 |
| Subject: | Req #32217 [Asn->Csd]: "Wrong parameter count" errors do not contain clickable function names | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186826@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=32217&edit=1
ID: 32217
Updated by: kalle@php.net
Reported by: m at tacker dot org
Summary: "Wrong parameter count" errors do not contain
clickable function names
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: *
PHP Version: *
Assigned To: andi
Block user comment: N
Private report: N
New Comment:
Not an issue anymore after the refactor to the "new" zpp API
Previous Comments:
------------------------------------------------------------------------
[2005-03-08 10:00:40] 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.
------------------------------------------------------------------------
[2005-03-07 20:08:11] 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-07 19:57:55] 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 13:04:43] 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 />
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=32217&edit=1