kvz/cakephp-rest-plugin — pull request #29 by juanctt (2013-08-08 01:36:24+00:00)
Title: Fix for strict standard in PHP 5.4 & HTML Entities 

Hi!

When I started using CakePHP 2.3 with the plugin, I saw errors related to PHP Strict Standard for the Class RestComponent in Controller/Component/RestComponent.php. These are fixed by re factoring the 5 functions in order to comply with the expected declaration of the Plugin set by CakePHP Core.

Another issue that I found, is when I request a resource in xml, /server/resource.xml, and if the data contains html entities, like laquo and raquo, (also there are japanese UTF8 parsed as html entities string in my data), the Plugin launch an error stating that these are invalid entites.

I solved this issue by decoding html entities before saving into xml document that will be finally shown in the http response