Commit Graph

1748 Commits

Author SHA1 Message Date
Zach Borboa 129013d778 Attempt to use token for release on protected branch 2023-06-26 18:02:14 -07:00
Zach Borboa c3d985b7c2 Merge pull request #795 from zachborboa/master
Add coding standards rule to error on long array syntax
2023-06-26 06:07:57 -07:00
Zach Borboa b921ac3c52 Merge branch 'master' into master 2023-06-26 04:10:29 -07:00
Zach Borboa f3573aca1b Merge pull request #793 from RobinvanderVliet/use-short-array-syntax
Use short array syntax
2023-06-26 04:08:25 -07:00
Zach Borboa 2f532ab2b8 Merge branch 'master' into use-short-array-syntax 2023-06-26 02:57:15 -07:00
Zach Borboa 50320065ce Add coding standards rule to error on long array syntax 2023-06-25 16:02:46 -07:00
Zach Borboa ed071d5670 Merge pull request #794 from zachborboa/master
Add PHP-CS-Fixer to check for unused imports
2023-06-24 20:02:55 -07:00
Zach Borboa 128a0c1ea2 Add PHP-CS-Fixer to check for unused imports 2023-06-24 19:33:48 -07:00
Robin van der Vliet c45f8e22de Use short array syntax 2023-06-23 19:50:18 +02:00
Robin van der Vliet c9ad23cf5c Increase uniqueness of Curl::id
Replace `uniqid` by `random_bytes` (#792)
2023-06-22 15:38:16 -07:00
Zach Borboa 319c1fc285 Rename progress example files to be curl-specific 2023-06-16 15:53:17 -07:00
github-actions[bot] 5672725591 Bump version: 9.17.0 → 9.17.1 9.17.1 2023-06-14 18:02:50 +00:00
Zach Borboa c56d787577 Fix coding standards errors 2023-06-13 21:04:42 -07:00
Zach Borboa 25840e5e75 Update homepage code example and use PrismJS for syntax highlighting 2023-06-13 20:34:47 -07:00
Zach Borboa 945c8c9aad Merge pull request #791 from zachborboa/master
Improve and add tests for Curl::fastDownload()
2023-06-13 18:48:50 -07:00
github-actions[bot] 505c09484d Bump version: 9.16.1 → 9.17.0 9.17.0 2023-06-13 18:02:54 +00:00
Zach Borboa 76e74fdc44 Improve and add tests for Curl::fastDownload() 2023-06-13 02:52:59 -07:00
Zach Borboa 0007b33746 Merge pull request #790 from zachborboa/dev
Make method to display curl option value public
2023-06-13 02:21:09 -07:00
Zach Borboa 2bb2f32087 Make method to display curl option value public 2023-06-12 20:27:16 -07:00
Zach Borboa a161bb660c Merge pull request #789 from zachborboa/cleanup
Add test server support for specifying which requests fail and succeed
2023-06-12 19:56:34 -07:00
Zach Borboa bbf1e1417b Add test server support for specifying which requests fail and succeed 2023-06-12 19:31:49 -07:00
github-actions[bot] 8223f13fce Bump version: 9.16.0 → 9.16.1 9.16.1 2023-06-12 18:02:52 +00:00
Zach Borboa eb97fa55d5 Merge pull request #788 from zachborboa/cleanup
Differentiate between internal options and user-set options
2023-06-12 06:20:26 -07:00
Zach Borboa 42a2062d6f Differentiate between internal options and user-set options 2023-06-11 19:52:58 -07:00
Zach Borboa f1daf125b5 Merge pull request #787 from zachborboa/master
Fix existing header overwritten after using MultiCurl::addCurl()
2023-06-09 06:15:29 -07:00
Zach Borboa 5427717469 Fix existing header overwritten after using MultiCurl::addCurl() 2023-06-08 19:18:32 -07:00
Zach Borboa 8217830458 Merge pull request #786 from zachborboa/cleanup
Cleanup
2023-06-03 08:37:49 -07:00
Zach Borboa fb2b6485d9 Fix duplicate methods when updating readme 2023-06-03 08:12:56 -07:00
Zach Borboa 06d21eaf02 Fix incorrect interpretation of newlines when updating readme 2023-06-03 08:06:36 -07:00
Zach Borboa c0e93daf27 Merge pull request #785 from zachborboa/cleanup
Create method to display a curl option value
2023-06-03 06:03:22 -07:00
Zach Borboa 4c4bc8952a Create method to display a curl option value 2023-06-03 05:14:35 -07:00
Zach Borboa 3a93c902a0 Merge pull request #784 from zachborboa/cleanup
Return JSON from the retry test server endpoint
2023-06-03 05:14:08 -07:00
Zach Borboa 1b2e2d446f Return JSON from the retry test server endpoint 2023-06-03 04:50:41 -07:00
github-actions[bot] 100a7f406d Bump version: 9.15.1 → 9.16.0 9.16.0 2023-05-25 18:02:49 +00:00
Zach Borboa 493d69de2c Merge pull request #783 from zachborboa/master
Graduate Curl::fastDownload()
2023-05-24 15:12:17 -07:00
github-actions[bot] aa1872beda Bump version: 9.15.0 → 9.15.1 9.15.1 2023-05-24 18:02:49 +00:00
Zach Borboa c37bb58a48 Make function public 2023-05-23 20:35:36 -07:00
Zach Borboa 2a409363f3 Clean up 2023-05-23 20:34:21 -07:00
Zach Borboa 645c1a4859 Merge pull request #782 from zachborboa/master
Fix PHP CodeSniffer errors
2023-05-23 18:17:39 -07:00
Zach Borboa ecba1623e7 Fix PHP CodeSniffer errors
FILE: ./src/Curl/Curl.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------------
 1688 | WARNING | Method name "_getCurlErrorCodeConstants" should not be prefixed with an underscore to indicate visibility
      |         | (PSR2.Methods.MethodDeclaration.Underscore)
 1707 | WARNING | Method name "_getCurlErrorCodeConstant" should not be prefixed with an underscore to indicate visibility
      |         | (PSR2.Methods.MethodDeclaration.Underscore)
 1721 | WARNING | Method name "_getCurlOptionCodeConstants" should not be prefixed with an underscore to indicate visibility
      |         | (PSR2.Methods.MethodDeclaration.Underscore)
 1745 | WARNING | Method name "_getEffectiveUrl" should not be prefixed with an underscore to indicate visibility
      |         | (PSR2.Methods.MethodDeclaration.Underscore)
 1755 | WARNING | Method name "_getRfc2616" should not be prefixed with an underscore to indicate visibility
      |         | (PSR2.Methods.MethodDeclaration.Underscore)
 1765 | WARNING | Method name "_getRfc6265" should not be prefixed with an underscore to indicate visibility
      |         | (PSR2.Methods.MethodDeclaration.Underscore)
 1775 | WARNING | Method name "_getTotalTime" should not be prefixed with an underscore to indicate visibility
      |         | (PSR2.Methods.MethodDeclaration.Underscore)
----------------------------------------------------------------------------------------------------------------------------------
2023-05-23 17:49:52 -07:00
github-actions[bot] a42bd9b7ba Bump version: 9.14.5 → 9.15.0 9.15.0 2023-05-22 18:02:53 +00:00
Zach Borboa c67b132a7b Merge pull request #781 from zachborboa/master
Update Curl::diagnose() to detect bit flags with negative values
2023-05-20 16:24:09 -07:00
Zach Borboa 1c270272c8 Update Curl::diagnose() to detect bit flags with negative values 2023-05-20 13:32:44 -07:00
Zach Borboa f4205712fc Merge pull request #780 from zachborboa/master
Run PHPCompatibility on PHP 7.2 and higher
2023-05-20 11:14:51 -07:00
Zach Borboa 2a73070caf Run PHPCompatibility on PHP 7.2 and higher
Error message:

++ phpcs_to_use=vendor/bin/phpcs
++ vendor/bin/phpcs --version
PHP_CodeSniffer version 3.7.2 (stable) by Squiz (http://www.squiz.net)
++ vendor/bin/phpcs --extensions=php '--ignore=*/vendor/*' --standard=tests/ruleset.xml -p -s .
W...........................................................  60 / 116 (52%)
........................................................     116 / 116 (100%)

FILE: ...me/runner/work/php-curl-class/php-curl-class/examples/custom.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 1 | WARNING | IMPORTANT: Please be advised that for the most
   |         | reliable PHPCompatibility results, PHP 7.2 or higher
   |         | should be used. Support for lower versions will be
   |         | dropped in the foreseeable future. You are currently
   |         | using PHP 7.0.33-65+ubuntu22.04.1+deb.sury.org+1.
   |         | Please upgrade your PHP installation to version 7.2 or
   |         | higher.
   |         |
   |         | To disable this notice, add
   |         | --exclude=PHPCompatibility.Upgrade.LowPHP to your
   |         | command or add <exclude
   |         | name="PHPCompatibility.Upgrade.LowPHP.BelowRecommended_7_2"/>
   |         | to your custom ruleset.
   |         |
   |         | Thank you for using PHPCompatibility!
   |         | (PHPCompatibility.Upgrade.LowPHP.BelowRecommended_7_2)
----------------------------------------------------------------------
2023-05-20 10:41:23 -07:00
Zach Borboa d5d3fd9f7b Merge pull request #779 from zachborboa/master
Display bit flags in use when calling Curl::diagnose()
2023-05-18 16:56:57 -07:00
Zach Borboa a304084a61 Display bit flags in use when calling Curl::diagnose()
This change attempts to determine which underlying constants were
bitmasked together to reach the resulting value passed to curl_setopt()
using Curl::setOpt().
2023-05-18 16:11:07 -07:00
github-actions[bot] 3e0a9ebff9 Bump version: 9.14.4 → 9.14.5 9.14.5 2023-05-16 18:02:43 +00:00
Zach Borboa 0ea79808d6 Merge pull request #778 from zachborboa/master
Handle missing content-type response header in Curl::diagnose()
2023-05-15 19:58:42 -07:00
Zach Borboa f7b216a3d9 Fix #777: Handle missing content-type response header in Curl::diagnose() 2023-05-15 19:33:59 -07:00