diff options
author | Stanislav Malyshev <stas@php.net> | 2014-11-23 17:21:20 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2014-11-23 17:21:20 -0800 |
commit | fa76fa8e3255842ec424da75f6dc50d5ccfaffaf (patch) | |
tree | 7c3c6decfe01b984e287f95fdaca29b4418674e5 /ext/curl | |
parent | 5351ecbfca18a86b44e5cadef67a2d6fc153a907 (diff) | |
parent | 17759439d771f31cf742e8c6ad78d1a8c6b83294 (diff) | |
download | php-git-fa76fa8e3255842ec424da75f6dc50d5ccfaffaf.tar.gz |
Merge branch 'pull-request/863' into PHP-5.5
* pull-request/863:
Test PHP Init Fail Without Params
Diffstat (limited to 'ext/curl')
-rw-r--r-- | ext/curl/tests/curl_multi_init_param.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/curl/tests/curl_multi_init_param.phpt b/ext/curl/tests/curl_multi_init_param.phpt new file mode 100644 index 0000000000..e7848976aa --- /dev/null +++ b/ext/curl/tests/curl_multi_init_param.phpt @@ -0,0 +1,27 @@ +--TEST-- +Test curl_multi_init() fail if any parameter is passed +--CREDITS-- +Paulo Eduardo <pauloelr [at] gmail [dot] com> +#testfest SP 2014 +--SKIPIF-- +<?php if (!extension_loaded("curl")) print "skip"; ?> +--FILE-- +<?php +/* Prototype : resource curl_multi_init(void) + * Description : Returns a new cURL multi handle + * Source code : ext/curl/multi.c + * Test documentation: http://wiki.php.net/qa/temp/ext/curl + */ + +// start testing + +//create the multiple cURL handle +$mh = curl_multi_init('test'); +var_dump($mh); + +?> +===DONE=== +--EXPECTF-- +Warning: curl_multi_init() expects exactly 0 parameters, %d given in %s on line %d +NULL +===DONE=== |