This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test
2018-11-23 12:29:20 +00:00

56 lines
No EOL
1.1 KiB
Text

Shell execution
-----
<?php
``;
`test`;
`test $A`;
`test \``;
`test \"`;
-----
array(
0: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
)
)
)
1: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test
)
)
)
)
2: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test
)
1: Expr_Variable(
name: A
)
)
)
)
3: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test `
)
)
)
)
4: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test \"
)
)
)
)
)