tractorcow / silverstripe-dynamiccache

Simple on the fly caching of dynamic content for Silverstripe
39 stars 27 forks source link

PHP 3 to PHP 4 requirement #20

Closed selay closed 10 years ago

selay commented 10 years ago

I think the requirements info should be updated to PHP 5.4 because this module uses is_a() php function in DynamicCacheControllerExtension.php file. This function only accepts three parameters after PHP 5.3.9. If you use PHP version below that, it will throw warning/errors like s_a() expects exactly 2 parameters, 3 given

From PHP documentation: The change Ia42e374202845dfe5e95c72512e9fefb4f00e789 introduced usage of is_a() with 3 arguments as from PHP 5.3.9.

tractorcow commented 10 years ago

There you go :)