Merge pull request #68 from remicollet/issue-badtype

[-Wincompatible-pointer-types]
This commit is contained in:
Bob Weinand 2019-05-03 11:14:09 +02:00 committed by GitHub
commit b2e9d7d1e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2432,7 +2432,11 @@ int php_uv_cast_object(zval *readobj_zv, zval *writeobj, int type) {
ZVAL_LONG(writeobj, readobj->handle);
return SUCCESS;
} else {
#if PHP_VERSION_ID >= 80000
return zend_std_cast_object_tostring(readobj, writeobj, type);
#else
return zend_std_cast_object_tostring(readobj_zv, writeobj, type);
#endif
}
}