PHP 5.6

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

PHP 5.6

Post by cmb » Fri Jul 04, 2014 12:49 pm

Hello Community,

the second RC of PHP 5.6 has been released yesterday. We should do some serious testing, to avoid unexpected problems with the new version.

So everybody who has some time, please test, and report back.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: PHP 5.6

Post by cmb » Thu Aug 28, 2014 12:14 pm

PHP 5.6.0 has just been released.

I have made some quick tests with XH 1.6.2, and so far everything seems to work fine. I do not expect any major problems, because the backward incompatible changes don't seem to be relevant for CMSimple_XH or plugins. However, it would nonetheless be good to test more thoroughly.

One thing that might cause undesired behavior is that default_charset now affects character encoding specific functions such as htmlspecialchars(). I have not been able to produce anything security related, but the affected functions might return empty strings under PHP 5.6. Consider, for instance:

Code: Select all

ini_set('default_charset', 'BIG5'); // this might be set by the provider
htmlspecialchars("\xC3\x84"); // => ''  
I suggest to always specify the desired character encoding explicitely for these functions. (Note that since CMSimple_XH 1.5.8 there is XH_hsc() available.)
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply