php-parser/test/code/parser/expr/shellExec.test

56 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-11-27 11:20:35 +01:00
Shell execution
-----
<?php
``;
2011-11-27 11:20:35 +01:00
`test`;
`test $A`;
`test \``;
`test \"`;
-----
array(
2017-01-19 22:25:22 +01:00
0: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
)
2011-11-27 11:20:35 +01:00
)
)
2017-01-19 22:25:22 +01:00
1: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test
)
2015-12-03 22:55:07 +01:00
)
)
)
2017-01-19 22:25:22 +01:00
2: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test
)
1: Expr_Variable(
name: A
)
2011-11-27 11:20:35 +01:00
)
)
)
2017-01-19 22:25:22 +01:00
3: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test `
)
2015-12-03 22:55:07 +01:00
)
2011-11-27 11:20:35 +01:00
)
)
2017-01-19 22:25:22 +01:00
4: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: Scalar_EncapsedStringPart(
value: test \"
)
2015-12-03 22:55:07 +01:00
)
2011-11-27 11:20:35 +01:00
)
)
)