1

Is it possible to create a Zephir extension that exposes classes in the PHP Global space?

Without any namespace definition, all class and function definitions are placed into the global space

Any attempts to leave out a namespace provides the following error and all the documentation examples explicitly use one.

[sean3z:~/project] $ zephir build
Zephir\CompilerException: A namespace is required in /Users/sean3z/project/project/Registry.zep on line 3

    class Registry extends \ArrayObject {
    ----^
Sean3z
  • 3,745
  • 6
  • 26
  • 33

0 Answers0