summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2003-10-24 05:33:37 +0000
committerGreg Beaver <cellog@php.net>2003-10-24 05:33:37 +0000
commit01a3fdbb3a9a4776bf1f2cd7bc0f7dfb43affdc6 (patch)
tree7300949dc5f18d7750afc5f47912fcfbc7e1ff1f
parent4d349926ffed8d2cccf71967f2ebc767c657548e (diff)
downloadphp-git-01a3fdbb3a9a4776bf1f2cd7bc0f7dfb43affdc6.tar.gz
fixed #25174 Wrong handling of readlink() in OS/Guess.php
-rw-r--r--pear/OS/Guess.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/OS/Guess.php b/pear/OS/Guess.php
index c6852fef25..e34d9cf2a8 100644
--- a/pear/OS/Guess.php
+++ b/pear/OS/Guess.php
@@ -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);