We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b903245 + 297051f commit 34e5ca6Copy full SHA for 34e5ca6
Tests/Caster/FFICasterTest.php
@@ -213,7 +213,7 @@ public function testCastNonTrailingCharPointer()
213
\FFI::memcpy($pointer, $actualMessage, $actualLength);
214
215
// Remove automatically addition of the trailing "\0" and remove trailing "\0"
216
- $pointer = \FFI::cdef()->cast('char*', \FFI::cast('void*', $pointer));
+ $pointer = \FFI::cdef()->cast('char*', \FFI::cdef()->cast('void*', $pointer));
217
$pointer[$actualLength] = "\x01";
218
219
$this->assertDumpMatchesFormat(<<<PHP
0 commit comments