Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP7 API And Software Compatibility/Upgrade Notice

Comments in 'Plugin Development' started by MichaelM04, Feb 21, 2016.

  1. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    As most of you know php7 is now standard and everybody is trying to make the switch to it and most plugins are not compatible due to new api which is 2.0.0.

    The switch is fairly simple I would recommend @PEMapModder 's tool to switch the api to new 2.0.0
    Http://pmt.MCPE.me/api2
    This tool only bumps the api not the code.

    Some (not nearly all) plugins a few of the lines of code are gonna need to be changed but is fairly simple all that has been found so far that you need to change is the nbt tags to say Tag at end example "nbt/tag/String" change to "nbt/tag/StringTag"

    If any plugins dev's are reading this I would recommend making updates to your plugins so that they support PHP7

    Newest Source for builds
    http://github.com/pocketmine-mp/pocketmine-mp

    Http://pmt.mcpe.me/pmb

    Binary Upgrade Info

    For Windows binaries you can download PHP 7 from http://windows.php.net/download/

    For other/Linux use https://GitHub.com/PocketMine/PHP-build-scripts/blob/php7/compile.sh use that file and run to comphile php7

    Good Luck On The Upgrade
    Last edited: Mar 2, 2016
    Primus, applqpak, SuperAlecs and 5 others like this.
  2. Omar2s2
    Offline

    Omar2s2 New Member

    Joined:
    Dec 23, 2015
    Posts:
    12
    Minecraft User:
    Pop
    Why Pocketmine Update Code !!
  3. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    Linux* :D:p
  4. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    PHP7 is fast... .very fast... I MEAN ULTRA FAST... you can't catch meeeee
  5. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    Simple typo are you that bored that you commented that?
    Last edited: Feb 22, 2016
  6. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    I already download php 7 and put it into "PocketMine-MP/bin/" but I get an error about pthread and I have no idea how to install pthread. Screenshot (92).png
    LeYTi likes this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  8. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    PocketKiller likes this.
  9. Omar2s2
    Offline

    Omar2s2 New Member

    Joined:
    Dec 23, 2015
    Posts:
    12
    Minecraft User:
    Pop
    How Can I Get Info Php Team !
  10. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    ,_, I have no idea how to get it to work. FUUUUUUU.:mad:

    Attached Files:

  11. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    PocketMine has planned to make a full php7 conversion since July 2015! it has nothing to do with @shoghicp its php's fault if anyone's they made a update so naturally whoever uses it is going to update correct? php7 has much better speeds vs php5.6 and is a good move to me yes people might be angry at first but it will be done and fully converted in few months
    TheDeibo likes this.
  12. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    Preach it brother!
    I agree... because It normally takes mt 8 seconds to load the server... now it loads in 2 seconds!!! Miracle!!!
    applqpak and MichaelM04 like this.
  13. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    surprisingly my server even though its php5.6 currently (almost done on the conversion to php7) it will restart in just 1.70 secs! probably because I perfectly optimized my server but still.
    Code:
    Done (1.704s)! For help, type "help" or "?"
    WOOOO!!!
  14. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    I have updated my server and starting the server took 2 seconds when it used to take 10 seconds. ALL HAIL PHP7
    Skullex and applqpak like this.
  15. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    PHP7 is extemely faster than the flash. I'm using a host, but it's still super fast.
    Code:
    22.02 15:34:01 [Server] Startup Done (0.426s)! For help, type "help" or "?"
    Skullex and applqpak like this.
  16. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    that would change after you get some more plugins and more worlds :)
    applqpak likes this.
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  18. XxD7omGamer
    Offline

    XxD7omGamer New Member

    Joined:
    Jun 28, 2015
    Posts:
    38
    Minecraft User:
    XxD7omGamer
    If i run " start.cmd " it's say
    Code:
    [CRITICAL] Unable to find the pthreads extension.
    [CRITICAL] Please use the installer provided on the homepage.
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - The specified module could not be found.
    in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mbstring.dll' - The specified module could not be found.
    in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysqli.dll' - The specified module could not be found.
    in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_yaml.dll' - The specified module could not be found.
    in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_pthreads.dll' - The specified module could not be found.
    in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_sockets.dll' - The specified module could not be found.
    in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_sqlite3.dll' - The specified module could not be found.
    in Unknown on line 0
    bin\php\php.exe: Exit 1
    
  19. LeYTi
    Offline

    LeYTi New Member

    Joined:
    Feb 15, 2016
    Posts:
    3
    Minecraft User:
    LeYTi
    give me link to download Pocketmine mp.phar v0.14.0, please
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder

Share This Page

Advertisement