Пустые имена классов в use (PHP 5.6)

Issue #82 resolved
xdasm-admin created an issue

Тестовый код:

<?php

class cls
{
    use Trait1;
}

Выход

<?php

class cls
{
        use ;
}
?>

Comments (1)

  1. xdasm-admin reporter

    Исправлено в @a13117a xcache

    xcache/xc_opcode_spec_def.h

    Add a comment to this line
        OPSPEC(    UNUSED,        STD,        STD,        TMP) /* 153 DECLARE_LAMBDA_FUNCTION        */
     #endif
     #ifdef ZEND_ENGINE_2_4
    -   OPSPEC(    UNUSED,     UNUSED,     UNUSED,     UNUSED) /* 154 ADD_TRAIT                      */
    -   OPSPEC(    UNUSED,     UNUSED,     UNUSED,     UNUSED) /* 155 BIND_TRAITS                    */
    -   OPSPEC(    UNUSED,     UNUSED,     UNUSED,     UNUSED) /* 156 SEPARATE                       */
    -   OPSPEC(    UNUSED,        STD,     UNUSED,     UNUSED) /* 157 QM_ASSIGN_VAR                  */
    -   OPSPEC(    UNUSED,     UNUSED,     UNUSED,     UNUSED) /* 158 JMP_SET_VAR                    */
    +   OPSPEC(    FCLASS,        STD,        STD,     UNUSED) /* 154 ADD_TRAIT                      */
    +   OPSPEC(    UNUSED,        STD,     UNUSED,     UNUSED) /* 155 BIND_TRAITS                    */
    +   OPSPEC(    UNUSED,        STD,     UNUSED,        STD) /* 156 SEPARATE                       */
    +   OPSPEC(    UNUSED,        STD,     UNUSED,        TMP) /* 157 QM_ASSIGN_VAR                  */
    +   OPSPEC(    UNUSED,        STD,     UNUSED,        TMP) /* 158 JMP_SET_VAR                    */
     #endif
     #ifdef ZEND_ENGINE_2_5
        OPSPEC(    UNUSED,     UNUSED,     UNUSED,     UNUSED) /* 159 DISCARD_EXCEPTION              */
        OPSPEC(    UNUSED,        STD,        STD,     UNUSED) /* 160 YIELD                          */
        OPSPEC(    UNUSED,        STD,     UNUSED,     UNUSED) /* 161 GENERATOR_RETURN               */
    -   OPSPEC(    UNUSED,    JMPADDR,     UNUSED,     UNUSED) /* 162 FAST_CALL                      */
    -   OPSPEC(    UNUSED,     UNUSED,     UNUSED,     UNUSED) /* 163 FAST_RET                       */
    +   OPSPEC(       STD,    JMPADDR,     OPLINE,     UNUSED) /* 162 FAST_CALL                      */
    +   OPSPEC(       STD,     UNUSED,     OPLINE,     UNUSED) /* 163 FAST_RET                       */
     #endif
     #ifdef ZEND_ENGINE_2_6
        OPSPEC(    UNUSED,        ARG,     UNUSED,        VAR) /* 164 RECV_VARIADIC                  */
    
  2. Log in to comment