Skip to content

Commit

Permalink
there is no zend_string_new here
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Jan 22, 2017
1 parent e94fe6c commit 9634704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ static inline zend_arg_info* uopz_copy_arginfo(zend_op_array *op_array, zend_arg
#if PHP_VERSION_ID >= 70200
if (ZEND_TYPE_IS_SET(old[it].type) && ZEND_TYPE_IS_CLASS(old[it].type)) {
info[it].type = ZEND_TYPE_ENCODE_CLASS(
zend_string_new(
zend_string_copy(
ZEND_TYPE_NAME(info[it].type)),
ZEND_TYPE_ALLOW_NULL(info[it].type));
}
#else
if (info[it].class_name)
info[it].class_name = zend_string_new(old[it].class_name);
info[it].class_name = zend_string_copy(old[it].class_name);
#endif
it++;
}
Expand Down

0 comments on commit 9634704

Please sign in to comment.