[PHP-BUG] Bug #78283 [NEW]: no output for explicit environment

[email protected] ("v-altruo at microsoft dot com")
Newsgroups php.bugs,php.qa
Message-ID <[email protected]>
From:             v-altruo at microsoft dot com
Operating system: Windows
PHP version:      7.4.0alpha3
Package:          Testing related
Bug Type:         Bug
Bug description:no output for explicit environment

Description:
------------
Test fails for both NTS/TS for both x64/x86 only with opcache on. 

Failed Test Location:
ext\standard\tests\general_functions\proc_open_array.phpt


Expected result:
----------------
Empty command array:
Warning: proc_open(): Command array must have at least one element in %s
on line %d
bool(false)

Nul byte in program name:
Warning: proc_open(): Command array element 1 contains a null byte in %s
on line %d
bool(false)

Nul byte in argument:
Warning: proc_open(): Command array element 2 contains a null byte in %s
on line %d
bool(false)

Basic usage:
Hello World!

Environment inheritance:
string(5) "ENV_1"
bool(false)

Explicit environment:
bool(false)
string(5) "ENV_2"

Check that arguments are correctly passed through:
array (
  0 => 'Simple',
  1 => 'White space	tab
newline',
  2 => '"Quoted"',
  3 => 'Qu"ot"ed',
  4 => '\\Back\\slash\\',
  5 => '\\\\Back\\\\slash\\\\',
  6 => '\\"Qu\\"ot\\"ed\\"',
)

Actual result:
--------------
Empty command array:
Warning: proc_open(): Command array must have at least one element in
C:\...\php-test-pack-7.4.0alpha3\ext\standard\tests\general_functions\proc_open_array.php
on line 11
bool(false)

Nul byte in program name:
Warning: proc_open(): Command array element 1 contains a null byte in
C:\...\php-test-pack-7.4.0alpha3\ext\standard\tests\general_functions\proc_open_array.php
on line 14
bool(false)

Nul byte in argument:
Warning: proc_open(): Command array element 2 contains a null byte in
C:\...\php-test-pack-7.4.0alpha3\ext\standard\tests\general_functions\proc_open_array.php
on line 17
bool(false)

Basic usage:
Hello World!

Environment inheritance:
string(5) "ENV_1"
bool(false)

Explicit environment:

Check that arguments are correctly passed through:
array (
  0 => 'Simple',
  1 => 'White space	tab
newline',
  2 => '"Quoted"',
  3 => 'Qu"ot"ed',
  4 => '\\Back\\slash\\',
  5 => '\\\\Back\\\\slash\\\\',
  6 => '\\"Qu\\"ot\\"ed\\"',
)

-- 
Edit bug report at https://bugs.php.net/bug.php?id=78283&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=78283&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=78283&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=78283&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=78283&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=78283&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=78283&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=78283&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=78283&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=78283&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=78283&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=78283&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=78283&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=78283&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78283&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=78283&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=78283&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=78283&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78283&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=78283&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=78283&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.