I'm working on a Lumen project that runs on AWS ECS using Amazon Linux 2023. I've encountered an issue with the phpseclib library where the DirectoryIterator in the vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/AsymmetricKey.php file is unable to resolve the .. directory. It seems like the special . and .. directories are missing in my vendor folder.
Here are some details about my setup:
Base Image: amazonlinux:2023
Web Server: Apache
Server API FPM/FastCGI
PHP Version: 8.2.23
ECS Task Definition: Using Fargate
phpseclib version: 3.0.43