com php-src: Use new constant replace ugly trick: ext/standard/tests/streams/bug64433.phpt
| From: | Xinchen Hui | Date: | Wed, 03 Apr 2013 02:12:49 +0000 |
| Subject: | com php-src: Use new constant replace ugly trick: ext/standard/tests/streams/bug64433.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71833@lists.php.net to get a copy of this message | ||
Commit: 78a9489f6a7326dd0ce0c2baaf37c94a0a85f931
Author: Xinchen Hui <laruence@php.net> Wed, 3 Apr 2013 10:12:49 +0800
Parents: 37b20a1bc245c8673ef4f7575f83df8c9ed8b666
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=78a9489f6a7326dd0ce0c2baaf37c94a0a85f931
Log:
Use new constant replace ugly trick
Changed paths:
M ext/standard/tests/streams/bug64433.phpt
Diff:
diff --git a/ext/standard/tests/streams/bug64433.phpt b/ext/standard/tests/streams/bug64433.phpt
index a1bf219..87c1c7c 100644
--- a/ext/standard/tests/streams/bug64433.phpt
+++ b/ext/standard/tests/streams/bug64433.phpt
@@ -9,10 +9,7 @@ if(!$res) {
die("skip could not open cli server script");
}
-ob_start();
-phpinfo();
-$curlwrappers = preg_match("/with-curlwrappers/", ob_get_clean());
-if ($curlwrappers) {
+if (CURL_WRAPPERS_ENABLE) {
die("skip curl wrappers used");
}
?>