mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
support 7.2+ from pecl and add readme stuff about libcrypto issues
This commit is contained in:
@@ -19,11 +19,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup PHP with Xdebug
|
||||
uses: shivammathur/setup-php@verbose
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
coverage: xdebug
|
||||
php-version: 5.5
|
||||
extensions: crypto
|
||||
ini-values: xdebug.overload_var_dump=0, memory_limit=4G, phar.readonly=false
|
||||
|
||||
- name: Checkout
|
||||
@@ -38,7 +37,7 @@ jobs:
|
||||
run: |
|
||||
phpize
|
||||
./configure
|
||||
make
|
||||
USE_OPENSSL=OFF make
|
||||
./dev-scripts/run_tests.sh
|
||||
|
||||
php-linux-x64:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# AWS Common Runtime PHP bindings
|
||||
|
||||
## Requirements
|
||||
|
||||
* PHP 5.5+ on UNIX platforms, 7.2+ on Windows
|
||||
* CMake 3.x
|
||||
* GCC 4.4+, clang 3.8+ on UNIX, Visual Studio build tools on Windows
|
||||
@@ -80,6 +81,7 @@ set CMAKE_GENERATOR_PLATFORM=x64
|
||||
```
|
||||
|
||||
## Debugging
|
||||
|
||||
Using [PHPBrew](https://github.com/phpbrew/phpbrew) to build/manage multiple versions of PHP is helpful.
|
||||
|
||||
Note: You must use a debug build of PHP to debug native extensions.
|
||||
@@ -103,6 +105,13 @@ the system default php.
|
||||
|
||||
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
|
||||
|
||||
## Knowning OpenSSL related issue (Unix only)
|
||||
|
||||
* With php5.5 and openssl-3.0.2, signing functions will not work
|
||||
* When your php loads a different version of openssl than your system openssl version, awscrt may fail to load.
|
||||
|
||||
The easiest workaround to those issue is to build from source and get aws-lc as libscrypto for awscrt to depend on instead of your local openssl. Same instructions as [here](#building-from-github-source), but use `USE_OPENSSL=OFF make` instead of `make`
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the Apache-2.0 License.
|
||||
|
||||
+1
-1
Submodule crt/aws-crt-ffi updated: 3218acfdba...a76a837a8d
@@ -2,7 +2,7 @@
|
||||
<dependencies>
|
||||
<required>
|
||||
<php>
|
||||
<min>5.5.0</min>
|
||||
<min>7.2.0</min>
|
||||
</php>
|
||||
<pearinstaller>
|
||||
<min>1.10.0</min>
|
||||
|
||||
@@ -22,5 +22,4 @@ if [ ! -d vendor ]; then
|
||||
$PHP_BINARY -c php.ini $COMPOSER_BINARY update
|
||||
fi
|
||||
|
||||
$launcher $PHP_BINARY --version
|
||||
$launcher $PHP_BINARY -c php.ini vendor/bin/phpunit tests --debug
|
||||
|
||||
@@ -60,6 +60,7 @@ ZEND_EXTERN_MODULE_GLOBALS(awscrt)
|
||||
# define XRETURN_STRING(s) RETURN_STRING(s, 1)
|
||||
# define XRETVAL_STRINGL(s, l) RETVAL_STRINGL(s, l, 1)
|
||||
# define XRETVAL_STRING(s) RETVAL_STRING(s, 1)
|
||||
/* zend_error_noreturn is not public until PHP7, but may still be visible with some PHP 5.X distributions */
|
||||
# define zend_error_noreturn zend_error
|
||||
#endif /* PHP 5.x */
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ use AWS\CRT\Auth\Signing;
|
||||
use AWS\CRT\Auth\Signable;
|
||||
use AWS\CRT\Auth\StaticCredentialsProvider;
|
||||
use AWS\CRT\HTTP\Request;
|
||||
use AWS\CRT\Log;
|
||||
|
||||
require_once('common.inc');
|
||||
|
||||
@@ -66,9 +65,6 @@ final class SigningTest extends CrtTestCase {
|
||||
}
|
||||
|
||||
public function testShouldSignHeader() {
|
||||
Log::setLogLevel(Log::TRACE);
|
||||
$stdout = fopen('php://stdout', 'w');
|
||||
Log::toStream($stdout);
|
||||
$credentials_provider = new StaticCredentialsProvider([
|
||||
'access_key_id' => self::SIGV4TEST_ACCESS_KEY_ID,
|
||||
'secret_access_key' => self::SIGV4TEST_SECRET_ACCESS_KEY,
|
||||
|
||||
Reference in New Issue
Block a user