#29489 [Opn->WFx]: Wrong error text with is_* functions (is_array, ...)
| From: | tony2001@php.net | Date: | Mon, 02 Aug 2004 14:27:32 +0000 |
| Subject: | #29489 [Opn->WFx]: Wrong error text with is_* functions (is_array, ...) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63940@lists.php.net to get a copy of this message | ||
ID: 29489
Updated by: tony2001@php.net
Reported By: e dot colinet at laposte dot net
-Status: Open
+Status: Wont fix
-Bug Type: *General Issues
+Bug Type: Feature/Change Request
Operating System: any
PHP Version: 5.0.0
New Comment:
I see no reason to change this particular error message and leave about
1922 similar messages untouched.
You always can have a look at the appropriate docs and learn what
number of arguments this function expects.
Previous Comments:
------------------------------------------------------------------------
[2004-08-02 11:08:29] e dot colinet at laposte dot net
It's in ext/standard/type.c function php_is_type.
Line 209
> php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only one argument
expected");
< php_error_docref(NULL TSRMLS_CC, E_WARNING, "Wrong parameter
count");
Not so important but it's confusing :-)
------------------------------------------------------------------------
[2004-08-02 11:03:19] e dot colinet at laposte dot net
Description:
------------
Wrong error text when no arguments provided to is_* functions.
Reproduce code:
---------------
php -r "is_array();"
Expected result:
----------------
Wrong parameter count for is_array()
Actual result:
--------------
Only one argument expected
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29489&edit=1