1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-15 19:07:06 +01:00
PHP-Parser/test/code/expr/shellExec.test

38 lines
545 B
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(
0: Expr_ShellExec(
parts: array(
)
)
1: Expr_ShellExec(
parts: array(
0: test
)
)
2: Expr_ShellExec(
2011-11-27 11:20:35 +01:00
parts: array(
0: test
1: Expr_Variable(
name: A
)
)
)
3: Expr_ShellExec(
2011-11-27 11:20:35 +01:00
parts: array(
0: test `
)
)
4: Expr_ShellExec(
2011-11-27 11:20:35 +01:00
parts: array(
0: test \"
)
)
)