Browse Source

fix #25131, OS_Guess warnings

PEAR_1_4DEV
Greg Beaver 23 years ago
parent
commit
12f7e9eb4d
  1. 2
      pear/OS/Guess.php
  2. 2
      pear/package-PEAR.xml

2
pear/OS/Guess.php

@ -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))) {

2
pear/package-PEAR.xml

@ -41,6 +41,8 @@
<date>2003-08-??</date>
<state>stable</state>
<notes>
* Fixed #25131 - OS_Guess warnings on empty lines from
popen(&quot;/usr/bin/cpp $tmpfile&quot;, &quot;r&quot;);
* 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…
Cancel
Save