我成功编译了EmptyExtension并获得了salamander_php.so(我的扩展名)。
然后我将它复制到php extension_dir并将行添加到php.ini
extension=salamander_php.so
当我输入php -v
时,我收到了警告
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php7.1/lib/php/extensions/no-debug-zts-20160303/salamander_php.so' - /lib/libphpcpp.so.2.0:
undefined symbol: executor_globals in Unknown on line 0