PHP7


Hello,

I used the PHP Compatibility Checker Plugin and found one Beans issue. Do not know if it is critical but here (s)he is:

FILE: ../tm-beans/lib/api/compiler/class-page-compiler.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 71 | ERROR | Global with variable variables is not allowed since PHP 7.0
-----

Regards,

Dick

(new on Beans, like it and hope to feel home in it after a couple of weeks)


Yeah i found them too, based on your report: (line 71)

Beans uses Global Variable Variables on this code, on PHP7 are not supported anymore::

// Not supported on PHP7.

global $$set_global;

To support PHP5 and PHP7 just need to add curly braces like this:

// Separate the Variable Variables with ${$ }.

global ${$set_global};

Waiting the next update of Beans to be fixed...


Hey guys,

Thanks for reporting this, here is the fix I just pushed.

If you are keen to help with Beans development have have your name up in the contributors list, feel free to contribute directly on github as Beans is a community and open source project 😉

Happy coding,

Write a reply

Login or register to write a reply, it's free!