Skip to content

Commit 91a9569

Browse files
committed
Fix two warnings
1 parent 96b1c21 commit 91a9569

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,12 +1388,11 @@ ZEND_FUNCTION(function_exists)
13881388
Creates an alias for user defined class */
13891389
ZEND_FUNCTION(class_alias)
13901390
{
1391-
char *class_name, *lc_name, *alias_name;
1391+
char *class_name, *alias_name;
13921392
zend_class_entry **ce;
13931393
int class_name_len, alias_name_len;
13941394
int found;
13951395
zend_bool autoload = 1;
1396-
ALLOCA_FLAG(use_heap)
13971396

13981397
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &class_name, &class_name_len, &alias_name, &alias_name_len, &autoload) == FAILURE) {
13991398
return;

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3985,7 +3985,7 @@ static int zend_traits_copy_functions(zend_function *fn TSRMLS_DC, int num_args,
39853985
}
39863986
}
39873987

3988-
lcname = hash_key->arKey;
3988+
lcname = (char *) hash_key->arKey;
39893989

39903990
if (exclude_table == NULL || zend_hash_find(exclude_table, lcname, fnname_len, &dummy) == FAILURE) {
39913991
/* is not in hashtable, thus, function is not to be excluded */

0 commit comments

Comments
 (0)