cvs: ZendEngine2(PHP_5_1) / zend_execute.c zend_execute_API.c zend_interfaces.c
| From: | Marcus Boerger | Date: | Sun, 26 Feb 2006 10:53:38 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_execute.c zend_execute_API.c zend_interfaces.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4624@lists.php.net to get a copy of this message | ||
helly Sun Feb 26 10:53:38 2006 UTC
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_execute.c zend_execute_API.c zend_interfaces.c
Log:
- Warning fixes by Steph
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_execute.c?r1=1.716.2.11&r2=1.716.2.12&diff_format=u
Index: ZendEngine2/zend_execute.c
diff -u ZendEngine2/zend_execute.c:1.716.2.11 ZendEngine2/zend_execute.c:1.716.2.12
--- ZendEngine2/zend_execute.c:1.716.2.11 Thu Jan 19 07:23:32 2006
+++ ZendEngine2/zend_execute.c Sun Feb 26 10:53:38 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute.c,v 1.716.2.11 2006/01/19 07:23:32 dmitry Exp $ */
+/* $Id: zend_execute.c,v 1.716.2.12 2006/02/26 10:53:38 helly Exp $ */
#define ZEND_INTENSIVE_DEBUGGING 0
@@ -177,8 +177,8 @@
should_free->var = ptr;
if (T->str_offset.str->type != IS_STRING
- || ((int)T->str_offset.offset<0)
- || (T->str_offset.str->value.str.len <= T->str_offset.offset)) {
+ || ((int)T->str_offset.offset < 0)
+ || (T->str_offset.str->value.str.len <= (int)T->str_offset.offset)) {
zend_error(E_NOTICE, "Uninitialized string offset: %d", T->str_offset.offset);
ptr->value.str.val = STR_EMPTY_ALLOC();
ptr->value.str.len = 0;
@@ -658,7 +658,7 @@
zend_error(E_WARNING, "Illegal string offset: %d", T->str_offset.offset);
break;
}
- if (T->str_offset.offset >= T->str_offset.str->value.str.len) {
+ if ((int)T->str_offset.offset >= T->str_offset.str->value.str.len) {
zend_uint i;
if (T->str_offset.str->value.str.len==0) {
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.14&r2=1.331.2.15&diff_format=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.331.2.14 ZendEngine2/zend_execute_API.c:1.331.2.15
--- ZendEngine2/zend_execute_API.c:1.331.2.14 Sat Feb 25 18:25:44 2006
+++ ZendEngine2/zend_execute_API.c Sun Feb 26 10:53:38 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.331.2.14 2006/02/25 18:25:44 helly Exp $ */
+/* $Id: zend_execute_API.c,v 1.331.2.15 2006/02/26 10:53:38 helly Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -482,7 +482,7 @@
continue;
}
- if (const_value.type == IS_STRING && const_value.value.str.len == str_index_len-1
&&
+ if (const_value.type == IS_STRING && const_value.value.str.len == (int)str_index_len-1
&&
!strncmp(const_value.value.str.val, str_index, str_index_len)) {
/* constant value is the same as its name */
zval_dtor(&const_value);
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_interfaces.c?r1=1.33.2.2&r2=1.33.2.3&diff_format=u
Index: ZendEngine2/zend_interfaces.c
diff -u ZendEngine2/zend_interfaces.c:1.33.2.2 ZendEngine2/zend_interfaces.c:1.33.2.3
--- ZendEngine2/zend_interfaces.c:1.33.2.2 Wed Jan 4 23:53:04 2006
+++ ZendEngine2/zend_interfaces.c Sun Feb 26 10:53:38 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_interfaces.c,v 1.33.2.2 2006/01/04 23:53:04 andi Exp $ */
+/* $Id: zend_interfaces.c,v 1.33.2.3 2006/02/26 10:53:38 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -336,7 +336,7 @@
} else if (class_type->get_iterator != zend_user_it_get_new_iterator) {
/* c-level get_iterator cannot be changed (exception being only Traversable is implmented) */
if (class_type->num_interfaces) {
- for (i = 0; i < class_type->num_interfaces; i++) {
+ for (i = 0; i < (int)class_type->num_interfaces; i++) {
if (class_type->interfaces[i] == zend_ce_iterator) {
return FAILURE;
}