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
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);
+ settled_uri = url_info->path;
@@ -94,7 +94,12 @@ static yaf_session_t *yaf_session_instance(yaf_session_t *this_ptr) /* {{{ */ {
- if (property_info->offset != ZEND_WRONG_PROPERTY_OFFSET) {
+#if PHP_VERSION_ID < 70300
+ if (property_info->offset != ZEND_WRONG_PROPERTY_OFFSET)
+ if (IS_VALID_PROPERTY_OFFSET(property_info->offset))
zval *prop = OBJ_PROP(obj, property_info->offset);