Content-Type: text/plain; charset="UTF-8"
I’m personally against stopping PHP4 support in Evo. We recreated it for PHP 5 as Revo for a reason IMO.
First question.
Has anyone thought about the stopping of support PHP4 in future Evolution release?
I agree, lots of improvements can be made in this way.
If Evo 1.1 will be compatible with PHP4, then we need to add transitional class between PHPmailer and scripts like japanese guys did.
Correct, ALL code must be properly checking for optional extensions and features when using them (including PHP version specific features in versions after PHP 4.3.3 or whatever we determine to be the oldest supported version) and provide alternatives when they are not available. We don’t want to break it for those that might not have some non-standard extensions (based on their version of PHP). This can be a little trickier and require some more robust community testing/input, but it can be done.
Having recently errantly committed some code to the Evo core that relied on a non-default php extension, I want to raise a caution here that mbstring is a non-default extension as well.
assets\plugins\tinymce\inc\tinymce.linklist.php assets\plugins\tinymce\jscripts\tiny_mce\plugins\spellchecker\classes\GoogleSpell.php assets\plugins\tinymce\jscripts\tiny_mce\plugins\spellchecker\classes\PSpellShell.php assets\plugins\tinymce\jscripts\tiny_mce\plugins\spellchecker\classes\utils\JSON.php assets\snippets\ajaxSearch\classes\ajaxSearchPopup.class.inc.php assets\snippets\ajaxSearch\classes\FirePHPCore\FirePHP.class.php assets\snippets\ajaxSearch\classes\FirePHPCore\FirePHP.class.php4 assets\snippets\ajaxSearch\classes\search.class.inc.php manager\actions\search.static.php manager\media\browser\mcpuk\connectors\php\Commands\DeleteFile.php manager\media\browser\mcpuk\connectors\php\Commands\DeleteFolder.php manager\media\browser\mcpuk\connectors\php\Commands\RenameFile.php manager\media\browser\mcpuk\connectors\php\Commands\Thumbnail.php manager\media\rss\rss_parse.inc
Thanks for bringing this up. I will take some time to review the state of 1.x development, merge, and start discussing the future of Evolution development early this week. I think it’s time for some changes to the process and the tools we’re using and I want to solicit for feedback on some ideas. Regardless, I will get the merge done and let everyone know.
Can someone merge 1.0.3 and 1.1 branches, and make new experimental branch for PHPMailer updates? (I can try it by myself, but I’m not sure that I can do it well)
It cannot be a required extension; not everyone has it installed. It’s fine to use it, but the code must be responsible and detect for it’s existence before calling it. Same goes for any non-standard extension, including Zip, or anything else. The FirePHP stuff is another one since it is PHP 5 only. Again, I don’t think it’s a problem to use these things in MODx Extras, or even core code, but they should be used with degradation in mind so we keep Evolution accessible to as wide a variety of PHP’ers as possible.
And by the way, we have already a lot of mb_string extension usages in MODx. So, is it still not-acceptable extension to use it in class?
These files use this extension.
assets\plugins\tinymce\inc\tinymce.linklist.php assets\plugins\tinymce\jscripts\tiny_mce\plugins\spellchecker\classes\GoogleSpell.php assets\plugins\tinymce\jscripts\tiny_mce\plugins\spellchecker\classes\PSpellShell.php assets\plugins\tinymce\jscripts\tiny_mce\plugins\spellchecker\classes\utils\JSON.php assets\snippets\ajaxSearch\classes\ajaxSearchPopup.class.inc.php assets\snippets\ajaxSearch\classes\FirePHPCore\FirePHP.class.php assets\snippets\ajaxSearch\classes\FirePHPCore\FirePHP.class.php4 assets\snippets\ajaxSearch\classes\search.class.inc.php manager\actions\search.static.php manager\media\browser\mcpuk\connectors\php\Commands\DeleteFile.php manager\media\browser\mcpuk\connectors\php\Commands\DeleteFolder.php manager\media\browser\mcpuk\connectors\php\Commands\RenameFile.php manager\media\browser\mcpuk\connectors\php\Commands\Thumbnail.php manager\media\rss\rss_parse.inc
I think that we need to add warning about this extension. (Check this during installation and after, in manager)
And add some logic to work properly if user doesn’t have this extension installed.