You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #45931 [Process] Fix Process::getEnv() when setEnv() hasn't been called before (asika32764)
This PR was merged into the 4.4 branch.
Discussion
----------
[Process] Fix Process::getEnv() when setEnv() hasn't been called before
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
-----
AS `getEnv()` return type is array, if a `Process` object has no default env and is NULL value, calling `getEnv()` will get error.
``` php
$process = $someObject->createProcess(); // Get process from some object, but we don't know the environment
// We want to check the env
$env = $process->getEnv(); // Error: return type must be array, NULL given.
```
Commits
-------
a5bf740 [Process] Fix Process::getEnv() when setEnv() hasn't been called before
0 commit comments