Skip to content

Commit

Permalink
Issue zephir-lang#251: fix for PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Apr 9, 2017
1 parent d07f981 commit 2f4fa61
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions kernels/ZendEngine3/fcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,6 @@ int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, zephir_
zephir_fcall_cache_entry *temp_cache_entry = NULL;
int reload_cache = 1, i;

#if PHP_VERSION_ID < 70100
zend_class_entry *old_scope;
old_scope = EG(scope);
#endif

assert(obj_ce || !object_pp);
ZVAL_UNDEF(&local_retval_ptr);

Expand All @@ -199,12 +194,6 @@ int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, zephir_
return FAILURE;
}

if (obj_ce) {
#if PHP_VERSION_ID < 70100
EG(scope) = obj_ce;
#endif
}

if ((!cache_entry || !*cache_entry) && zephir_globals_ptr->cache_enabled) {
if (cache_slot > 0) {
if (zephir_globals_ptr->scache[cache_slot]) {
Expand Down Expand Up @@ -309,10 +298,6 @@ int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, zephir_
efree(p);
#endif

#if PHP_VERSION_ID < 70100
EG(scope) = old_scope;
#endif

/* Skip caching IF:
* call failed OR there was an exception (to be safe) OR cache key is not defined OR
* fcall cache was deinitialized OR we have a slot cache
Expand Down

0 comments on commit 2f4fa61

Please sign in to comment.