php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60981
Patch run-tests.php.diff revision 2012-02-07 20:36 UTC by tyrael@php.net
revision 2012-02-07 15:57 UTC by tyrael@php.net

Patch run-tests.php.diff for Testing related Bug #60981

Patch version 2012-02-07 20:36 UTC

Return to Bug #60981 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2012-02-07 20:36 UTC | 2012-02-07 15:57 UTC

Developer: tyrael@php.net


 --- run-tests-fixed.php 2012-02-07 16:52:07.000000000 +0100
 +++ run-tests.php       2012-02-07 16:36:21.000000000 +0100
 @@ -174,17 +174,6 @@
 Index: run-tests.php
 ===================================================================
 --- run-tests.php       (revision 323116)
 +++ run-tests.php       (working copy)
 @@ -174,6 +174,17 @@
          $environment['TEST_PHP_CGI_EXECUTABLE'] = $php_cgi;
   }
  
 -if(empty($_ENV)){
 -  $cmd = $environment['TEST_PHP_EXECUTABLE'].' -d variables_order=EGPCS -r \'echo serialize($_ENV);\'';
 -  $tmp_env = @unserialize(shell_exec($cmd));
 -  foreach($tmp_env as $i => $v){
 -    if(!in_array($i, array('TEST_PHP_EXECUTABLE', 'TEST_PHP_CGI_EXECUTABLE'))){
 -      $_ENV[$i] = $v;
 -      $environment[$i] = $v;
 -    }
 -  }
 -}
 -
 +if(empty($_ENV)){
 +  $cmd = $environment['TEST_PHP_EXECUTABLE'].' -d variables_order=EGPCS -r \'echo serialize($_ENV);\'';
 +  $tmp_env = @unserialize(shell_exec($cmd));
 +  foreach($tmp_env as $i => $v){
 +    if(!in_array($i, array('TEST_PHP_EXECUTABLE', 'TEST_PHP_CGI_EXECUTABLE'))){
 +      $_ENV[$i] = $v;
 +      $environment[$i] = $v;
 +    }
 +  }
 +}
 +
   function verify_config()
   {
          global $php;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 13:01:28 2024 UTC