cvs: php-src(PHP_5_2) / run-tests.php
| From: | Ilia Alshanetsky | Date: | Mon, 17 Jul 2006 03:57:31 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39293@lists.php.net to get a copy of this message | ||
iliaa Mon Jul 17 03:57:31 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src run-tests.php
Log:
Don't use regex where none is needed.
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.226.2.37.2.4&r2=1.226.2.37.2.5&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.37.2.4 php-src/run-tests.php:1.226.2.37.2.5
--- php-src/run-tests.php:1.226.2.37.2.4 Wed May 24 13:28:59 2006
+++ php-src/run-tests.php Mon Jul 17 03:57:31 2006
@@ -23,7 +23,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.226.2.37.2.4 2006/05/24 13:28:59 dmitry Exp $ */
+/* $Id: run-tests.php,v 1.226.2.37.2.5 2006/07/17 03:57:31 iliaa Exp $ */
/* Sanity check to ensure that pcre extension needed by this script is available.
* In the event it is not, print a nice error message indicating that this script will
@@ -397,7 +397,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo '$Revision: 1.226.2.37.2.4 $'."\n";
+ echo '$Revision: 1.226.2.37.2.5 $'."\n";
exit(1);
default:
echo "Illegal switch '$switch' specified!\n";
@@ -768,7 +768,7 @@
$url_bits = parse_url(QA_SUBMISSION_PAGE);
if (empty($url_bits['port'])) $url_bits['port'] = 80;
- $data = "php_test_data=" . urlencode(base64_encode(preg_replace("/[\\x00]/",
"[0x0]", $data)));
+ $data = "php_test_data=" . urlencode(base64_encode(str_replace("[\\x00]",
"[0x0]", $data)));
$data_length = strlen($data);
$fs = fsockopen($url_bits['host'], $url_bits['port'], $errno, $errstr, 10);