mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
Merge pull request #68 from remicollet/issue-badtype
[-Wincompatible-pointer-types]
This commit is contained in:
commit
b2e9d7d1e8
4
php_uv.c
4
php_uv.c
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user