Skip to content

Commit 2c624e4

Browse files
committed
Fix test
1 parent 5f03c5d commit 2c624e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/ffi/tests/gh11934.phpt

+3-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ var_dump($target[0]);
137137

138138
echo "--- Existing C variables ---\n";
139139

140-
if (PHP_OS_FAMILY !== 'Windows') {
140+
if (PHP_OS_FAMILY === 'Linux') {
141141
$ffi = FFI::cdef(
142142
"int errno;",
143143
"libc.so.6"
@@ -149,7 +149,8 @@ if (PHP_OS_FAMILY !== 'Windows') {
149149
$ffi->errno = $source;
150150
var_dump($ffi->errno);
151151
} else {
152-
// Untested on Windows due to lack of libc.so.6
152+
// Untested on non-Linux due to lack of libc.so.6
153+
var_dump(0);
153154
var_dump(31);
154155
}
155156

0 commit comments

Comments
 (0)