1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to compile my custom php-cpp extension?

Discussion in 'Help' started by chansol, May 25, 2019.

  1. chansol

    chansol Spider Jockey

    Messages:
    32
    GitHub:
    ParkChanSol
    I compiled php cpp extensions. I apply it to PocketMine Binary, but it doesn't load.

    I can get following error.
    PHP Warning: PHP Startup: Unable to load dynamic library 'test' (tried: /root/php/bin/php7/lib/php/extensions/no-debug-zts-20180731/test (/root/php/bin/php7/lib/php/extensions/no-debug-zts-20180731/test: cannot open shared object file: No such file or directory), /root/php/bin/php7/lib/php/extensions/no-debug-zts-20180731/test.so (/usr/lib/libphpcpp.so.2.2: undefined symbol: core_globals)) in Unknown on line 0

    Warning: PHP Startup: Unable to load dynamic library 'test' (tried: /root/php/bin/php7/lib/php/extensions/no-debug-zts-20180731/test (/root/php/bin/php7/lib/php/extensions/no-debug-zts-20180731/test: cannot open shared object file: No such file or directory), /root/php/bin/php7/lib/php/extensions/no-debug-zts-20180731/test.so (/usr/lib/libphpcpp.so.2.2: undefined symbol: core_globals)) in Unknown on line 0


    PocketMine PHP ver:
    PHP 7.3.5 (cli) (built: May 12 2019 00:55:33) ( ZTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies

    Local PHP ver:
    PHP 7.3.5-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: May 3 2019 10:00:24) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.5-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.