Why I am getting this error in zephir php extension development?

146 views Asked by At

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/myapp.so' - /usr/lib64/php/modules/myapp.so: undefined symbol: zend_error_noreturn in Unknown on line 0

My code (myapp.zep) is

namespace Myapp;
class Greeting
{
    public static function test (string abc) {

                return "test back";
    }
}

The code worked when I remove the parameter

namespace Myapp;
class Greeting
{
    public static function test () {    //no parameter

                return "test back";
    }
}

When i set a parameter of method test with string abc then I got the error. But I compiled it in windows version it works fine..

My server configuration is

Centos 7.3 - 64bit 
PHP 5.6.30 (cli) (built: Jan 19 2017 07:57:06) 
Copyright (c) 1997-2016  The PHP Group 
Zend Engine v2.6.0, 
Copyright (c) 1998-2016 Zend Technologies

I am totally stack now. This compiled .so file , I have used in another same configuration server, where it work fine.

0

There are 0 answers