We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Error while compile zephir on debian 8.3 (PHP7)

Hi there , I was compile zephir on debian 8.3 with php 7 and in my terminal has message error. How to fix it ? Thank you.

Warning: Variable "_SESSION" assigned but not used in Phalcon\Session\Adapter::remove in /root/cphalcon/phalcon/session/adapter.zep on 204 [unused-variable]

         }
        -^

Warning: Variable "beforeLine" assigned but not used in Phalcon\Debug::showTraceItem in /root/cphalcon/phalcon/debug.zep on 339 [unused-variable]

           beforeLine, firstLine, afterLine, lastLine, i, linePosition, currentLine;
        -------------^

Warning: Class "Phalcon\Mvc\Group" does not exist at compile time in /root/cphalcon/phalcon/mvc/model.zep on 1397 [nonexistent-class]

           messages->rewind();
        ---------------------^

Warning: Class "Phalcon\Mvc\Group" does not exist at compile time in /root/cphalcon/phalcon/mvc/model.zep on 1400 [nonexistent-class]

           while messages->valid() {
        ---------------------------^

Warning: Class "Phalcon\Mvc\Group" does not exist at compile time in /root/cphalcon/phalcon/mvc/model.zep on 1402 [nonexistent-class]

            let message = messages->current();
        -------------------------------------^

Warning: Class "Phalcon\Mvc\Group" does not exist at compile time in /root/cphalcon/phalcon/mvc/model.zep on 1412 [nonexistent-class]

            messages->next();
        --------------------^

Warning: Function "\\sodium\\randombytes_buf" does not exist at compile time in /root/cphalcon/phalcon/security/random.zep on 124 [nonexistent-function]

           return \\Sodium\\randombytes_buf(len);
        ----------------------------------------^

Warning: Function "\\sodium\\randombytes_uniform" does not exist at compile time in /root/cphalcon/phalcon/security/random.zep on 320 [nonexistent-function]

           return \\Sodium\\randombytes_uniform(len) + 1;
        ---------------------------------------------^

Im not sure but those are warnings only ? It should compile with warnings.



6.2k
Accepted
answer

Yep, those are warnings only. So don't worry about it. Check your system, it has to be installed.