summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-08-10 11:59:11 +0000
committerXinchen Hui <laruence@php.net>2011-08-10 11:59:11 +0000
commitd5688cd19e2f23754d24bc579cc19f2df3f78c5f (patch)
tree5ab39d5ad3232ea63a31054b09b501caa378ea0f
parent70c284009d42d2ad868a649715150a9de84cef8b (diff)
downloadphp-git-d5688cd19e2f23754d24bc579cc19f2df3f78c5f.tar.gz
Eliminated compiler's warnings
-rw-r--r--ext/standard/html.c4
-rw-r--r--ext/standard/php_incomplete_class.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c
index 50bc307927..56b33d4faf 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -378,7 +378,7 @@ static enum entity_charset determine_charset(char *charset_hint TSRMLS_DC)
zenc = zend_multibyte_get_internal_encoding(TSRMLS_C);
if (zenc != NULL) {
- charset_hint = zend_multibyte_get_encoding_name(zenc);
+ charset_hint = (char *)zend_multibyte_get_encoding_name(zenc);
if (charset_hint != NULL && (len=strlen(charset_hint)) != 0) {
if ((len == 4) /* sizeof (none|auto|pass) */ &&
(!memcmp("pass", charset_hint, 4) ||
@@ -1371,7 +1371,7 @@ encode_amp:
unsigned code_point;
int valid;
char *pos = (char*)&old[cursor+1];
- valid = process_numeric_entity(&pos, &code_point);
+ valid = process_numeric_entity((const char **)&pos, &code_point);
if (valid == FAILURE)
goto encode_amp;
if (flags & ENT_HTML_SUBSTITUTE_DISALLOWED_CHARS) {
diff --git a/ext/standard/php_incomplete_class.h b/ext/standard/php_incomplete_class.h
index 38796c2c96..e89f937864 100644
--- a/ext/standard/php_incomplete_class.h
+++ b/ext/standard/php_incomplete_class.h
@@ -38,7 +38,7 @@
free_class_name = 1; \
incomplete_class = 1; \
} else { \
- free_class_name = !zend_get_object_classname(struc, &class_name, &name_len TSRMLS_CC);\
+ free_class_name = !zend_get_object_classname(struc, (const char **)&class_name, &name_len TSRMLS_CC);\
}
#define PHP_CLEANUP_CLASS_ATTRIBUTES() \