svn: /web/php-gcov/trunk/cron/ check_parameters.php
| From: | Felipe Pena | Date: | Thu, 16 Jun 2011 00:37:23 +0000 |
| Subject: | svn: /web/php-gcov/trunk/cron/ check_parameters.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11208@lists.php.net to get a copy of this message | ||
felipe Thu, 16 Jun 2011 00:37:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312199
Log:
- Missing changes
# Added 'p' to nullable args
# s/CVS/.svn/ on check for recursive scandir
Changed paths:
U web/php-gcov/trunk/cron/check_parameters.php
Modified: web/php-gcov/trunk/cron/check_parameters.php
===================================================================
--- web/php-gcov/trunk/cron/check_parameters.php 2011-06-16 00:29:19 UTC (rev 312198)
+++ web/php-gcov/trunk/cron/check_parameters.php 2011-06-16 00:37:23 UTC (rev 312199)
@@ -242,7 +242,7 @@
// nullable arguments
case '!':
- if (!in_array($last_char, array('a', 'C', 'f', 'h',
'o', 'O', 'r', 's', 't', 'z',
'Z'))) {
+ if (!in_array($last_char, array('a', 'C', 'f', 'h',
'o', 'O', 'p', 'r', 's', 't',
'z', 'Z'))) {
error("the '!' specifier cannot be applied to '$last_char'");
}
break;
@@ -297,7 +297,7 @@
function recurse($path)
{
foreach (scandir($path) as $file) {
- if ($file == '.' || $file == '..' || $file == 'CVS') continue;
+ if ($file == '.' || $file == '..' || $file == '.svn') continue;
$file = "$path/$file";
if (is_dir($file)) {