logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: pear-core /PEAR Common.php: msg#00134

Subject: cvs: pear-core /PEAR Common.php
cellog          Mon Aug 23 16:42:20 2004 EDT

  Modified files:              
    /pear-core/PEAR     Common.php 
  Log:
  fix analyzeSourceCode() in php5
  
http://cvs.php.net/diff.php/pear-core/PEAR/Common.php?r1=1.128&r2=1.129&ty=u
Index: pear-core/PEAR/Common.php
diff -u pear-core/PEAR/Common.php:1.128 pear-core/PEAR/Common.php:1.129
--- pear-core/PEAR/Common.php:1.128     Mon Aug 23 00:31:04 2004
+++ pear-core/PEAR/Common.php   Mon Aug 23 16:42:20 2004
@@ -17,7 +17,7 @@
 // |          Tomas V.V.Cox <cox@xxxxxxxxxxx>                             |
 // +----------------------------------------------------------------------+
 //
-// $Id: Common.php,v 1.128 2004/08/23 04:31:04 cellog Exp $
+// $Id: Common.php,v 1.129 2004/08/23 20:42:20 cellog Exp $
 
 require_once 'PEAR.php';
 require_once 'Archive/Tar.php';
@@ -1323,6 +1323,9 @@
         if (!function_exists("token_get_all")) {
             return false;
         }
+        if (!defined('T_DOC_COMMENT')) {
+            define('T_DOC_COMMENT', T_COMMENT);
+        }
         if (!$fp = @fopen($file, "r")) {
             return false;
         }
@@ -1428,6 +1431,7 @@
                 case T_VARIABLE:
                     $look_for = 0;
                     continue 2;
+                case T_DOC_COMMENT:
                 case T_COMMENT:
                     if (preg_match('!^/\*\*\s!', $data)) {
                         $lastphpdoc = $data;

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>