]> granicus.if.org Git - php/commitdiff
We don't want any hard errors in PHP scripts unless absolutely necessary.
authorAndrei Zmievski <andrei@php.net>
Thu, 7 Dec 2000 14:54:52 +0000 (14:54 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 7 Dec 2000 14:54:52 +0000 (14:54 +0000)
ext/standard/basic_functions.c

index ccc82d68e6092fa42e09f6df1ace70c5af81df8d..4fec4ed7bbd33c43d4e5fb1b7c4d78360851d09b 100644 (file)
@@ -1567,10 +1567,10 @@ PHP_FUNCTION(call_user_func_array)
         WRONG_PARAM_COUNT;
     }
     convert_to_string_ex(func_name);
+       convert_to_array_ex(params);
     
     params_ar = HASH_OF(*params);
-    if (!params_ar)
-      php_error(E_ERROR, "Second argument is empty or not an array.");
+
     num_elems = zend_hash_num_elements(params_ar);
     
     func_args = (zval ***)emalloc(sizeof(zval **) * num_elems);