cvs: php4 /ext/standard basic_functions.c
| From: | Andrei Zmievski | Date: | Thu, 07 Dec 2000 14:54:52 +0000 |
| Subject: | cvs: php4 /ext/standard basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3006@lists.php.net to get a copy of this message | ||
andrei Thu Dec 7 06:54:52 2000 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
We don't want any hard errors in PHP scripts unless absolutely necessary.
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.282 php4/ext/standard/basic_functions.c:1.283
--- php4/ext/standard/basic_functions.c:1.282 Thu Dec 7 06:14:00 2000
+++ php4/ext/standard/basic_functions.c Thu Dec 7 06:54:52 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.282 2000/12/07 14:14:00 kk Exp $ */
+/* $Id: basic_functions.c,v 1.283 2000/12/07 14:54:52 andrei Exp $ */
#include "php.h"
#include "php_main.h"
@@ -1567,10 +1567,10 @@
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);