Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[-] BO: Avoid Warning in PHP 5.2 #159

Closed
wants to merge 2 commits into from

Conversation

Shagshag
Copy link
Contributor

@Shagshag Shagshag commented Jan 7, 2013

Avoid Warning in PHP 5.2 : "Wrong parameter count for clearstatcache()"

Avoid Warning in PHP 5.2 : "Wrong parameter count for clearstatcache()"
@@ -119,7 +119,12 @@ public static function checkImageMemoryLimit($image)
*/
public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false)
{
clearstatcache(true, $src_file);
// Avoid Warning in PHP 5.2 : "Wrong parameter count for clearstatcache()"
if (version_compare(PHP_VERSION, '5.3.0', '<') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should close the if structure. Like this:
if (version_compare(PHP_VERSION, '5.3.0', '<')) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@DamienMetzger
Copy link
Contributor

Already fixed!
Thank you for the pull request, keep submitting we like it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants