view vendor/nikic/php-parser/test/code/parser/expr/shellExec.test @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 5fb285c0d0e3
line wrap: on
line source
Shell execution
-----
<?php
``;
`test`;
`test $A`;
`test \``;
`test \"`;
-----
array(
    0: Expr_ShellExec(
        parts: array(
        )
    )
    1: Expr_ShellExec(
        parts: array(
            0: Scalar_EncapsedStringPart(
                value: test
            )
        )
    )
    2: Expr_ShellExec(
        parts: array(
            0: Scalar_EncapsedStringPart(
                value: test
            )
            1: Expr_Variable(
                name: A
            )
        )
    )
    3: Expr_ShellExec(
        parts: array(
            0: Scalar_EncapsedStringPart(
                value: test `
            )
        )
    )
    4: Expr_ShellExec(
        parts: array(
            0: Scalar_EncapsedStringPart(
                value: test \"
            )
        )
    )
)