logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pear-core /OS Guess.php: msg#00167

Subject: cvs: pear-core /OS Guess.php
cellog          Sun May 15 00:38:17 2005 EDT

  Modified files:              
    /pear-core/OS       Guess.php 
  Log:
  extend tweak to non-working detection
  
http://cvs.php.net/diff.php/pear-core/OS/Guess.php?r1=1.17&r2=1.18&ty=u
Index: pear-core/OS/Guess.php
diff -u pear-core/OS/Guess.php:1.17 pear-core/OS/Guess.php:1.18
--- pear-core/OS/Guess.php:1.17 Sun May 15 00:26:11 2005
+++ pear-core/OS/Guess.php      Sun May 15 00:38:16 2005
@@ -16,7 +16,7 @@
  * @author     Gregory Beaver <cellog@xxxxxxx>
  * @copyright  1997-2005 The PHP Group
  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
- * @version    CVS: $Id: Guess.php,v 1.17 2005/05/15 04:26:11 cellog Exp $
+ * @version    CVS: $Id: Guess.php,v 1.18 2005/05/15 04:38:16 cellog Exp $
  * @link       http://pear.php.net/package/PEAR
  * @since      File available since PEAR 0.1
  */
@@ -198,7 +198,7 @@
     function _detectGlibcVersion()
     {
         static $glibc = false;
-        if ($glibc) {
+        if ($glibc !== false) {
             return $glibc; // no need to run this multiple times
         }
         // Use glibc's <features.h> header file to
@@ -227,7 +227,7 @@
             }
         }
         if (!($major && $minor)) {
-            return '';
+            return $glibc = '';
         }
         return $glibc = "glibc{$major}.{$minor}";
     }




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>