]> granicus.if.org Git - php/commitdiff
Fix two warnings
authorNikita Popov <nikic@php.net>
Fri, 13 Sep 2013 18:01:23 +0000 (20:01 +0200)
committerNikita Popov <nikic@php.net>
Fri, 13 Sep 2013 18:01:23 +0000 (20:01 +0200)
Zend/zend_builtin_functions.c
Zend/zend_compile.c

index a0fa175dcc4f9e4783721da32d76bbab99838222..ed136f5e12917d6f47588428f457b4e4f75d4f8f 100644 (file)
@@ -1388,12 +1388,11 @@ ZEND_FUNCTION(function_exists)
    Creates an alias for user defined class */
 ZEND_FUNCTION(class_alias)
 {
-       char *class_name, *lc_name, *alias_name;
+       char *class_name, *alias_name;
        zend_class_entry **ce;
        int class_name_len, alias_name_len;
        int found;
        zend_bool autoload = 1;
-       ALLOCA_FLAG(use_heap)
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &class_name, &class_name_len, &alias_name, &alias_name_len, &autoload) == FAILURE) {
                return;
index 2dd8d03a4c664ad48e6c99a210df6b09456c61b6..672f62b7eefa348be6a608ed8c114743d54516f2 100644 (file)
@@ -3985,7 +3985,7 @@ static int zend_traits_copy_functions(zend_function *fn TSRMLS_DC, int num_args,
                }
        }
 
-       lcname = hash_key->arKey;
+       lcname = (char *) hash_key->arKey;
 
        if (exclude_table == NULL || zend_hash_find(exclude_table, lcname, fnname_len, &dummy) == FAILURE) {
                /* is not in hashtable, thus, function is not to be excluded */