mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
fix #25131, OS_Guess warnings
This commit is contained in:
parent
1fb9d4896a
commit
12f7e9eb4d
@ -167,7 +167,7 @@ class OS_Guess
|
||||
$cpp = popen("/usr/bin/cpp $tmpfile", "r");
|
||||
$major = $minor = 0;
|
||||
while ($line = fgets($cpp, 1024)) {
|
||||
if ($line{0} == '#') {
|
||||
if ($line{0} == '#' || trim($line) == '') {
|
||||
continue;
|
||||
}
|
||||
if (list($major, $minor) = explode(' ', trim($line))) {
|
||||
|
@ -41,6 +41,8 @@
|
||||
<date>2003-08-??</date>
|
||||
<state>stable</state>
|
||||
<notes>
|
||||
* Fixed #25131 - OS_Guess warnings on empty lines from
|
||||
popen("/usr/bin/cpp $tmpfile", "r");
|
||||
* Fixed #25117 - MD5 checksum should be case-insensitive
|
||||
* Fixed static calls to PEAR error-handling methods in classes (Greg)
|
||||
* Added ability to use a static method callback for error-handling, and removed
|
||||
|
Loading…
Reference in New Issue
Block a user