]> granicus.if.org Git - php/commitdiff
MFB: Fixing strict warning
authorLars Strojny <lstrojny@php.net>
Thu, 11 Dec 2008 02:38:44 +0000 (02:38 +0000)
committerLars Strojny <lstrojny@php.net>
Thu, 11 Dec 2008 02:38:44 +0000 (02:38 +0000)
run-tests.php

index f8f634987bb1a523d2d3b042e165fcdea9e92cf4..f713f7433991bc62e474232ac81ce20ffc63c453 100755 (executable)
@@ -1009,7 +1009,7 @@ function system_with_timeout($commandline, $env = null, $stdin = null)
        $data = '';
 
        $bin_env = array();
-       foreach($env as $key => $value) {
+       foreach((array)$env as $key => $value) {
                $bin_env[(binary)$key] = (binary)$value;
        }