Skip to content

Make C functions returning "void" to return PHP "null"#10579

Merged
dstogov merged 1 commit intophp:masterfrom
dstogov:ffi_return_void
Feb 14, 2023
Merged

Make C functions returning "void" to return PHP "null"#10579
dstogov merged 1 commit intophp:masterfrom
dstogov:ffi_return_void

Conversation

@dstogov
Copy link
Member

@dstogov dstogov commented Feb 13, 2023

In PHP-8.2 and below we by mistake returned "object(FFI\CData:void)#2 (0) {}". We decided not to fix this in PHP-8.2 and below to avoid BC breaks.

In PHP-2.0 and below we by mistake returned "obcect(FFI\CData:void)#2 (0) {}".
We decided not to fix this in PHP-2.0 and below to aboid BC breaks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant