GIF89a=( �' 7IAXKgNgYvYx\%wh&h}t�h%�s%x�}9�R��&�0%� (�.��5�SD��&�a)�x5��;ͣ*ȡ&ղ)ׯ7׵<ѻ4�3�H֧KͯT��Y�aq��q��F� !� ' !� NETSCAPE2.0 , =( ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g���E�������R���E����B�� ��ȸ��D���"�Ů� �H��L��D٫D�B�����D���T���H �G��A R�ڐ |�� ٭&��E8�S�kG�A�px�a��� R2XB��E8I���6X�:vT)�~��q�賥��"F~%x� � 4#Z�0O|-4Bs�X:= Q� Sal��yXJ`GȦ|s h��K3l7�B|�$'7Jީܪ0!��D�n=�P� ����0`�R�lj����v>���5 �.69�ϸd�����nlv�9��f{���Pbx �l5}�p� ��� �3a���I�O����!ܾ���i��9��#��)p�a ޽ �{�)vm��%D~ 6f��s}Œ�D�W E�`!� �&L8x� �ܝ{)x`X/>�}m��R�*|`D�=�_ ^�5 !_&'a�O�7�c��`DCx`�¥�9�Y�F���`?��"� �n@`�} lď��@4>�d S �v�xN��"@~d��=�g�s~G��� ���ud &p8Q�)ƫlXD����A~H�ySun�j���k*D�LH�] ��C"J��Xb~ʪwSt}6K,��q�S:9ت:���l�@�`�� �.۬�t9�S�[:��=`9N����{¿�A !R�:���6��x�0�_ �;������^���#����!����U���;0L1�����p% A��U̬ݵ��%�S��!���~`�G���� ���=4�np�3���������u�u�ٮ|%2�I��r�#0��J``8�@S@5� ���^`8E�]�.�S���7 � �0�j S�D� z���i�S�����!���l��w9*�D�I�nEX��� &A�Go�Qf��F��;���}�J����F5��Q|���X��T��y���]� o ��C=��:���PB@ D׽S�(>�C�x}`��xJЬ�۠��p+eE0`�}`A �/NE�� �9@��� H�7�!%B0`�l*��!8 2�%� �:�1�0E��ux%nP1�!�C)�P81l�ɸF#Ƭ{����B0>�� �b�`��O3��()yRpb��E.ZD8�H@% �Rx+%���c� ���f��b�d�`F�"8�XH"��-�|1�6iI, 2�$+](A*j� QT�o0.�U�`�R�}`�SN����yae�����b��o~ S)�y�@��3 �tT�0�&�+~L�f"�-|�~��>!�v��~�\Q1)}@�}h#aP72�"�$ !� " , =( &7IAXG]KgNgYvYxR"k\%w]'}h}t�h%�g+�s%r.m3ax3�x�}9��&��+�!7�0%� (�.�SD��&��;�"&ײ)׻4��6�K� �@pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E �� �������E �´��C���ǶR��D��"Ʒ�ʱH��M��GڬD�B����D��T����G���C�C� l&�~:'�tU�6ɹ#��)�'�.6�&��Ȼ K(8p0N�?!�2"��NIJX>R��OM '��2�*x�>#n� �@<[:�I�f ��T���Cdb��[�}E�5MBo��@�`@��tW-3 �x�B���jI�&E�9[T&$��ﯧ&"s��ȳ����dc�UUρ#���ldj?����`\}���u|3'�R]�6 �S#�!�FKL�*N E���`$�:e�YD�q�.�촁�s \-�jA 9�����-��M[�x(�s��x�|���p��}k�T�DpE@W� ��]k`1� ���Yb ��0l��*n0��"~zBd�~u�7�0Bl��0-�x~|U�U0 �h�*HS�|��e"#"?vp�i`e6^�+q��`m8 #V�� ��VS|`��"m"сSn|@:U���~`pb�G�ED����2F�I�? >�x� R� ��%~jx��<�a�9ij�2�D��&: Z`�]w���:�6��B�7eFJ|�ҧ�,���FǮcS�ʶ+B�,�ܺN���>PAD�HD��~���n��}�#�� Q��S���2�X�{�k�lQ�2�����w�|2� h9��G�,m���3��6-��E�L��I�³*K���q�`DwV�QXS��peS��� qܧTS����R�u �<�a�*At�lmE� � ��N[P1�ۦ��$��@`��Dpy�yXvCAy�B`}D� 0QwG#� �a[^�� $���Ǧ{L�"[��K�g�;�S~��GX.�goT.��ư��x���?1z��x~:�g�|�L� ��S`��0S]P�^p F<""�?!,�!N4&P� ����:T�@h�9%t��:�-~�I<`�9p I&.)^ 40D#p@�j4�ج:�01��rܼF2oW�#Z ;$Q q  �K��Nl#29 !F@�Bh�ᏬL!XF�LHKh�.�hE&J�G��<"WN!�����Y@� >R~19J"�2,/ &.GXB%�R�9B6�W]���W�I�$��9�RE8Y� ��"�A5�Q.axB�&ة�J�! �t)K%tS-�JF b�NMxL��)�R��"���6O!TH�H� 0 !� ) , =( &AXKgNgYvYxR"k\%wh&h}h%�g+�s%r.x3�x�}9��&��+�R,�!7�0%� (�.��5��&�a)��;�"&ף*Ȳ)ׯ7׻4�3��6�H֧KͻH�T��Y��q��h� ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E$����� � ����$E$��"��D� � ������R��C��� E ��H�M��G�D� �B��ϾD��a��`1r��Ӑ�� �o~�zU!L�C'�yW�UGt����ll�0���uG�)A�s[��x� �xO%��X2�  P�n:R/��aHae+�Dm?# ǣ6�8�J�x�Di�M���j���5oQ7�- <! *�l��R2r/a!l)d� A"�E���� &� ;��c �%����b��pe~C"B���H�eF2��`8qb�t_`ur`e� w�u3��Pv�h""�`�Íx�LĹ��3� �~ֺ�:���MDfJ� �۵�W�%�S�X �؁)�@��:E��w�u�Sxb8y\m�zS��Zb�E�L��w!y(>�"w�=�|��s�d �C�W)H�cC$�L �7r.�\{)@�`@ �X�$PD `aaG:���O�72E�amn]�"Rc�x�R� &dR8`g��i�xLR!�P &d����T���i�|�_ � Qi�#�`g:��:noM� :V �)p����W&a=�e�k� j���1߲s�x�W�jal|0��B0�, \j۴:6���C ��W��|��9���zĸV {�;��n��V�m�I��.��PN� ����C��+��By�ѾHŸ:��� 7�Y�FTk�SaoaY$D�S���29R�kt� ��f� ��:��Sp�3�I��DZ� �9���g��u�*3)O��[_hv ,���Et x�BH� �[��64M@�S�M7d�l�ܶ5-��U܍��z�R3Ԭ3~ ��P��5�g: ���kN�&0�j4���#{��3S�2�K�'ợl���2K{� {۶?~m𸧠�I�nE�='����^���_�=��~�#O���'���o..�Y�n��CSO��a��K��o,���b�����{�C�� "�{�K ��w��Ozdը�:$ ���v�] A#� ���a�z)Rx׿ƥ�d``�w-�y�f�K!����|��P��=�`�(f��'Pa ��BJa%��f�%`�}F����6>��`G"�}�=�!o`�^FP�ةQ�C���`(�}\�ݮ ��$<��n@dĠE#��U�I�!� #l��9`k���'Rr��Z�NB�MF �[�+9���-�wj���8�r� ,V�h"�|�S=�G_��"E� 0i*%̲��da0mVk�):;&6p>�jK ��# �D�:�c?:R Ӭf��I-�"�<�="��7�3S��c2RW ,�8(T"P0F¡Jh�" ; 403WebShell
403Webshell
Server IP : 173.249.157.85  /  Your IP : 3.21.44.134
Web Server : Apache
System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : econtech ( 1005)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/econtech/www/vendor/nikic/php-parser/test/code/parser/errorHandling/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/econtech/www/vendor/nikic/php-parser/test/code/parser/errorHandling/recovery.test
Error recovery
-----
<?php

foo()
bar()
baz()
-----
Syntax error, unexpected T_STRING from 4:1 to 4:3
Syntax error, unexpected T_STRING from 5:1 to 5:3
Syntax error, unexpected EOF from 5:6 to 5:6
array(
    0: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: foo
                )
            )
            args: array(
            )
        )
    )
    1: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: bar
                )
            )
            args: array(
            )
        )
    )
    2: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: baz
                )
            )
            args: array(
            )
        )
    )
)
-----
<?php

foo()
bar();
baz();
-----
Syntax error, unexpected T_STRING from 4:1 to 4:3
array(
    0: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: foo
                )
            )
            args: array(
            )
        )
    )
    1: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: bar
                )
            )
            args: array(
            )
        )
    )
    2: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: baz
                )
            )
            args: array(
            )
        )
    )
)
-----
<?php

foo();
bar()
baz();
-----
Syntax error, unexpected T_STRING from 5:1 to 5:3
array(
    0: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: foo
                )
            )
            args: array(
            )
        )
    )
    1: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: bar
                )
            )
            args: array(
            )
        )
    )
    2: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: baz
                )
            )
            args: array(
            )
        )
    )
)
-----
<?php
abc;
1 + ;
-----
Syntax error, unexpected ';' from 3:5 to 3:5
array(
    0: Stmt_Expression(
        expr: Expr_ConstFetch(
            name: Name(
                parts: array(
                    0: abc
                )
            )
        )
    )
    1: Stmt_Expression(
        expr: Scalar_LNumber(
            value: 1
        )
    )
)
-----
<?php
function test() {
    1 +
}
-----
Syntax error, unexpected '}' from 4:1 to 4:1
array(
    0: Stmt_Function(
        byRef: false
        name: Identifier(
            name: test
        )
        params: array(
        )
        returnType: null
        stmts: array(
            0: Stmt_Expression(
                expr: Scalar_LNumber(
                    value: 1
                )
            )
        )
    )
)
-----
<?php

$i = 0;
while

$j = 1;
$k = 2;
-----
Syntax error, unexpected T_VARIABLE, expecting '(' from 6:1 to 6:2
array(
    0: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: i
            )
            expr: Scalar_LNumber(
                value: 0
            )
        )
    )
    1: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: j
            )
            expr: Scalar_LNumber(
                value: 1
            )
        )
    )
    2: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: k
            )
            expr: Scalar_LNumber(
                value: 2
            )
        )
    )
)
-----
<?php

$i = 0;
while () {
    $j = 1;
}
$k = 2;
// The output here drops the loop - would require Error node to handle this
-----
Syntax error, unexpected ')' from 4:8 to 4:8
array(
    0: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: i
            )
            expr: Scalar_LNumber(
                value: 0
            )
        )
    )
    1: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: j
            )
            expr: Scalar_LNumber(
                value: 1
            )
        )
    )
    2: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: k
            )
            expr: Scalar_LNumber(
                value: 2
            )
        )
    )
    3: Stmt_Nop(
        comments: array(
            0: // The output here drops the loop - would require Error node to handle this
        )
    )
)
-----
<?php
// Can't recover this yet, as the '}' for the inner_statement_list
// is always required.

$i = 0;
while (true) {
    $i = 1;
    $i = 2;
-----
Syntax error, unexpected EOF from 8:12 to 8:12
-----
<?php
$foo->
;
-----
!!positions
Syntax error, unexpected ';', expecting T_STRING or T_VARIABLE or '{' or '$' from 3:1 to 3:1
array(
    0: Stmt_Expression[2:1 - 3:1](
        expr: Expr_PropertyFetch[2:1 - 2:6](
            var: Expr_Variable[2:1 - 2:4](
                name: foo
            )
            name: Expr_Error[3:1 - 2:6](
            )
        )
    )
)
-----
<?php
function foo() {
    $bar->
}
-----
!!positions
Syntax error, unexpected '}', expecting T_STRING or T_VARIABLE or '{' or '$' from 4:1 to 4:1
array(
    0: Stmt_Function[2:1 - 4:1](
        byRef: false
        name: Identifier[2:10 - 2:12](
            name: foo
        )
        params: array(
        )
        returnType: null
        stmts: array(
            0: Stmt_Expression[3:5 - 3:10](
                expr: Expr_PropertyFetch[3:5 - 3:10](
                    var: Expr_Variable[3:5 - 3:8](
                        name: bar
                    )
                    name: Expr_Error[4:1 - 3:10](
                    )
                )
            )
        )
    )
)
-----
<?php
new T
-----
Syntax error, unexpected EOF from 2:6 to 2:6
array(
    0: Stmt_Expression(
        expr: Expr_New(
            class: Name(
                parts: array(
                    0: T
                )
            )
            args: array(
            )
        )
    )
)
-----
<?php
new
-----
!!php7,positions
Syntax error, unexpected EOF from 2:4 to 2:4
array(
    0: Stmt_Expression[2:1 - 2:3](
        expr: Expr_New[2:1 - 2:3](
            class: Expr_Error[2:4 - 2:3](
            )
            args: array(
            )
        )
    )
)
-----
<?php
$foo instanceof
-----
!!php7
Syntax error, unexpected EOF from 2:16 to 2:16
array(
    0: Stmt_Expression(
        expr: Expr_Instanceof(
            expr: Expr_Variable(
                name: foo
            )
            class: Expr_Error(
            )
        )
    )
)
-----
<?php
$
-----
!!php7
Syntax error, unexpected EOF, expecting T_VARIABLE or '{' or '$' from 2:2 to 2:2
array(
    0: Stmt_Expression(
        expr: Expr_Variable(
            name: Expr_Error(
            )
        )
    )
)
-----
<?php
Foo::$
-----
!!php7
Syntax error, unexpected EOF, expecting T_VARIABLE or '{' or '$' from 2:7 to 2:7
array(
    0: Stmt_Expression(
        expr: Expr_StaticPropertyFetch(
            class: Name(
                parts: array(
                    0: Foo
                )
            )
            name: Expr_Error(
            )
        )
    )
)
-----
<?php
Foo::
-----
!!php7
Syntax error, unexpected EOF from 2:6 to 2:6
array(
    0: Stmt_Expression(
        expr: Expr_ClassConstFetch(
            class: Name(
                parts: array(
                    0: Foo
                )
            )
            name: Expr_Error(
            )
        )
    )
)
-----
<?php
namespace Foo
use A
use function a
use A\{B}
const A = 1
break
break 2
continue
continue 2
return
return 2
echo $a
unset($a)
throw $x
goto label
-----
!!php7
Syntax error, unexpected T_USE, expecting ';' or '{' from 3:1 to 3:3
Syntax error, unexpected T_USE, expecting ';' from 5:1 to 5:3
Syntax error, unexpected T_CONST, expecting ';' from 6:1 to 6:5
Syntax error, unexpected T_BREAK, expecting ';' from 7:1 to 7:5
Syntax error, unexpected T_THROW, expecting ';' from 15:1 to 15:5
array(
    0: Stmt_Namespace(
        name: Name(
            parts: array(
                0: Foo
            )
        )
        stmts: array(
            0: Stmt_Use(
                type: TYPE_NORMAL (1)
                uses: array(
                    0: Stmt_UseUse(
                        type: TYPE_UNKNOWN (0)
                        name: Name(
                            parts: array(
                                0: A
                            )
                        )
                        alias: null
                    )
                )
            )
            1: Stmt_Use(
                type: TYPE_FUNCTION (2)
                uses: array(
                    0: Stmt_UseUse(
                        type: TYPE_UNKNOWN (0)
                        name: Name(
                            parts: array(
                                0: a
                            )
                        )
                        alias: null
                    )
                )
            )
            2: Stmt_GroupUse(
                type: TYPE_UNKNOWN (0)
                prefix: Name(
                    parts: array(
                        0: A
                    )
                )
                uses: array(
                    0: Stmt_UseUse(
                        type: TYPE_NORMAL (1)
                        name: Name(
                            parts: array(
                                0: B
                            )
                        )
                        alias: null
                    )
                )
            )
            3: Stmt_Const(
                consts: array(
                    0: Const(
                        name: Identifier(
                            name: A
                        )
                        value: Scalar_LNumber(
                            value: 1
                        )
                    )
                )
            )
            4: Stmt_Break(
                num: null
            )
            5: Stmt_Break(
                num: Scalar_LNumber(
                    value: 2
                )
            )
            6: Stmt_Continue(
                num: null
            )
            7: Stmt_Continue(
                num: Scalar_LNumber(
                    value: 2
                )
            )
            8: Stmt_Return(
                expr: null
            )
            9: Stmt_Return(
                expr: Scalar_LNumber(
                    value: 2
                )
            )
            10: Stmt_Echo(
                exprs: array(
                    0: Expr_Variable(
                        name: a
                    )
                )
            )
            11: Stmt_Unset(
                vars: array(
                    0: Expr_Variable(
                        name: a
                    )
                )
            )
            12: Stmt_Throw(
                expr: Expr_Variable(
                    name: x
                )
            )
            13: Stmt_Goto(
                name: Identifier(
                    name: label
                )
            )
        )
    )
)
-----
<?php

use A\{B, };
use function A\{b, };
use A, ;
const A = 42, ;

class X implements Y, {
    use A, ;
    use A, {
        A::b insteadof C, ;
    }
    const A = 42, ;
    public $x, ;
}
interface I extends J, {}

unset($x, );
isset($x, );

declare(a=42, );

function foo($a, ) {}
foo($a, );
global $a, ;
static $a, ;
echo $a, ;

for ($a, ; $b, ; $c, );
function ($a, ) use ($b, ) {};
-----
!!php7
A trailing comma is not allowed here from 5:6 to 5:6
A trailing comma is not allowed here from 6:13 to 6:13
A trailing comma is not allowed here from 8:21 to 8:21
A trailing comma is not allowed here from 9:10 to 9:10
A trailing comma is not allowed here from 10:10 to 10:10
A trailing comma is not allowed here from 11:25 to 11:25
A trailing comma is not allowed here from 13:17 to 13:17
A trailing comma is not allowed here from 14:14 to 14:14
A trailing comma is not allowed here from 16:22 to 16:22
A trailing comma is not allowed here from 21:13 to 21:13
A trailing comma is not allowed here from 23:16 to 23:16
A trailing comma is not allowed here from 25:10 to 25:10
A trailing comma is not allowed here from 26:10 to 26:10
A trailing comma is not allowed here from 27:8 to 27:8
A trailing comma is not allowed here from 29:8 to 29:8
A trailing comma is not allowed here from 29:14 to 29:14
A trailing comma is not allowed here from 29:20 to 29:20
A trailing comma is not allowed here from 30:13 to 30:13
A trailing comma is not allowed here from 30:24 to 30:24
array(
    0: Stmt_GroupUse(
        type: TYPE_UNKNOWN (0)
        prefix: Name(
            parts: array(
                0: A
            )
        )
        uses: array(
            0: Stmt_UseUse(
                type: TYPE_NORMAL (1)
                name: Name(
                    parts: array(
                        0: B
                    )
                )
                alias: null
            )
        )
    )
    1: Stmt_GroupUse(
        type: TYPE_FUNCTION (2)
        prefix: Name(
            parts: array(
                0: A
            )
        )
        uses: array(
            0: Stmt_UseUse(
                type: TYPE_UNKNOWN (0)
                name: Name(
                    parts: array(
                        0: b
                    )
                )
                alias: null
            )
        )
    )
    2: Stmt_Use(
        type: TYPE_NORMAL (1)
        uses: array(
            0: Stmt_UseUse(
                type: TYPE_UNKNOWN (0)
                name: Name(
                    parts: array(
                        0: A
                    )
                )
                alias: null
            )
        )
    )
    3: Stmt_Const(
        consts: array(
            0: Const(
                name: Identifier(
                    name: A
                )
                value: Scalar_LNumber(
                    value: 42
                )
            )
        )
    )
    4: Stmt_Class(
        flags: 0
        name: Identifier(
            name: X
        )
        extends: null
        implements: array(
            0: Name(
                parts: array(
                    0: Y
                )
            )
        )
        stmts: array(
            0: Stmt_TraitUse(
                traits: array(
                    0: Name(
                        parts: array(
                            0: A
                        )
                    )
                )
                adaptations: array(
                )
            )
            1: Stmt_TraitUse(
                traits: array(
                    0: Name(
                        parts: array(
                            0: A
                        )
                    )
                )
                adaptations: array(
                    0: Stmt_TraitUseAdaptation_Precedence(
                        trait: Name(
                            parts: array(
                                0: A
                            )
                        )
                        method: Identifier(
                            name: b
                        )
                        insteadof: array(
                            0: Name(
                                parts: array(
                                    0: C
                                )
                            )
                        )
                    )
                )
            )
            2: Stmt_ClassConst(
                flags: 0
                consts: array(
                    0: Const(
                        name: Identifier(
                            name: A
                        )
                        value: Scalar_LNumber(
                            value: 42
                        )
                    )
                )
            )
            3: Stmt_Property(
                flags: MODIFIER_PUBLIC (1)
                type: null
                props: array(
                    0: Stmt_PropertyProperty(
                        name: VarLikeIdentifier(
                            name: x
                        )
                        default: null
                    )
                )
            )
        )
    )
    5: Stmt_Interface(
        name: Identifier(
            name: I
        )
        extends: array(
            0: Name(
                parts: array(
                    0: J
                )
            )
        )
        stmts: array(
        )
    )
    6: Stmt_Unset(
        vars: array(
            0: Expr_Variable(
                name: x
            )
        )
    )
    7: Stmt_Expression(
        expr: Expr_Isset(
            vars: array(
                0: Expr_Variable(
                    name: x
                )
            )
        )
    )
    8: Stmt_Declare(
        declares: array(
            0: Stmt_DeclareDeclare(
                key: Identifier(
                    name: a
                )
                value: Scalar_LNumber(
                    value: 42
                )
            )
        )
        stmts: null
    )
    9: Stmt_Function(
        byRef: false
        name: Identifier(
            name: foo
        )
        params: array(
            0: Param(
                type: null
                byRef: false
                variadic: false
                var: Expr_Variable(
                    name: a
                )
                default: null
            )
        )
        returnType: null
        stmts: array(
        )
    )
    10: Stmt_Expression(
        expr: Expr_FuncCall(
            name: Name(
                parts: array(
                    0: foo
                )
            )
            args: array(
                0: Arg(
                    value: Expr_Variable(
                        name: a
                    )
                    byRef: false
                    unpack: false
                )
            )
        )
    )
    11: Stmt_Global(
        vars: array(
            0: Expr_Variable(
                name: a
            )
        )
    )
    12: Stmt_Static(
        vars: array(
            0: Stmt_StaticVar(
                var: Expr_Variable(
                    name: a
                )
                default: null
            )
        )
    )
    13: Stmt_Echo(
        exprs: array(
            0: Expr_Variable(
                name: a
            )
        )
    )
    14: Stmt_For(
        init: array(
            0: Expr_Variable(
                name: a
            )
        )
        cond: array(
            0: Expr_Variable(
                name: b
            )
        )
        loop: array(
            0: Expr_Variable(
                name: c
            )
        )
        stmts: array(
        )
    )
    15: Stmt_Expression(
        expr: Expr_Closure(
            static: false
            byRef: false
            params: array(
                0: Param(
                    type: null
                    byRef: false
                    variadic: false
                    var: Expr_Variable(
                        name: a
                    )
                    default: null
                )
            )
            uses: array(
                0: Expr_ClosureUse(
                    var: Expr_Variable(
                        name: b
                    )
                    byRef: false
                )
            )
            returnType: null
            stmts: array(
            )
        )
    )
)
-----
<?php

foo(Bar::);
-----
!!php7,positions
Syntax error, unexpected ')' from 3:10 to 3:10
array(
    0: Stmt_Expression[3:1 - 3:11](
        expr: Expr_FuncCall[3:1 - 3:10](
            name: Name[3:1 - 3:3](
                parts: array(
                    0: foo
                )
            )
            args: array(
                0: Arg[3:5 - 3:9](
                    value: Expr_ClassConstFetch[3:5 - 3:9](
                        class: Name[3:5 - 3:7](
                            parts: array(
                                0: Bar
                            )
                        )
                        name: Expr_Error[3:10 - 3:9](
                        )
                    )
                    byRef: false
                    unpack: false
                )
            )
        )
    )
)
-----
<?php

class Foo {
    publi $foo;
    public $bar;
}
-----
!!php7
Syntax error, unexpected T_STRING from 4:5 to 4:9
array(
    0: Stmt_Class(
        flags: 0
        name: Identifier(
            name: Foo
        )
        extends: null
        implements: array(
        )
        stmts: array(
            0: Stmt_Property(
                flags: MODIFIER_PUBLIC (1)
                type: null
                props: array(
                    0: Stmt_PropertyProperty(
                        name: VarLikeIdentifier(
                            name: bar
                        )
                        default: null
                    )
                )
            )
        )
    )
)
-----
<?php

foreach ($foo) { $bar; }
foreach ($foo as ) { $bar; }
-----
!!php7
Syntax error, unexpected ')' from 3:14 to 3:14
Syntax error, unexpected ')' from 4:18 to 4:18
array(
    0: Stmt_Foreach(
        expr: Expr_Variable(
            name: foo
        )
        keyVar: null
        byRef: false
        valueVar: Expr_Error(
        )
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_Variable(
                    name: bar
                )
            )
        )
    )
    1: Stmt_Foreach(
        expr: Expr_Variable(
            name: foo
        )
        keyVar: null
        byRef: false
        valueVar: Expr_Error(
        )
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_Variable(
                    name: bar
                )
            )
        )
    )
)
-----
<?php

function foo(Type) {
    $foo;
}

function foo(Type1 $foo, Type2) {
    $bar;
}

function foo(...) {
    $baz;
}

function foo(&) {
    $qux;
}

function foo(Bar)

class Bar {
    function foo(Baz)
}

function(Foo);
-----
!!php7
Syntax error, unexpected ')', expecting T_VARIABLE from 3:18 to 3:18
Syntax error, unexpected ')', expecting T_VARIABLE from 7:31 to 7:31
Syntax error, unexpected ')', expecting T_VARIABLE from 11:17 to 11:17
Syntax error, unexpected ')', expecting T_VARIABLE from 15:15 to 15:15
Syntax error, unexpected ')', expecting T_VARIABLE from 19:17 to 19:17
Syntax error, unexpected ')', expecting T_VARIABLE from 22:21 to 22:21
Syntax error, unexpected ')', expecting T_VARIABLE from 25:13 to 25:13
array(
    0: Stmt_Function(
        byRef: false
        name: Identifier(
            name: foo
        )
        params: array(
            0: Param(
                type: Name(
                    parts: array(
                        0: Type
                    )
                )
                byRef: false
                variadic: false
                var: Expr_Error(
                )
                default: null
            )
        )
        returnType: null
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_Variable(
                    name: foo
                )
            )
        )
    )
    1: Stmt_Function(
        byRef: false
        name: Identifier(
            name: foo
        )
        params: array(
            0: Param(
                type: Name(
                    parts: array(
                        0: Type1
                    )
                )
                byRef: false
                variadic: false
                var: Expr_Variable(
                    name: foo
                )
                default: null
            )
            1: Param(
                type: Name(
                    parts: array(
                        0: Type2
                    )
                )
                byRef: false
                variadic: false
                var: Expr_Error(
                )
                default: null
            )
        )
        returnType: null
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_Variable(
                    name: bar
                )
            )
        )
    )
    2: Stmt_Function(
        byRef: false
        name: Identifier(
            name: foo
        )
        params: array(
            0: Param(
                type: null
                byRef: false
                variadic: true
                var: Expr_Error(
                )
                default: null
            )
        )
        returnType: null
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_Variable(
                    name: baz
                )
            )
        )
    )
    3: Stmt_Function(
        byRef: false
        name: Identifier(
            name: foo
        )
        params: array(
            0: Param(
                type: null
                byRef: true
                variadic: false
                var: Expr_Error(
                )
                default: null
            )
        )
        returnType: null
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_Variable(
                    name: qux
                )
            )
        )
    )
    4: Stmt_Function(
        byRef: false
        name: Identifier(
            name: foo
        )
        params: array(
            0: Param(
                type: Name(
                    parts: array(
                        0: Bar
                    )
                )
                byRef: false
                variadic: false
                var: Expr_Error(
                )
                default: null
            )
        )
        returnType: null
        stmts: array(
        )
    )
    5: Stmt_Class(
        flags: 0
        name: Identifier(
            name: Bar
        )
        extends: null
        implements: array(
        )
        stmts: array(
            0: Stmt_ClassMethod(
                flags: 0
                byRef: false
                name: Identifier(
                    name: foo
                )
                params: array(
                    0: Param(
                        type: Name(
                            parts: array(
                                0: Baz
                            )
                        )
                        byRef: false
                        variadic: false
                        var: Expr_Error(
                        )
                        default: null
                    )
                )
                returnType: null
                stmts: array(
                )
            )
        )
    )
    6: Stmt_Expression(
        expr: Expr_Closure(
            static: false
            byRef: false
            params: array(
                0: Param(
                    type: Name(
                        parts: array(
                            0: Foo
                        )
                    )
                    byRef: false
                    variadic: false
                    var: Expr_Error(
                    )
                    default: null
                )
            )
            uses: array(
            )
            returnType: null
            stmts: array(
            )
        )
    )
)
-----
<?php
$array = [
    $this->value $oopsAnotherValue->get()
];
$array = [
    $value $oopsAnotherValue
];
$array = [
    'key' => $value $oopsAnotherValue
];
-----
!!php7
Syntax error, unexpected T_VARIABLE, expecting ',' or ')' or ']' from 3:18 to 3:34
Syntax error, unexpected T_VARIABLE, expecting ',' or ')' or ']' from 6:12 to 6:28
Syntax error, unexpected T_VARIABLE, expecting ',' or ')' or ']' from 9:21 to 9:37
array(
    0: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: array
            )
            expr: Expr_Array(
                items: array(
                    0: Expr_ArrayItem(
                        key: null
                        value: Expr_PropertyFetch(
                            var: Expr_Variable(
                                name: this
                            )
                            name: Identifier(
                                name: value
                            )
                        )
                        byRef: false
                        unpack: false
                    )
                    1: Expr_ArrayItem(
                        key: null
                        value: Expr_MethodCall(
                            var: Expr_Variable(
                                name: oopsAnotherValue
                            )
                            name: Identifier(
                                name: get
                            )
                            args: array(
                            )
                        )
                        byRef: false
                        unpack: false
                    )
                )
            )
        )
    )
    1: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: array
            )
            expr: Expr_Array(
                items: array(
                    0: Expr_ArrayItem(
                        key: null
                        value: Expr_Variable(
                            name: value
                        )
                        byRef: false
                        unpack: false
                    )
                    1: Expr_ArrayItem(
                        key: null
                        value: Expr_Variable(
                            name: oopsAnotherValue
                        )
                        byRef: false
                        unpack: false
                    )
                )
            )
        )
    )
    2: Stmt_Expression(
        expr: Expr_Assign(
            var: Expr_Variable(
                name: array
            )
            expr: Expr_Array(
                items: array(
                    0: Expr_ArrayItem(
                        key: Scalar_String(
                            value: key
                        )
                        value: Expr_Variable(
                            name: value
                        )
                        byRef: false
                        unpack: false
                    )
                    1: Expr_ArrayItem(
                        key: null
                        value: Expr_Variable(
                            name: oopsAnotherValue
                        )
                        byRef: false
                        unpack: false
                    )
                )
            )
        )
    )
)
-----
<?php
function foo() :
{
    return $a;
}
-----
!!php7
Syntax error, unexpected '{' from 3:1 to 3:1
array(
    0: Stmt_Function(
        byRef: false
        name: Identifier(
            name: foo
        )
        params: array(
        )
        returnType: null
        stmts: array(
            0: Stmt_Return(
                expr: Expr_Variable(
                    name: a
                )
            )
        )
    )
)
-----
<?php
$a = ["a "thing"];
-----
!!php7
Syntax error, unexpected T_STRING, expecting ',' or ')' or ']' from 2:11 to 2:15

Youez - 2016 - github.com/yon3zu
LinuXploit