1. #include "config.h"
    2. #endif
    3. #include "php.h"
    4. #include "php_test.h"
    5. #include "test.h"
    6. /**
    7. * This is a sample class
    8. */
    9. ZEPHIR_INIT_CLASS(Test_Hello) {
    10. ZEPHIR_REGISTER_CLASS(Test, Hello, hello, test_hello_method_entry, 0);
    11. /**
    12. * This is a sample method
    13. */
    14. PHP_METHOD(Test_Hello, say) {
    15. php_printf("%s", "Hello World!");