static inline void prepare_rfc5988(zval *zv TSRMLS_DC)
{
	if (Z_TYPE_P(zv) != IS_STRING) {
		zval_dtor(zv);
		ZVAL_EMPTY_STRING(zv);
	}
}

The product does not correctly convert an object, resource, or structure from one type to a different type.