15 Commits
Author SHA1 Message Date
Dengke Tang 46e0ca0c81 support cross version phpunit (#92) 2023-03-09 16:44:10 -08:00
Justin Boswell 0af673491a Removed FFI support (#45)
* Removed FFI support

* run_tests and ci-test.sh should never have differed. Fixing now

* run_tests can now update composer
2021-08-17 19:06:14 -07:00
Justin Boswell 8d76d4fac3 Added logging support from aws-crt-ffi (#42)
* Added logging support from aws-crt-ffi

* Updated to aws-crt-ffi v0.2.1
2021-08-03 09:25:52 -07:00
Justin Boswell 92724b8d51 Implemented SigV4A (#40)
* Implemented should_sign_header callback

* Added SigV4A to SigningAlgorithm

* Added SigV4A test

* Added debugging info to README

* Fixed memory leak from argument vectors

* Fixed memory leak of stream read buffers

* Added support for callables as option values

* Added should_sign_header support and test

* Fixed ELG type bug exposed by aws-crt-ffi change

* Updated to aws-crt-ffi v0.2.0
2021-07-28 12:54:37 -07:00
Justin BoswellandItamar Levy-Or ebfb91f562 Crc32 (#31)
* broken

* crc tests

* ffi changes

* large buffer test

* ffi cmake fix

* formatting

* laws-checksums config.m4

* broken

* crc tests

* ffi changes

* large buffer test

* ffi cmake fix

* formatting

* laws-checksums config.m4

* Fixed aws-crt-ffi after rebase of main

* Regenerated awscrt_arginfo.h

* merge fix

* Fixed arginfo

* try forcing memory limit higher

* mem_limit set

* newline

Co-authored-by: Itamar Levy-Or <[email protected]>
2021-06-18 18:04:56 -04:00
Justin Boswell f6f9a6b349 Restored FFI to working order (#28)
* Restored FFI to working order

* Disabled incompatible tests, fixed string conversion

* Use extension_loaded instead of checking PHP version

* Added better checks for FFI

* Do not build FFI deps if no FFI is present
2021-06-16 11:26:31 -07:00
Justin Boswell d2546e616d Only shim expectException if necessary (#27)
* Only shim expectException if necessary

* Added missing entries to gitignore
2021-06-08 09:56:32 -07:00
Justin Boswell 7d47316a7d Implemented async callbacks to PHP regardless of thread model, Sigv4 signing (#24)
* Updated to get latest aws-crt-ffi

* Added implementation for signing_result

* Added main thread queue and callback queueing to signing process

* Updated to get support for date on signing_config_aws

* added date support to SigningConfigAWS, fixed up reference issues on http message signing

* Broke C code into separate files, moved common stuff to php_aws_crt.h

* Use a unity build to make PHP do the right thing with our lib

* Updated aws-crt-ffi to v0.1.3 to get sigv4 changes

* Added CRT::isAvailable for safe runtime detection of CRT

* Fixed up test resource safety, added tests to prove it

* Added CI jobs for every version of PHP on linux (#26)
2021-06-08 00:34:42 +00:00
Justin Boswell a99fdeb9d3 Added bindings for Signable, SigningConfig, Signing (#23)
* Added bindings for Signable, SigningConfig, Signing

* Fixed PHP5.6 argument vector madness

* Added SigningConfigAWS implementation and lifetime tests

* Updated .gitignore

* Added impl for Signing::signRequestAws(), laid out sigv4 test
2021-05-18 14:06:26 -07:00
Justin Boswell 7e925c92fb Cleanup pass based on prior PRs (#21)
* Updates to stub generation

* More idiomatic fixes from PHP team

* Moved tests from src/tests -> tests, got rid of extension-only tests

* fixed up test paths, regenerated arginfo
2021-05-05 13:37:47 -07:00
Justin Boswell 8bd13c710e Added EventLoopGroup API to native extension (#15) 2021-03-04 08:46:13 -05:00
Justin Boswell 5eaaa70cf1 Added aws_error* functions to native extension (#12)
* Added aws_crt_error_str and test, removed awscrt_version test function

* Added aws_crt_error_name

* Added aws_crt_error_debug_str

* Use PHP's own tools to generate arginfo

* Only re-generate arginfo on php7+

* Added a definition for ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX for php5

* Ignore generated files for clang-format
2021-02-24 10:16:32 -08:00
Justin Boswell 778eafcf05 Initial skeleton to make extension support CRT FFI API (#11)
* Fixed build issues with static CRT, separated ffi target

* Fixed makefile for test-ffi target
2021-02-22 15:55:15 -08:00
Justin Boswell aee57a929d Added test-ffi target, use it in CI (#9)
* Added test-ffi target, use it in CI

* Added clang-format config, fixed RETURN_STRING API mismatch

* Skip installing php and packages on the PHP docker images

* Removed al2 job that was never going to work, and compiler tests

* Fixed basic test for extension loading

* Cleaned up lib structure, fixed tests

* use test-ci target to conditionally test in GitHub

* Use v0.8.1 of builder
2021-02-15 09:47:32 -08:00
Justin Boswell f090511213 Initial Tests & CI (#5)
* Added awscrt_version() and test for it

* Added builder.json for CI

* Added github actions

* Added format-check.sh

* Force php5.6 on ubuntu

* Updated submodules
2021-01-13 13:33:30 -08:00