tony2001                Sun Sep 10 11:44:51 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/scripts/dev        check_parameters.php 
  Log:
  more improvements
  
  
http://cvs.php.net/viewvc.cgi/php-src/scripts/dev/check_parameters.php?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/scripts/dev/check_parameters.php
diff -u php-src/scripts/dev/check_parameters.php:1.1.2.2 
php-src/scripts/dev/check_parameters.php:1.1.2.3
--- php-src/scripts/dev/check_parameters.php:1.1.2.2    Sun Sep 10 11:26:53 2006
+++ php-src/scripts/dev/check_parameters.php    Sun Sep 10 11:44:51 2006
@@ -17,12 +17,12 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: check_parameters.php,v 1.1.2.2 2006/09/10 11:26:53 tony2001 Exp $ */
+/* $Id: check_parameters.php,v 1.1.2.3 2006/09/10 11:44:51 tony2001 Exp $ */
 
 
 define('REPORT_LEVEL', 2); // 0 reports less false-positives. up to level 5.
 define('VERSION', '5.2');  // minimum is 5.2
-define('PHPDIR', dirname(__FILE__) . '/../..');
+define('PHPDIR', realpath(dirname(__FILE__) . '/../..'));
 
 
 // be sure you have enough memory and stack for PHP. pcre will push the limits!
@@ -64,7 +64,12 @@
        global $current_file, $current_function, $line;
 
        if ($level <= REPORT_LEVEL) {
-               echo substr($current_file, strlen(PHPDIR)+1) . " [$line] 
$current_function : $str\n";
+               if (strpos($current_file,PHPDIR) === 0) {
+                       $filename = substr($current_file, strlen(PHPDIR)+1); 
+               } else {
+                       $filename = $current_file;
+               }
+               echo $filename , " [$line] $current_function : $str\n";
        }
 }
 
@@ -364,5 +369,5 @@
 }
 
 foreach ($dirs as $dir) {
-       recurse($dir);
+       recurse(realpath($dir));
 }

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

Reply via email to