Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php 8.2 function getenv() not set #555

Closed
luanmarcosfgns opened this issue Jun 27, 2023 · 1 comment
Closed

php 8.2 function getenv() not set #555

luanmarcosfgns opened this issue Jun 27, 2023 · 1 comment

Comments

@luanmarcosfgns
Copy link

in last version php8.2.7 the function getenv() no set
example of do env:
BACKUP_1_TYPE="database"
BACKUP_1_USERNAME="root"
BACKUP_1_PASSWORD="root"
BACKUP_1_DATABASE="database"
BACKUP_1_HOST="localhost"
BACKUP_1_GOOGLETOKEN=""
BACKUP_1_GOOGLEFOLDERID="https://drive.google.com/drive"
BACKUP_1_DIRECTORYTO="/home/user/Documentos/dumps/"
BACKUP_2_TYPE="file"
BACKUP_2_GOOGLETOKEN="oo"
BACKUP_2_GOOGLEFOLDERID="09ne"
BACKUP_2_DIRECTORYTO="/home/user/Documentos/dumps/"
BACKUP_2_DIRECTORYFROM="/user/luanmarcos/Documentos/"

@GrahamCampbell
Copy link
Collaborator

This is correct because getenv and putenv are generally not good functions to use because they are not thread safe, which can lead to incorrect/insecure behaviour on php-fpm. If you really must use getenv, then you can enable unsafe mode as per the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants