if ($line === false
) { return false;
} return strpos(trim($line), '#define'
) !== false;
} function _fromGlibCTest() { $major = null;
$minor = null;
$tmpfile = System::
mktemp("glibctest"
);
$fp =
fopen($tmpfile, "w"
);
fwrite($fp, "#include <features.h>\n__GLIBC__ __GLIBC_MINOR__\n"
);
fclose($fp);
$cpp =
popen("/usr/bin/cpp
$tmpfile", "r"
);
while ($line =
fgets($cpp, 1024
)) { if ($line[0
] == '#' ||
trim($line) == ''
) { continue;
} if (list
($major,
$minor) =
explode(' ',
trim($line))) { break;
}