nlopess         Wed Sep  5 17:20:46 2007 UTC

  Modified files:              
    /phpdoc/scripts/iniupdate   cvs-versions.php 
  Log:
  use file(, FILE_IGNORE_NEW_LINES) to ignore the newlines
  # thanks bjori for the info ;)
  
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/cvs-versions.php?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/scripts/iniupdate/cvs-versions.php
diff -u phpdoc/scripts/iniupdate/cvs-versions.php:1.8 
phpdoc/scripts/iniupdate/cvs-versions.php:1.9
--- phpdoc/scripts/iniupdate/cvs-versions.php:1.8       Wed Sep  5 17:12:23 2007
+++ phpdoc/scripts/iniupdate/cvs-versions.php   Wed Sep  5 17:20:46 2007
@@ -37,12 +37,12 @@
         `cvs -q log ChangeLog > .ChangeLog.log`;
     }
 
-    $log = file('.ChangeLog.log');
+    $log = file('.ChangeLog.log', FILE_SKIP_EMPTY_LINES|FILE_IGNORE_NEW_LINES);
     chdir('../..');
 
     do {
         $l = array_shift($log);
-        if (rtrim($l) === 'symbolic names:' || $l === NULL) {
+        if ($l === 'symbolic names:' || $l === NULL) {
             break;
         }
     } while (1);

Reply via email to