mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix two warnings
This commit is contained in:
parent
96b1c2145c
commit
91a9569d85
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue