mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-07-27 17:30:29 +02:00
Add the newline in reconstructTest() and run updateTests.php, to reduce spurious diffs in the future.
57 lines
1.1 KiB
Plaintext
57 lines
1.1 KiB
Plaintext
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: InterpolatedStringPart(
|
|
value: test
|
|
)
|
|
)
|
|
)
|
|
)
|
|
2: Stmt_Expression(
|
|
expr: Expr_ShellExec(
|
|
parts: array(
|
|
0: InterpolatedStringPart(
|
|
value: test
|
|
)
|
|
1: Expr_Variable(
|
|
name: A
|
|
)
|
|
)
|
|
)
|
|
)
|
|
3: Stmt_Expression(
|
|
expr: Expr_ShellExec(
|
|
parts: array(
|
|
0: InterpolatedStringPart(
|
|
value: test `
|
|
)
|
|
)
|
|
)
|
|
)
|
|
4: Stmt_Expression(
|
|
expr: Expr_ShellExec(
|
|
parts: array(
|
|
0: InterpolatedStringPart(
|
|
value: test \"
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|