xref: /PHP-7.1/ext/standard/tests/file/bug41874.phpt (revision e9a95d78)
1--TEST--
2bug #41874 (Separate STDOUT and STDERR in exec functions)
3--SKIPIF--
4<?php
5if(substr(PHP_OS, 0, 3) != 'WIN' ) die('skip windows only test');
6?>
7--FILE--
8<?php
9$result = exec('cd 1:\non_existent; dir nonexistent');
10echo "$result";
11system('cd 1:\non_existent; dir nonexistent');
12?>
13--EXPECT--
14The system cannot find the drive specified.
15The system cannot find the drive specified.
16