aws-lambda-php-template icon indicating copy to clipboard operation
aws-lambda-php-template copied to clipboard

PDO and openssl both module extension not work together

Open sunny-brevity opened this issue 9 years ago • 2 comments

I have create PHP binary file in my local system with below module but it does not work. at a time only one module work both are not work together.

In AWS lambda function i need to work with both PDO and opelssl Please tell me solution for same. i have try to search a lot but i did not get anything about this problem.

when i try with both module in lambda function then execute without any error but i did not get any result. i mean no error but not execute. i have attached image please check. lambda management console

I need database operation with SES and SNS service in lambda function using PHP SDK.

your binary file also working, but it not work with PDO.

Array ( [0] => Core [1] => date [2] => ereg [3] => libxml [4] => openssl [5] => pcre [6] => curl [7] => standard [8] => hash [9] => json [10] => mbstring [11] => SPL [12] => PDO [13] => Phar [14] => Reflection [15] => SimpleXML [16] => sockets [17] => mysqlnd [18] => exif [19] => xml [20] => pdo_mysql [21] => mhash )

sunny-brevity avatar Jan 09 '17 06:01 sunny-brevity

You might need to statically compile PDO into the php binary something like this http://php.net/manual/en/pdo.installation.php

jonee avatar May 07 '17 13:05 jonee

Hi Sunny,

The binaries in this repo are pretty old, can't even remember what OS were they compiled on.

I'll try to recompile on Amazon Linux 2, inside a docker, that should result in a compatible PDO/OpenSSL

adrianpraja avatar Jul 27 '18 09:07 adrianpraja