Skip to content

Commit 7ceb485

Browse files
committed
Prevents refcounting issues.
1 parent f5a9bc3 commit 7ceb485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testdata/integration/callable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (p *Processor) Transform(input *C.zend_string, callback *C.zval) unsafe.Poi
5858

5959
resultStr, ok := callResult.(string)
6060
if !ok {
61-
return unsafe.Pointer(input)
61+
return frankenphp.PHPString(input, false)
6262
}
6363

6464
return frankenphp.PHPString(resultStr, false)

0 commit comments

Comments
 (0)