com php-src: Fix test case: Zend/tests/bug55509.phpt

From: Date: Tue, 14 May 2019 08:23:58 +0000
Subject: com php-src: Fix test case: Zend/tests/bug55509.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106178@lists.php.net to get a copy of this message
Commit: 704a0ab0c9c0dd2e2b2041f3934df61d7b588cc9 Author: Christoph M. Becker <cmbecker69@gmx.de> Tue, 14 May 2019 10:23:58 +0200 Parents: ad63bd169bd82347acd24e69fec500589f185272 Branches: PHP-7.2 PHP-7..3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=704a0ab0c9c0dd2e2b2041f3934df61d7b588cc9 Log: Fix test case stderr is supposed to be redirected to NUL (which is roughly equivalent to /dev/null on POSIX), but actually was redirected to a file. Changed paths: M Zend/tests/bug55509.phpt Diff: diff --git a/Zend/tests/bug55509.phpt b/Zend/tests/bug55509.phpt index efcf918...ff42ebc 100644 --- a/Zend/tests/bug55509.phpt +++ b/Zend/tests/bug55509.phpt @@ -46,7 +46,7 @@ elseif (PHP_OS == 'FreeBSD') { die('skip Not enough memory.'); } } elseif (PHP_OS == "WINNT") { - $s = trim(shell_exec("wmic OS get FreeVirtualMemory /Value 2>nil")); + $s = trim(shell_exec("wmic OS get FreeVirtualMemory /Value 2>nul")); $freeMemory = explode('=', $s)[1]*1; if ($freeMemory < 2.1*1024*1024) {

« previous php.cvs (#106178) next »