Skip to content

compile time error #13140

@vahidr76

Description

@vahidr76

Hi. I want customize phalcon framework with zephir and then compile it.
in bult time get some error !

.
.
.
Warning: Function "textdomain" does not exist at compile time in /home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/phalcon/translate/adapter/gettext.zep on 137 [nonexistent-function]

	  return textdomain(this->getDefaultDomain());
	---------------------------------------------^


Warning: Function "bindtextdomain" does not exist at compile time in /home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/phalcon/translate/adapter/gettext.zep on 178 [nonexistent-function]

	    bindtextdomain(key, value);
	------------------------------^


Warning: Function "bindtextdomain" does not exist at compile time in /home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/phalcon/translate/adapter/gettext.zep on 181 [nonexistent-function]

	   bindtextdomain(this->getDefaultDomain(), directory);
	------------------------------------------------------^


Compiling...
Installing...
Zephir\CompilerException: Internal extension compilation failed. Check compile-errors.log for more information

in compile-error.log

/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:11: error: stray ‘\’ in program
  * Phalcon\Di\InjectionAwareInterface
           ^
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Di’
  * Phalcon\Di\InjectionAwareInterface
            ^~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:14: error: stray ‘\’ in program
  * Phalcon\Di\InjectionAwareInterface
              ^
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/exception.zep.c:18:11: error: stray ‘\’ in program
  * Phalcon\Exception
           ^
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/exception.zep.c:18:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Exception’
  * Phalcon\Exception
            ^~~~~~~~~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:12: error: unknown type name ‘Di’
  * Phalcon\Di\InjectionAwareInterface
            ^~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:18:88: error: stray ‘\’ in program
  * This interface must be implemented in those classes that uses internally the Phalcon\Di that creates them
                                                                                        ^
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:29:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘the’
  * Sets the dependency injector
         ^~~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:29:9: error: unknown type name ‘the’
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:34:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘the’
  * Returns the internal dependency injector
            ^~~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/exception.zep.c:18:12: error: unknown type name ‘Exception’
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:34:12: error: unknown type name ‘the’
make: *** [Makefile:236: phalcon/exception.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:234: phalcon/di/injectionawareinterface.lo] Error 1
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:11: error: stray ‘\’ in program
  * Phalcon\Di\InjectionAwareInterface
           ^
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Di’
  * Phalcon\Di\InjectionAwareInterface
            ^~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:14: error: stray ‘\’ in program
  * Phalcon\Di\InjectionAwareInterface
              ^
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:16:12: error: unknown type name ‘Di’
  * Phalcon\Di\InjectionAwareInterface
            ^~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:18:88: error: stray ‘\’ in program
  * This interface must be implemented in those classes that uses internally the Phalcon\Di that creates them
                                                                                        ^
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:29:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘the’
  * Sets the dependency injector
         ^~~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:29:9: error: unknown type name ‘the’
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:34:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘the’
  * Returns the internal dependency injector
            ^~~
/home/mohsen/drive/mohsen95/workspace/php/custom_phalcon/01/cphalcon/ext/phalcon/di/injectionawareinterface.zep.c:34:12: error: unknown type name ‘the’
make: *** [Makefile:234: phalcon/di/injectionawareinterface.lo] Error 1

php -v

PHP 7.1.10 (cli) (built: Sep 27 2017 17:33:37) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Zephir version 0.9.11-1f84124d4a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions