summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/curl/tests/curl_share_close_basic001.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/curl/tests/curl_share_close_basic001.phpt b/ext/curl/tests/curl_share_close_basic001.phpt
new file mode 100644
index 0000000000..8addd5de4e
--- /dev/null
+++ b/ext/curl/tests/curl_share_close_basic001.phpt
@@ -0,0 +1,19 @@
+--TEST--
+curl_share_close basic test
+--SKIPIF--
+<?php if( !extension_loaded( 'curl' ) ) print 'skip'; ?>
+--FILE--
+<?php
+
+$sh = curl_share_init();
+//Show that there's a curl_share resource
+var_dump($sh);
+
+curl_share_close($sh);
+//Show that resource is no longer a curl_share, and is therefore unusable and "closed"
+var_dump($sh);
+
+?>
+--EXPECTF--
+resource(%d) of type (curl_share)
+resource(%d) of type (Unknown) \ No newline at end of file