Skip to content

Possibly superfluous backslash in proc_open() escaping on Windows #15913

@cmb69

Description

@cmb69
Member

Description

The following code:

<?php
proc_open(["test.bat", "\"&notepad.exe"], …);

passes "test.bat" ^"\^"^&notepad.exe^" to CreateProcess(). The backslash appears to be superfluous.

PHP Version

PHP 8.2

Operating System

Windows

Activity

added theissue type on Feb 5, 2025
Jiaoma

Jiaoma commented on Jul 10, 2025

@Jiaoma

Is this bug fixed in version 8.4.10?

cmb69

cmb69 commented on Jul 10, 2025

@cmb69
MemberAuthor

I don't think this is fixed yet. Do you face any issues with the behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cmb69@Jiaoma

        Issue actions

          Possibly superfluous backslash in proc_open() escaping on Windows · Issue #15913 · php/php-src