[-Wincompatible-pointer-types]

This commit is contained in:
Remi Collet 2019-04-29 11:18:40 +02:00
parent 9d25abb408
commit 07e75b9b70

View File

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