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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user