ext-php-rs
ext-php-rs copied to clipboard
Add zval type coersion
Zval::string() will no longer attempt to convert a long into a string. Instead, this is done through the new function on the FromZval trait: from_zval_coerce, which broadly follows PHP's type juggling rules.
By default, downstream types do not have to implement this function, as its default is to call from_zval on the same type.