Commit:    5ef46fe43c25996a8fd6eb8c513e4114569d79b6
Author:    Davey Shafik <m...@daveyshafik.com>         Mon, 28 May 2012 
06:18:44 -0400
Parents:   e2ebe6ce4ed9b149143949008f930007dfcb855f
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=5ef46fe43c25996a8fd6eb8c513e4114569d79b6

Log:
Fix boolean casting and whitespace (@dsp / #68)

Bugs:
https://bugs.php.net/68

Changed paths:
  M  run-tests.php


Diff:
diff --git a/run-tests.php b/run-tests.php
index 4af9a4f..753e1dd 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -311,7 +311,7 @@ VALGRIND    : " . ($leak_check ? $valgrind_header : 'Not 
used') . "
 define('PHP_QA_EMAIL', 'qa-repo...@lists.php.net');
 define('QA_SUBMISSION_PAGE', 'http://qa.php.net/buildtest-process.php');
 define('QA_REPORTS_PAGE', 'http://qa.php.net/reports');
-define('TRAVIS_CI' , !!getenv('TRAVIS_PHP_VERSION')); 
+define('TRAVIS_CI' , (bool) getenv('TRAVIS_PHP_VERSION'));
 
 function save_or_mail_results()
 {
@@ -349,9 +349,9 @@ function save_or_mail_results()
                        }
 
                        /* Ask the user to provide an email address, so that QA 
team can contact the user */
-            if (TRAVIS_CI) {
-                $user_email = 'travis at php dot net';
-            } elseif (!strncasecmp($user_input, 'y', 1) || 
strlen(trim($user_input)) == 0) {
+                       if (TRAVIS_CI) {
+                               $user_email = 'travis at php dot net';
+                       } elseif (!strncasecmp($user_input, 'y', 1) || 
strlen(trim($user_input)) == 0) {
                                echo "\nPlease enter your email address.\n(Your 
address will be mangled so that it will not go out on any\nmailinglist in plain 
text): ";
                                flush();
                                $user_email = trim(fgets($fp, 1024));


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

Reply via email to