Zephir extension class in Global space

150 views Asked by At

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 {
    ----^
0

There are 0 answers