mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-11 16:49:43 +01:00
54 lines
596 B
Plaintext
54 lines
596 B
Plaintext
Handling of inline HTML
|
|
-----
|
|
<?php
|
|
|
|
function test() {
|
|
?>Foo<?php
|
|
}
|
|
-----
|
|
$stmts[0]->setAttribute('origNode', null);
|
|
-----
|
|
<?php
|
|
|
|
function test()
|
|
{
|
|
?>Foo<?php
|
|
}
|
|
-----
|
|
<?php
|
|
|
|
function test() {
|
|
foo();
|
|
?>Bar<?php
|
|
baz();
|
|
}
|
|
-----
|
|
// TODO Fix broken result
|
|
$stmts[0]->stmts[2] = $stmts[0]->stmts[1];
|
|
-----
|
|
<?php
|
|
|
|
function test() {
|
|
foo();
|
|
?>Bar<?php
|
|
Bar
|
|
}
|
|
-----
|
|
<?php
|
|
|
|
function test() {
|
|
foo();
|
|
?>Bar<?php
|
|
baz();
|
|
}
|
|
-----
|
|
// TODO Fix broken result
|
|
$stmts[0]->stmts[1] = $stmts[0]->stmts[2];
|
|
-----
|
|
<?php
|
|
|
|
function test() {
|
|
foo();<?php
|
|
baz();
|
|
baz();
|
|
} |