]> granicus.if.org Git - php/commitdiff
MFH #25174
authorGreg Beaver <cellog@php.net>
Fri, 24 Oct 2003 05:34:16 +0000 (05:34 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 24 Oct 2003 05:34:16 +0000 (05:34 +0000)
pear/OS/Guess.php

index c6852fef2576031dabb78938613ce2a383ed7c75..e34d9cf2a8d13de84edb4dcbc8dfbf8e29d2c2ae 100644 (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);