cvs: Zend(PHP_4_3) / zend_builtin_functions.c zend_compile.c zend_execute.c zend_highlight.c
| From: | Sascha Schumann | Date: | Thu, 28 Aug 2003 16:08:11 +0000 |
| Subject: | cvs: Zend(PHP_4_3) / zend_builtin_functions.c zend_compile.c zend_execute.c zend_highlight.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1720@lists.php.net to get a copy of this message | ||
sas Thu Aug 28 12:08:11 2003 EDT
Modified files: (Branch: PHP_4_3)
/Zend zend_builtin_functions.c zend_compile.c zend_execute.c
zend_highlight.c
Log:
(zend_builtin_functions.c zend_compile.c zend_execute.c)
fix format string usage
(zend_highlight.c) explicitly discard value
Index: Zend/zend_builtin_functions.c
diff -u Zend/zend_builtin_functions.c:1.124.2.12 Zend/zend_builtin_functions.c:1.124.2.13
--- Zend/zend_builtin_functions.c:1.124.2.12 Fri Aug 8 09:53:18 2003
+++ Zend/zend_builtin_functions.c Thu Aug 28 12:08:11 2003
@@ -203,7 +203,7 @@
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;
}
Index: Zend/zend_compile.c
diff -u Zend/zend_compile.c:1.240.2.5 Zend/zend_compile.c:1.240.2.6
--- Zend/zend_compile.c:1.240.2.5 Tue Jul 22 13:21:14 2003
+++ Zend/zend_compile.c Thu Aug 28 12:08:11 2003
@@ -969,8 +969,7 @@
"If you would like to enable call-time pass-by-reference, you can set "
"allow_call_time_pass_reference to true in your INI file. "
"However, future versions may not support this any longer. ",
- (function_ptr?function_ptr->common.function_name:"[runtime function name]"),
- offset+1);
+ (function_ptr?function_ptr->common.function_name:"[runtime function name]"));
}
if (function_ptr) {
Index: Zend/zend_execute.c
diff -u Zend/zend_execute.c:1.316.2.21 Zend/zend_execute.c:1.316.2.22
--- Zend/zend_execute.c:1.316.2.21 Wed Jul 30 12:33:54 2003
+++ Zend/zend_execute.c Thu Aug 28 12:08:11 2003
@@ -665,13 +665,13 @@
if (zend_hash_index_find(ht, index, (void **) &retval) == FAILURE) {
switch (type) {
case BP_VAR_R:
- zend_error(E_NOTICE,"Undefined offset: %d", index);
+ zend_error(E_NOTICE,"Undefined offset: %ld", index);
/* break missing intentionally */
case BP_VAR_IS:
retval = &EG(uninitialized_zval_ptr);
break;
case BP_VAR_RW:
- zend_error(E_NOTICE,"Undefined offset: %d", index);
+ zend_error(E_NOTICE,"Undefined offset: %ld", index);
/* break missing intentionally */
case BP_VAR_W: {
zval *new_zval = &EG(uninitialized_zval);
@@ -1833,7 +1833,7 @@
zval **param;
if (zend_ptr_stack_get_arg(EX(opline)->op1.u.constant.value.lval, (void **) ¶m
TSRMLS_CC)==FAILURE) {
- zend_error(E_WARNING, "Missing argument %d for %s()",
EX(opline)->op1.u.constant.value.lval, get_active_function_name(TSRMLS_C));
+ zend_error(E_WARNING, "Missing argument %ld for %s()",
EX(opline)->op1.u.constant.value.lval, get_active_function_name(TSRMLS_C));
if (EX(opline)->result.op_type == IS_VAR) {
PZVAL_UNLOCK(*EX(Ts)[EX(opline)->result.u.var].var.ptr_ptr);
}
Index: Zend/zend_highlight.c
diff -u Zend/zend_highlight.c:1.31.2.4 Zend/zend_highlight.c:1.31.2.5
--- Zend/zend_highlight.c:1.31.2.4 Sat Mar 8 00:16:14 2003
+++ Zend/zend_highlight.c Thu Aug 28 12:08:11 2003
@@ -77,7 +77,7 @@
zend_html_putc(*ptr);
} while ((++ptr < end) && (*ptr==' '));
} else {
- ZEND_PUTC(*ptr);
+ (void) ZEND_PUTC(*ptr);
ptr++;
}
} else {