cvs: php4(PHP_4_3) / run-tests.php
| From: | Derick Rethans | Date: | Wed, 11 Dec 2002 20:10:59 +0000 |
| Subject: | cvs: php4(PHP_4_3) / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17133@lists.php.net to get a copy of this message | ||
derick Wed Dec 11 15:10:59 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4 run-tests.php
Log:
- Make it also work when you press enter instead of typing 'y'
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.119.2.11 php4/run-tests.php:1.119.2.12
--- php4/run-tests.php:1.119.2.11 Wed Dec 11 11:49:27 2002
+++ php4/run-tests.php Wed Dec 11 15:10:57 2002
@@ -335,7 +335,7 @@
*/
/* Ask the user to provide an email address, so that QA team can contact the user */
- if (!strncasecmp($user_input, 'y', 1)) {
+ if (!strncasecmp($user_input, 'y', 1) || strlen(trim($user_input)) == 0) {
echo "Please enter your email address: ";
flush();
$fp = fopen("php://stdin", "r+");