We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This was found while implementing the Raylib::updateCamera() method. The snippet below can reproduce the issue:
Raylib::updateCamera()
public function updateCamera(Types\Camera3D $camera): void { $cdata = FFI::addr($camera->toCData($this->ffi)); $this->ffi->UpdateCamera($cdata); // ... } public function getAddr(\FFI\CData $cdata): \FFI\CData { return FFI::addr($cdata); }
If $cdata = FFI::addr($camera->toCData($this->ffi)); is replaced with $cdata = $this->getAddr($camera->toCData($this->ffi)); PHP will segfault.
$cdata = FFI::addr($camera->toCData($this->ffi));
$cdata = $this->getAddr($camera->toCData($this->ffi));
The text was updated successfully, but these errors were encountered:
nawarian
No branches or pull requests
This was found while implementing the
Raylib::updateCamera()
method. The snippet below can reproduce the issue:If
$cdata = FFI::addr($camera->toCData($this->ffi));
is replaced with$cdata = $this->getAddr($camera->toCData($this->ffi));
PHP will segfault.The text was updated successfully, but these errors were encountered: