php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78283 no output for explicit environment
Submitted: 2019-07-12 20:05 UTC Modified: 2019-07-13 10:03 UTC
From: v-altruo at microsoft dot com Assigned: cmb (profile)
Status: Closed Package: Testing related
PHP Version: 7.4.0alpha3 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: v-altruo at microsoft dot com
New email:
PHP Version: OS:

 

 [2019-07-12 20:05 UTC] v-altruo at microsoft dot com
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\\"',
)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-13 10:03 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2019-07-13 10:03 UTC] cmb@php.net
Ah, good catch!  Thanks.
 [2019-07-13 10:04 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8c76d898a95cc91ef987c5efb77c1b43fd64a32c
Log: Fix #78283: no output for explicit environment
 [2019-07-13 10:04 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 01:01:28 2024 UTC