mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
Prevents refcounting issues.
This commit is contained in:
2
testdata/integration/callable.go
vendored
2
testdata/integration/callable.go
vendored
@@ -58,7 +58,7 @@ func (p *Processor) Transform(input *C.zend_string, callback *C.zval) unsafe.Poi
|
||||
|
||||
resultStr, ok := callResult.(string)
|
||||
if !ok {
|
||||
return unsafe.Pointer(input)
|
||||
return frankenphp.PHPString(input, false)
|
||||
}
|
||||
|
||||
return frankenphp.PHPString(resultStr, false)
|
||||
|
||||
Reference in New Issue
Block a user