diff options
| author | Sascha Schumann <sas@php.net> | 2003-08-28 16:41:20 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2003-08-28 16:41:20 +0000 |
| commit | 2e36578cfd7c7a33dafcc2a48fbb0a718999af12 (patch) | |
| tree | 8779bd7817fd02e68fe126ed59d71a948e21cf9b /Zend/zend_builtin_functions.c | |
| parent | 04bbd9a2f77711e6d3843f57cf45a406966e2352 (diff) | |
| download | php-git-2e36578cfd7c7a33dafcc2a48fbb0a718999af12.tar.gz | |
Add format attribute to a number of functions
Kill a few warnings
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 5c9b905323..c0786f8ff3 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -245,7 +245,7 @@ ZEND_FUNCTION(func_get_arg) arg_count = (ulong) *p; if (requested_offset>=arg_count) { - zend_error(E_WARNING, "func_get_arg(): Argument %d not passed to function", requested_offset); + zend_error(E_WARNING, "func_get_arg(): Argument %ld not passed to function", requested_offset); RETURN_FALSE; } @@ -1461,6 +1461,7 @@ ZEND_FUNCTION(debug_print_backtrace) lineno = ptr->opline->lineno; } else { filename = NULL; + lineno = 0; } function_name = ptr->function_state.function->common.function_name; @@ -1516,6 +1517,7 @@ ZEND_FUNCTION(debug_print_backtrace) array_init(arg_array); add_next_index_string(arg_array, include_filename, 1); } + call_type = NULL; } zend_printf("#%-2d ", indent); if (class_name) { |
