Sammy Kaye Powers
478f119ab9
Update copyright headers to 2017
2017-01-04 11:14:55 -06:00
Mitch Hagstrand
2d51267c07
Makes the sapi web server and curl tests more reliable
...
1. Increased the time for the sapi/cli/tests/php_cli_server.inc to accept connections.
2. sapi/cli/tests/php_cli_server.inc has errors messages and a `stop` function.
3. bug67429.phpt uses the `stop` function to shutdown the webserver before starting a new one.
4. Removed ext/curl/tests/bug48203_multi-win32.phpt test now that ext/curl/tests/bug48203_multi.phpt
runs on Windows also.
2016-12-27 21:52:05 +01:00
Mitch Hagstrand
92678d1a83
Fixes the curl tests to be more reliable in Travis CI
...
1. Increases the amount of time for the PHP built-in server to accept a connection
2. Outputs an error if the PHP built-in server fails
3. In bug48203_multi.phpt the test no longer starts and stops multiple PHP built-in servers
2016-12-27 21:52:05 +01:00
dedal.qq
7f29e7c678
Interpretation of curl_setopt values for boolean parameters
2016-12-25 22:32:49 -08:00
Anatol Belski
8e209d0435
fix test
2016-12-04 17:28:43 +01:00
Anatol Belski
2252d4e59d
fork tests
2016-12-01 14:52:18 +01:00
Stanislav Malyshev
f42cbd749c
Fix bug #73147 : Use After Free in PHP7 unserialize()
...
(cherry picked from commit 0e6fe3a4c9
)
2016-10-12 17:51:15 +02:00
Christoph M. Becker
44968927d7
Add CURLE_SSL_PINNEDPUBKEYNOTMATCH
...
This error constant is returned on key mismatch when CURLOPT_PINNEDPUBLICKEY
is used. As the option had been introduced in PHP 7.0.7, it makes sense to
also add the related error constant to PHP 7.0+.
Cf. <https://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html >.
2016-09-15 12:20:19 +02:00
Anatol Belski
2004585d03
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
ensure null termination
2016-08-29 21:13:39 +02:00
Anatol Belski
d787b0ea13
ensure null termination
2016-08-29 21:03:03 +02:00
Stanislav Malyshev
1cd6bc6463
Fix for bug #72807 - do not produce strings with negative length
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
72dbb7f416
Fix bug #72674 - check both curl_escape and curl_unescape
2016-08-03 00:58:55 -07:00
Pierrick Charron
bf37b97d9c
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/curl/interface.c
2016-07-27 23:36:22 -04:00
Pierrick Charron
30a5ed3a79
Fixed bug #71929 (CURLINFO_CERTINFO data parsing error).
2016-07-27 23:30:20 -04:00
Pierrick Charron
31ed322b06
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-26 19:20:12 -04:00
Pierrick Charron
24d8f6ed7c
Fixed bug #71709
...
When curl_setopt is called with an empty slist as value, we should
not add the empty slist to the list of slist to free.
2016-07-26 18:50:15 -04:00
Stanislav Malyshev
2ca8d85dd4
Fix bug #72541 - size_t overflow lead to heap corruption
2016-07-12 22:59:19 -07:00
Julien Pauli
78d5783b62
Backported bug #71144 (Segmentation fault when using cURL with ZTS)
2016-07-08 14:58:56 +02:00
Anatol Belski
8c74f03c10
fix test
2016-04-29 14:30:19 +02:00
Pierrick Charron
3c92f113e4
Expose some of the new curl constants to PHP userspace
2016-04-29 14:19:55 +02:00
Pierrick Charron
a2d78d1a5f
Fixed bug #68658 (Define CURLE_SSL_CACERT_BADFILE)
2016-04-23 22:55:00 -04:00
Pierrick Charron
043ce195c6
Fix cURL test to use local server instead of google
2016-04-23 18:37:55 -04:00
Dominic Luechinger
02766d0180
Adds new curl option CURLOPT_SSL_VERIFYSTATUS to enable OCSP verification
2016-04-16 18:30:19 +02:00
Xinchen Hui
ead0dfc3c9
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Update NEWS for efacdc3
FIX #71831 : CURLOPT_NOPROXY applied as long instead of string
2016-03-21 16:43:55 +08:00
Michael Sierks
efacdc3511
FIX #71831 : CURLOPT_NOPROXY applied as long instead of string
...
The CURLOPT_NOPROXY option value is converted to a long before
being applied as a curl option. This causes the option to have
no effect. This patch changes this conversion to a string.
2016-03-18 07:29:01 -05:00
Nikita Popov
dea2e1bc64
Merge branch 'PHP-5.6' into PHP-7.0
2016-03-01 23:32:47 +01:00
mpyw
0bbea60524
Fix bug #71694
...
Exports contants CURLM_ADDED_ALREADY.
2016-03-01 23:31:58 +01:00
Stanislav Malyshev
9afb29aa68
Remove TSRMLS_* from code, they are not used anymore
2016-02-17 22:44:05 -08:00
Leigh
3ef57f8d5d
Fixed memory leak in curl_getinfo()
...
The "v ? v" in the CAASTR macro caused zend_string_copy to be
called twice
2016-02-08 11:36:14 +00:00
Xinchen Hui
d645706547
Online test
2016-02-05 19:56:23 +08:00
Xinchen Hui
095096c7ab
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/curl/interface.c
2016-02-05 19:51:33 +08:00
Xinchen Hui
5fdfab743d
Fixed bug #71523 (Copied handle with new option CURLOPT_HTTPHEADER crashes while curl_multi_exec)
2016-02-05 19:49:26 +08:00
Antony Dovgal
3a2c9e6e1d
fix build
...
sorry about that =\
2016-02-03 18:03:28 +03:00
Antony Dovgal
52e120fa90
use correct element size, avoid reading stack
2016-02-03 15:14:10 +03:00
Anatol Belski
1fb763ccab
Fixed bug #71227 Can't compile php_curl statically
2016-01-07 18:55:05 +01:00
Anatol Belski
42a145273c
add SKIPIF condition
2016-01-07 17:54:26 +01:00
Lior Kaplan
ed35de784f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Happy new year (Update copyright to 2016)
2016-01-01 19:48:25 +02:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Xinchen Hui
2453a48ab5
Fixed bug #71225 (curl_setopt() fails to set CURLOPT_POSTFIELDS with reference to CURLFile)
2015-12-26 22:55:38 -08:00
Xinchen Hui
8f9af36da3
Fixed bug #71144 (Sementation fault when using cURL with ZTS)
2015-12-19 00:29:19 +08:00
Xinchen Hui
512498d083
Fixed test skip
2015-12-19 00:19:21 +08:00
Xinchen Hui
241e340f78
Make these tests fail faster, Thanks to GFW
2015-10-29 15:01:43 +08:00
Davey Shafik
9ec6a44c5e
Add CURLPIPE_* constants to properly expose HTTP/2 multiplexing
2015-09-02 17:16:43 +12:00
Xinchen Hui
4df6f26442
Fixed bug #70330 (Segmentation Fault with multiple "curl_copy_handle")
2015-08-23 13:01:47 +08:00
Pierrick Charron
fb37da2a48
Fixed Bug #69998 curl multi leaking memory
...
Fix the pointer address passed to the comparator and call
zend_list_delete instead of zend_list_close to avoid closing
the resource if still used.
2015-08-01 14:55:00 -04:00
Xinchen Hui
6c0feb0665
Fixed bug #70163 (curl_setopt_array() type confusion)
2015-07-30 13:40:59 +08:00
Anatol Belski
9db46a392b
remove #ifdef
2015-07-14 00:12:35 +02:00
Anatol Belski
b19aea3742
remove comment, it's not right
2015-07-13 23:43:43 +02:00
Anatol Belski
cefd010739
Fixed bug #70065 curl_getinfo() returns corrupted values
2015-07-13 21:47:42 +02:00
Dmitry Stogov
53403fe56d
Get rid of ZVAL_ZVAL() macro usages. Replace them with more clear and optimal equialent sequences.
2015-07-01 02:05:21 +03:00