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

Use getenv() function instead of $_ENV global variable. #1887

Merged
merged 52 commits into from
Dec 16, 2024

Conversation

jawira
Copy link
Contributor

@jawira jawira commented Dec 14, 2024

The PropertyTask's "environment" attribute fails to work as expected in some systems, sometimes $_ENV is an empty array.
This behavior is system-dependent and determined by the "variables_order" directive in php.ini.

To fix this I replaced $_ENV by getenv() function, as this ensures a consistent behaviour.

jawira and others added 30 commits February 11, 2019 14:27
jawira and others added 22 commits September 21, 2021 19:20
… variable.

The PropertyTask's "environment" attribute fails to work as expected in some systems, sometimes $_ENV is an empty array.
This behavior is system-dependent and determined by the "variables_order" directive in php.ini.

To fix this I replaced $_ENV by getenv() function, as this ensures a consistent behaviour.

* https://www.php.net/manual/en/ini.core.php#ini.variables-order
* https://stackoverflow.com/questions/8798294/getenv-vs-env-in-php
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.37%. Comparing base (5fd4656) to head (5fadc61).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1887   +/-   ##
=========================================
  Coverage     53.37%   53.37%           
  Complexity     9818     9818           
=========================================
  Files           496      496           
  Lines         24738    24738           
=========================================
+ Hits          13203    13204    +1     
+ Misses        11535    11534    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrook mrook merged commit b00dfb5 into phingofficial:main Dec 16, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants