gwynne Sat, 25 Jul 2009 14:42:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286303
Log:
correctly match /pear2 as well as /pear for the use of PEAR semantics
Changed paths:
U SVNROOT/pre-commit
Modified: SVNROOT/pre-commit
===================================================================
--- SVNROOT/pre-commit 2009-07-22 15:10:15 UTC (rev 286302)
+++ SVNROOT/pre-commit 2009-07-25 14:42:05 UTC (rev 286303)
@@ -59,7 +59,7 @@
// Check commit against it
$exit_val = 0;
foreach ($commit_info['changed_paths'] as $changed_path => $path_actions) {
- if (strncmp($changed_path, "pear/", strlen("pear/")) === 0) {
+ if (strncmp($changed_path, "pear", strlen("pear")) === 0) {
$avail_lines = $pear_avail_db;
debug("Using PEAR avail.");
} else {
@@ -112,11 +112,11 @@
}
if ($exit_val) {
- if (strncmp($last_path, "pear/", strlen("pear/")) === 0) {
+ if (strncmp($last_path, "pear", strlen("pear")) === 0) {
$access_contact_email = '[email protected]';
- } else if (strncmp($last_path, "pecl/", strlen("pecl/")) === 0) {
+ } else if (strncmp($last_path, "pecl", strlen("pecl")) === 0) {
$access_contact_email = '[email protected]';
- } else if (strncmp($last_path, "phpdoc/", strlen("phpdoc/")) === 0) {
+ } else if (strncmp($last_path, "phpdoc", strlen("phpdoc")) === 0) {
$access_contact_email = '[email protected]';
} else {
$access_contact_email = '[email protected]';
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php