File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -568,6 +568,8 @@ public function handlePHPConfiguration()
568
568
\putenv ("{$ name }= {$ value }" );
569
569
}
570
570
571
+ $ value = \getenv ($ name );
572
+
571
573
if (!isset ($ _ENV [$ name ])) {
572
574
$ _ENV [$ name ] = $ value ;
573
575
}
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ public function testPHPConfigurationIsHandledCorrectly()
263
263
$ this ->assertFalse (\FOO );
264
264
$ this ->assertTrue (\BAR );
265
265
$ this ->assertFalse ($ GLOBALS ['foo ' ]);
266
- $ this ->assertTrue ($ _ENV ['foo ' ]);
266
+ $ this ->assertTrue (( bool ) $ _ENV ['foo ' ]);
267
267
$ this ->assertEquals (1 , \getenv ('foo ' ));
268
268
$ this ->assertEquals ('bar ' , $ _POST ['foo ' ]);
269
269
$ this ->assertEquals ('bar ' , $ _GET ['foo ' ]);
@@ -311,7 +311,7 @@ public function testHandlePHPConfigurationDoesNotOverriteVariablesFromPutEnv()
311
311
\putenv ('foo=putenv ' );
312
312
$ this ->configuration ->handlePHPConfiguration ();
313
313
314
- $ this ->assertTrue ( $ _ENV ['foo ' ]);
314
+ $ this ->assertEquals ( ' putenv ' , $ _ENV ['foo ' ]);
315
315
$ this ->assertEquals ('putenv ' , \getenv ('foo ' ));
316
316
}
317
317
You can’t perform that action at this time.
0 commit comments