php-src/ext/curl/tests
Adam Harvey aa7d3d8e6d Track created curl_slist structs by option so they can be updated in situ.
At present, when curl_setopt() is called with an option that requires the
creation of a curl_slist, we simply push the new curl_slist onto a list to be
freed when the curl handle is freed. This avoids a memory leak, but means that
repeated calls to curl_setopt() on the same handle with the same option wastes
previously allocated memory on curl_slist structs that will no longer be read.

This commit changes the zend_llist that was previously used to track the lists
to a HashTable keyed by the option number, which means that we can simply
update the hash table each time curl_setopt() is called.

Fixes bug #65458 (curl memory leak).
2013-08-19 12:01:04 -07:00
..
responder Fix curl_copy_handle_basic_008.phpt when display_errors is On 2011-12-08 18:57:01 +00:00
bug27023.phpt Fix test 2011-12-07 16:46:48 +00:00
bug45161.phpt Add/Fix SKIPIF sections of cURL tests 2009-06-11 21:11:20 +00:00
bug46711.phpt Add/Fix SKIPIF sections of cURL tests 2009-06-11 21:11:20 +00:00
bug46739.phpt The test for bug #46739 doesn't actually need the remote 2009-07-26 02:12:38 +00:00
bug48203_multi.phpt Fix this test to work with all version (even old) of libcurl 2011-11-22 08:29:26 +00:00
bug48203.phpt Fixed bug#54798 Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec 2011-09-08 14:37:18 +00:00
bug48207.phpt Fixed notice breaking the test. 2011-05-31 12:57:40 +00:00
bug48514.phpt - MFH: Fixed bug #48514 (cURL extension uses same resource name for simple and multi APIs) 2009-06-12 20:48:28 +00:00
bug52202.phpt Fixed bug #52202 (CURLOPT_PRIVATE gets corrupted). 2010-11-30 13:40:02 +00:00
bug52827.phpt Fix bug #52827 (cURL leaks handle and causes assertion error (CURLOPT_STDERR)). 2010-09-14 10:58:59 +00:00
bug54798.phpt Fix test to use PHP_CURL_HTTP_REMOTE_SERVER 2011-11-21 02:10:57 +00:00
bug55767.phpt Add a test and declare the local vars locally 2011-09-23 15:19:48 +00:00
bug61948-win32.phpt Fixed bug #62149 Test Bug - ext/curl/tests/bug61948 2012-05-25 10:44:59 +02:00
bug61948.phpt Fixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false) 2012-07-09 08:32:40 +08:00
bug62839.phpt Fixed Bug #63103 (ext\curl\tests\bug62839.phpt broken) 2012-09-18 10:46:58 +08:00
bug63363.phpt CURL >= 7.28.0 no longer support value 1 for CURLOPT_SSL_VERIFYHOST) 2012-12-21 19:10:55 -05:00
bug63795.phpt CURL >= 7.28.0 no longer support value 1 for CURLOPT_SSL_VERIFYHOST) 2012-12-21 19:10:55 -05:00
bug65458.phpt Track created curl_slist structs by option so they can be updated in situ. 2013-08-19 12:01:04 -07:00
curl_basic_001.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_002.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_003.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_004.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_005.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_006.phpt Remove executable permission on phpt 2012-10-10 10:27:49 +08:00
curl_basic_007.phpt Remove executable permission on phpt 2012-10-10 10:27:49 +08:00
curl_basic_008.phpt Remove executable permission on phpt 2012-10-10 10:27:49 +08:00
curl_basic_009.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_010.phpt Allow alternative curl output shown in several qa.php.net/reports logs 2012-02-06 23:14:47 +00:00
curl_basic_011.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_basic_012.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_013.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_014.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_015.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_016.phpt Pierre added certinfo to the curl info array, but that is 2009-11-23 14:43:52 +00:00
curl_basic_017.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_018.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_019.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_020.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_basic_021.phpt - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
curl_close_basic.phpt Fix cURL tests 2009-07-17 20:44:50 +00:00
curl_copy_handle_basic_001.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_copy_handle_basic_002.phpt Fixed issues when streams were closed before curl read/write from them, or cleaning 2011-09-12 09:16:04 +00:00
curl_copy_handle_basic_004.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_copy_handle_basic_005.phpt Fixed issues when streams were closed before curl read/write from them, or cleaning 2011-09-12 09:16:04 +00:00
curl_copy_handle_basic_006.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_copy_handle_basic_007.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_copy_handle_basic_008.phpt Fixed bug #60439curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION 2011-12-04 01:34:54 +00:00
curl_copy_handle_basic.phpt Test from 2009 testfest 2009-08-26 17:17:58 +00:00
curl_copy_handle_variation1.phpt Test from 2009 testfest 2009-08-26 17:17:58 +00:00
curl_copy_handle_variation2.phpt Test from 2009 testfest 2009-08-26 17:17:58 +00:00
curl_CURLOPT_READDATA.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_error_basic.phpt fix the test for curl 7.29.0+ 2013-02-19 09:04:06 +01:00
curl_file_deleted_before_curl_close.phpt Fixed issues when streams were closed before curl read/write from them, or cleaning 2011-09-12 09:16:04 +00:00
curl_ftp_pasv.phpt - Fixed bug #50756 (CURLOPT_FTP_SKIP_PASV_IP does not exist.) 2010-01-23 01:37:32 +00:00
curl_multi_close_basic.phpt Fix cURL tests 2009-07-17 20:44:50 +00:00
curl_multi_getcontent_basic3.phpt Fix test to remove dependancy over php.net 2011-11-22 18:50:57 +00:00
curl_multi_getcontent_error1.phpt curl_setopt() arg: using DIRECTORY_SEPARATOR rather then "/" to make windows tests pass too 2010-12-08 14:16:17 +00:00
curl_multi_getcontent_error2.phpt curl_setopt() arg: using DIRECTORY_SEPARATOR rather then "/" to make windows tests pass too 2010-12-08 14:16:17 +00:00
curl_multi_getcontent_error3.phpt curl_setopt() arg: using DIRECTORY_SEPARATOR rather then "/" to make windows tests pass too 2010-12-08 14:16:17 +00:00
curl_multi_getcontent_error4.phpt curl_setopt() arg: using DIRECTORY_SEPARATOR rather then "/" to make windows tests pass too 2010-12-08 14:16:17 +00:00
curl_multi_init_basic.phpt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_multi_segfault.phpt Fixed segfault due to libcurl connection caching 2012-12-22 19:03:24 -05:00
curl_multi_select_basic1.phpt Fix cURL tests 2009-07-17 20:44:50 +00:00
curl_setopt_array_basic.phpt Cleans up test file 2011-12-02 04:16:46 +00:00
curl_setopt_basic002.phpt Fixed issues when streams were closed before curl read/write from them, or cleaning 2011-09-12 09:16:04 +00:00
curl_setopt_basic003.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_setopt_basic004.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_setopt_CURLOPT_FOLLOWLOCATION_open_basedir.phpt Removed safe_mode 2010-04-26 23:53:30 +00:00
curl_setopt_CURLOPT_READFUNCTION.phpt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_setopt_error.phpt - Fix test 2010-08-06 23:01:32 +00:00
curl_testdata1.txt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_testdata2.txt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_version_error.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_version_variation1.phpt Update skipif message 2011-09-07 10:34:58 +00:00
curl_write_callback.phpt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_write_file.phpt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_write_return.phpt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_write_stdout.phpt - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
curl_writeheader_callback.phpt Update skipif message 2011-09-07 10:34:58 +00:00