#29489 [Opn]: Wrong error text with is_* functions (is_array, ...)
| From: | e dot colinet at laposte dot net | Date: | Mon, 02 Aug 2004 09:08:31 +0000 |
| Subject: | #29489 [Opn]: Wrong error text with is_* functions (is_array, ...) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63897@lists.php.net to get a copy of this message | ||
ID: 29489
User updated by: e dot colinet at laposte dot net
Reported By: e dot colinet at laposte dot net
Status: Open
Bug Type: *General Issues
Operating System: any
PHP Version: 5.0.0
New Comment:
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 :-)
Previous Comments:
------------------------------------------------------------------------
[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