mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 01:27:30 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
38 lines
545 B
Plaintext
38 lines
545 B
Plaintext
Shell execution
|
|
-----
|
|
<?php
|
|
``;
|
|
`test`;
|
|
`test $A`;
|
|
`test \``;
|
|
`test \"`;
|
|
-----
|
|
array(
|
|
0: Expr_ShellExec(
|
|
parts: array(
|
|
)
|
|
)
|
|
1: Expr_ShellExec(
|
|
parts: array(
|
|
0: test
|
|
)
|
|
)
|
|
2: Expr_ShellExec(
|
|
parts: array(
|
|
0: test
|
|
1: Expr_Variable(
|
|
name: A
|
|
)
|
|
)
|
|
)
|
|
3: Expr_ShellExec(
|
|
parts: array(
|
|
0: test `
|
|
)
|
|
)
|
|
4: Expr_ShellExec(
|
|
parts: array(
|
|
0: test \"
|
|
)
|
|
)
|
|
) |