ext/tidy: Use RETURN_STR() instead of RETVAL_STR() + return;

This commit is contained in:
Gina Peter Banyard 2025-06-05 12:51:13 +01:00
parent 4fd91c6fa4
commit bf3d7d1f9a

View file

@ -1323,8 +1323,7 @@ PHP_FUNCTION(tidy_getopt)
optval = php_tidy_get_opt_val(obj->ptdoc, opt, &optt);
switch (optt) {
case TidyString:
RETVAL_STR((zend_string*)optval);
return;
RETURN_STR((zend_string*)optval);
case TidyInteger:
RETURN_LONG((zend_long)optval);