Zach Borboa
3f4e06f242
Temporarily allow function to be underscore prefixed to hint at early access
2021-03-14 00:16:08 -05:00
Zach Borboa
af08135139
Fix flaky rate limit tests caused by inconsistent sleep times
2021-03-14 00:07:54 -05:00
Zach Borboa
cd42a47bd8
Make request duration more accurate
2021-03-13 23:30:24 -05:00
Zach Borboa
79e7ddafb5
Fix tests as curl_init() and curl_multi_init() can return an object
...
As of PHP 8.0.0, curl_init() and curl_multi_init() return an object
instead of a resource. Update the tests to pass when the curl init
functions return either an object or a resource.
2021-03-13 20:32:20 -05:00
Zach Borboa
118dc7339c
Fix phpunit configuration path when inside script directory
2021-03-13 20:09:20 -05:00
Philipp Keck
933e0bb76b
Fix close() under PHP8
...
Fixes #662
At least on some platforms, maybe always with PHP8, is_resource(curl_init())===false because it returns the new \CurlHandle type instead.
2021-03-13 18:23:09 -05:00
Zach Borboa
75adc83a5c
Add tests that expose the empty cookie jar after close bug
2021-03-13 18:18:15 -05:00
Zach Borboa
b27d86cd13
Add files to run php80 tests inside a docker container
2021-03-13 18:03:24 -05:00
Zach Borboa
eac149a259
Clean up
2021-03-13 17:37:47 -05:00
Zach Borboa
3406c09653
Remove unnecessary flush
...
Message:
Notice: ob_flush(): Failed to flush buffer. No buffer to flush in
./php-curl-class/tests/PHPCurlClass/server.php on line 288
2021-03-13 17:32:53 -05:00
Zach Borboa
23e95578f8
Use helper function to simplify calculating request statistics
2021-03-13 17:30:13 -05:00
Zach Borboa
e249df4d56
Change into script directory when running script
2021-03-13 11:09:15 -05:00
Zach Borboa
1c0bbeaee4
Use vendor phpcs when available
2021-03-13 09:15:47 -05:00
Zach Borboa
03eedeabd4
Use identical comparison operator
2021-03-12 22:00:36 -05:00
Zach Borboa
dbef40b16d
Clean up
2021-03-12 21:54:05 -05:00
Zach Borboa
c6fd8accfb
Allow method chaining indentation
2021-03-12 21:51:56 -05:00
Zach Borboa
4fad7d7081
Colorize invalid indentation message
2021-03-12 21:42:53 -05:00
Zach Borboa
780c55dd32
Clean up
2021-03-12 21:12:47 -05:00
Zach Borboa
f7ab8ed3ce
Include tests directory when checking for invalid indentation
2021-03-12 21:10:12 -05:00
Zach Borboa
e475432804
Move additional coding standards checks into separate script
2021-03-12 20:25:14 -05:00
Zach Borboa
78086f03ba
Move syntax checking to a separate script
2021-03-12 20:17:11 -05:00
Zach Borboa
3fb1838579
Clean up
2021-03-11 23:04:34 -05:00
Zach Borboa
ca1c6fb801
Temporarily make function private for now
2021-03-11 22:59:04 -05:00
harry
ff2a183c34
Added Curl::fastDownload() for faster downloads using multiple connections.
2021-03-11 22:54:41 -05:00
Zach Borboa
cf4082d03e
Use unique variables with list() to prevent unexpected results.
...
PHP Compatibility check for PHP_CodeSniffer error message:
FILE: php-curl-class/scripts/bump_major_version.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | list() will assign variable from left-to-right since PHP 7.0. Ensure all variables in list() are unique to prevent unexpected
| | results. (PHPCompatibility.Lists.AssignmentOrder.Affected)
---------------------------------------------------------------------------------------------------------------------------------------------
2021-03-05 09:16:56 -05:00
Zach Borboa
5afda350ea
Add link to troubleshooting guide on docs index page
2021-02-19 23:24:06 -05:00
Zach Borboa
23aae398b7
Add PHP 8.0 to continuous integration tests
2021-01-21 18:15:13 -08:00
Zach Borboa
9d4134b830
Use a helper function to access values of private class properties
2020-10-31 21:28:15 -07:00
Zach Borboa
a40cc77eb4
Bump version: 8.8.0 → 8.9.0
8.9.0
2020-10-31 20:47:32 -07:00
Zach Borboa
3d8e4c38c2
Allow passing an indexed array to MultiCurl::setHeaders()
2020-10-31 14:59:35 -07:00
Zach Borboa
bebefa431c
Consider CaseInsensitiveArray an associative array.
2020-10-31 12:32:19 -07:00
Zach Borboa
86ae2ce786
Fix ArrayUtil::isArrayAssoc() erroring with a CaseInsensitiveArray.
...
Error message:
array_keys() expects parameter 1 to be array, object given
2020-10-31 11:25:49 -07:00
Zach Borboa
37c605f9e4
Fix #651 : Allow passing an indexed array to Curl::setHeaders()
2020-10-30 21:52:43 -07:00
Zach Borboa
cea618a6c1
Update docblock with possible exceptions thrown
2020-10-30 21:32:43 -07:00
Zach Borboa
43f96a4c8b
Clean up
2020-10-27 19:05:58 -07:00
Zach Borboa
1c0f49423a
Merge pull request #650 from isecret/patch-1
...
examples fixed
2020-10-27 18:54:58 -07:00
Mao Wang
0982719743
update examples
2020-10-28 09:31:37 +08:00
Mao Wang
5a3a4cca9d
update examples
2020-10-28 09:31:03 +08:00
Mao Wang
0e513d3082
update examples
2020-10-28 09:28:02 +08:00
Zach Borboa
e5831f35e1
Add scripts for each PHP version container to run tests.
2020-05-22 20:51:01 -07:00
Zach Borboa
8f5a4604ec
Fix tar extract error due to HTTP redirect
2020-05-18 22:22:45 -07:00
Zach Borboa
25c37e8512
Fix missing rsync error: "sh: 2: rsync: not found"
2020-05-18 22:18:37 -07:00
Zach Borboa
f4c41cb4b7
Add scripts for attaching to running container
2020-05-18 22:16:57 -07:00
Zach Borboa
14317ca210
Fix error: "the input device is not a TTY"
2020-05-18 18:58:43 -07:00
Zach Borboa
877e5b1275
Display error message indicating why execution of tests stopped
2020-05-17 21:04:54 -07:00
Zach Borboa
be8cccc292
Stop execution of tests when a container step fails
2020-05-17 20:10:43 -07:00
Zach Borboa
cec296410a
Clean up
2020-05-17 18:53:13 -07:00
Zach Borboa
17c0697a4d
Update link to continuous integration
2020-05-17 15:32:39 -07:00
Zach Borboa
85c95b187c
Add rate limit test cases using uppercase letters for unit
2020-05-16 23:53:29 -07:00
Zach Borboa
b33bfb93ef
Clean up
2020-05-16 23:51:23 -07:00