aws-samples / amazon-lambda-php-layer

MIT No Attribution
1 stars 0 forks source link

Does not include .so files #2

Open HighPoint opened 2 years ago

HighPoint commented 2 years ago

This PHP layer builder does not appear to include .so files necessary for PHP to work in normal applications. For instance, PHP is often used with MySQL. This layer does not have the following .so files:

mysqlnd.so mysqli.so pdo.so pdo_mysql.so

phillclark commented 2 years ago

Are you running the CloudFormation process?

HighPoint commented 2 years ago

Yes. This was created with CloudFormation.

albazei commented 2 years ago

All PHP extensions offered in the template are statically linked to reduce IO during bootstrap which in turn reduces the cold start time. The files you are referring to are only created if extensions were to be dynamically linked, which is not the case.