1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00

fixed #25174 Wrong handling of readlink() in OS/Guess.php

This commit is contained in:
Greg Beaver
2003-10-24 05:33:37 +00:00
parent 4d349926ff
commit 01a3fdbb3a
+1 -1
View File
@@ -176,7 +176,7 @@ class OS_Guess
}
pclose($cpp);
unlink($tmpfile);
if (!($major && $minor) && file_exists('/lib/libc.so.6')) {
if (!($major && $minor) && is_link('/lib/libc.so.6')) {
// Let's try reading the libc.so.6 symlink
if (ereg('^libc-([.*])\.so$', basename(readlink('/lib/libc.so.6')), $matches)) {
list($major, $minor) = explode('.', $matches);