Fix build with PHP 7.3+. https://github.com/laruence/yaf/commit/931dc56c7a53c388c21d679ae10dfe0b245aed32 --- requests/yaf_request_http.c.orig +++ requests/yaf_request_http.c @@ -96,9 +96,14 @@ yaf_request_t *yaf_request_http_instance(yaf_request_t *this_ptr, zend_string *r * only use url path */ if (strncasecmp(Z_STRVAL_P(uri), "http", sizeof("http") - 1) == 0) { php_url *url_info = php_url_parse(Z_STRVAL_P(uri)); +#if PHP_VERSION_ID < 70300 if (url_info && url_info->path) { settled_uri = zend_string_init(url_info->path, strlen(url_info->path), 0); } +#else + settled_uri = url_info->path; + url_info->path = NULL; +#endif php_url_free(url_info); } else { char *pos = NULL; --- yaf_session.c.orig +++ yaf_session.c @@ -94,7 +94,12 @@ static yaf_session_t *yaf_session_instance(yaf_session_t *this_ptr) /* {{{ */ { zval_ptr_dtor(&member); - if (property_info->offset != ZEND_WRONG_PROPERTY_OFFSET) { +#if PHP_VERSION_ID < 70300 + if (property_info->offset != ZEND_WRONG_PROPERTY_OFFSET) +#else + if (IS_VALID_PROPERTY_OFFSET(property_info->offset)) +#endif + { zval *prop = OBJ_PROP(obj, property_info->offset); ZVAL_COPY(prop, sess); }