Skip to content

Commit

Permalink
Fix sw_zend_is_callable_at_frame() (#3868)
Browse files Browse the repository at this point in the history
* Fix sw_zend_is_callable_at_frame()

* Require PHP 8.0.1
  • Loading branch information
twose authored Nov 22, 2020
1 parent 319bdee commit 9ab8f1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ext-src/php_swoole.h
Original file line number Diff line number Diff line change
Expand Up @@ -912,10 +912,11 @@ static sw_inline zend_bool sw_zend_is_callable_at_frame(zval *zcallable, zval *z
{
zend_string *name;
zend_bool ret;
#if PHP_VERSION_ID < 80000
#if PHP_VERSION_ID < 80001
ret = zend_is_callable_ex(zcallable, zobject ? Z_OBJ_P(zobject) : NULL, check_flags, &name, fci_cache, error);
#else
ret = zend_is_callable_at_frame(zcallable, zobject ? Z_OBJ_P(zobject) : NULL, frame, check_flags, &name, fci_cache, error);
ret = zend_is_callable_at_frame(zcallable, zobject ? Z_OBJ_P(zobject) : NULL, frame, check_flags, fci_cache, error);
name = zend_get_callable_name_ex(zcallable, zobject);
#endif
if (callable_name)
{
Expand Down

0 comments on commit 9ab8f1d

Please sign in to comment.