]> granicus.if.org Git - php/commitdiff
fix compile warning
authorAntony Dovgal <tony2001@php.net>
Thu, 18 May 2006 22:36:14 +0000 (22:36 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 18 May 2006 22:36:14 +0000 (22:36 +0000)
main/main.c

index 1894b7298e8f29bafa78704f2ed7ff2e7c3281bf..d1bfd907972e4ea29859e0df14a55e731271f4d0 100644 (file)
@@ -501,7 +501,7 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
                                php_error(type, "%s(%s): %s", get_active_function_name(TSRMLS_C), params, buffer);
                        } else if (PG(html_errors)) {
                                int len;
-                               char *replace = php_escape_html_entities(params, strlen(params), &len, 0, ENT_COMPAT, NULL TSRMLS_CC);
+                               char *replace = php_escape_html_entities((unsigned char *)params, strlen(params), &len, 0, ENT_COMPAT, NULL TSRMLS_CC);
                                php_error(type, "%s(%s) [<a href='%s%s%s'>%s</a>]: %s", get_active_function_name(TSRMLS_C), replace, docref_root, docref, docref_target, docref, buffer);
                                efree(replace);
                        } else {