summaryrefslogtreecommitdiff
path: root/ext/curl/tests/curl_copy_handle_basic_006.phpt
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-07-25 22:20:18 +0000
committerJani Taskinen <jani@php.net>2009-07-25 22:20:18 +0000
commit0f6d8f05dc6cfa8e27a40f46a4152569d0d1d644 (patch)
tree6835cd358f92caf6356250fe7bb7cd7cb0986e3a /ext/curl/tests/curl_copy_handle_basic_006.phpt
parent4e1feb125b1c316cf77729465f9e16a88120990e (diff)
downloadphp-git-0f6d8f05dc6cfa8e27a40f46a4152569d0d1d644.tar.gz
- Fix tests to be more comptatible AND to test what they are supposed to test
Diffstat (limited to 'ext/curl/tests/curl_copy_handle_basic_006.phpt')
-rw-r--r--ext/curl/tests/curl_copy_handle_basic_006.phpt12
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/curl/tests/curl_copy_handle_basic_006.phpt b/ext/curl/tests/curl_copy_handle_basic_006.phpt
index 3026da81e0..d2374c7213 100644
--- a/ext/curl/tests/curl_copy_handle_basic_006.phpt
+++ b/ext/curl/tests/curl_copy_handle_basic_006.phpt
@@ -21,15 +21,17 @@ Rick Buitenman <rick@meritos.nl>
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
$copy = curl_copy_handle($ch);
- curl_close($ch);
-
- $curl_content = curl_exec($copy);
+
+ var_dump( curl_exec($ch) );
+ var_dump( curl_exec($copy) );
+
+ curl_close($ch); // can not close original handle before curl_exec($copy) since it causes char * inputs to be invalid (see also: http://curl.haxx.se/libcurl/c/curl_easy_duphandle.html)
curl_close($copy);
- var_dump( $curl_content );
?>
===DONE===
--EXPECTF--
*** Testing curl copy handle with User Agent ***
string(9) "cURL phpt"
-===DONE=== \ No newline at end of file
+string(9) "cURL phpt"
+===DONE===