ID: 29489 User updated by: e dot colinet at laposte dot net Reported By: e dot colinet at laposte dot net Status: Wont fix Bug Type: Feature/Change Request Operating System: any PHP Version: 5.0.0 New Comment:
Thanks for the traditionnal "Look at the manual". "Only One" refer to a situation where a call to a function use more than one argument. It have annoyed me 5 min (more than one is_array fit on a line) and it's a 2 sec fix. But please forget it. Previous Comments: ------------------------------------------------------------------------ [2004-08-02 16:27:30] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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