WordPress.org

Ready to get started?Download WordPress

Forums

Eval PHP
[resolved] doesn't work with (9 posts)

  1. CutterRus
    Member
    Posted 1 year ago #

    After installing this message appears:

    Parse error: syntax error, unexpected T_STRING in /home/u202173/club-leader.ru/www/wp-content/plugins/evalphp/evalphp.php on line 31

    http://wordpress.org/extend/plugins/evalphp/

  2. flashpixx
    Member
    Plugin Author

    Posted 1 year ago #

    Please read the requirements, you need PHP 5.3 at least

  3. CutterRus
    Member
    Posted 1 year ago #

    You're right. I have PHP 5.2. My bad.

  4. pixecs
    Member
    Posted 1 year ago #

    Hello, recently i modified this plugin to be php 5.2 compatible. If any of you are interested i can provide this modified version.

  5. flashpixx
    Member
    Plugin Author

    Posted 1 year ago #

    Do you remove the PHP Namespaces?
    I'm using the NS, because I can create seperated structures on all my plugins and PHP 5.2 is a very old system, so an upgrade should be better choice because security reasons.

    I will migrate my plugins to GitHub and use GitSVN to update the plugindata on WP, so this can be a fork on the plugin source. I don't want create a downgrade of the plugin source, except it is needed

    Thanks

  6. pixecs
    Member
    Posted 1 year ago #

    As you probably know, there is no support for namespaces and anonymous function on php 5.2 so it was necessary to removed them (an replace them with something else) in order to run the plugin on that php version.
    Also there are a lot of hosting websites which offer only php 5.2 or even older versions.
    In my case i developed the website on php 5.3 and after i uploaded on hosting website i saw that they had only php 5.2.17 so the solution was to adapt your plugin not to remake the entire website.

  7. flashpixx
    Member
    Plugin Author

    Posted 1 year ago #

    I know only that PHP 5.2 does not have any namespaces, but the problem with anonymous function are unknown for me.

    I'm thinking about a port to GitHub, because in your case you can fork the plugin sources. Do you think, this can be helpful for you? In this case I can migrate the plugin sources to GitHub.

  8. CutterRus
    Member
    Posted 1 year ago #

    pixecs, it would be great if you share modified version with me. My e-mail: cutterrus@gmail.com. Thanks.

  9. pixecs
    Member
    Posted 1 year ago #

    I'm thinking about a port to GitHub, because in your case you can fork the plugin sources. Do you think, this can be helpful for you? In this case I can migrate the plugin sources to GitHub.

    - i already solved my php 5.2 issues but i think somebody else may find usefull that your plugin will be available for php 5.2

    Kind Regards,
    Ciprian

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic