Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Request fix, mode needs to be set explicitly to 'b' in the popen2.popen2() function #1

@ghost

Description

line 16 of php.py needs to be changed to :

(out, inp) = popen2.popen2("php", mode='b')

This fixes an error when sending a string over 4KB (for example, to a write to file function)

Also, just to note, to resolve another error that might occur in one's application code, escape the single quote in a string sent to php code within python. e.g., str = str.replace("'", "'")

TY

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions