php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64945 ZEND_ACC_ALLOW_STATIC vs ZEND_ACC_STATIC
Submitted: 2013-05-29 22:09 UTC Modified: 2013-09-25 07:34 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: info at markoheijnen dot com Assigned: mkoppanen (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 5.4.15 OS: irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at markoheijnen dot com
New email:
PHP Version: OS:

 

 [2013-05-29 22:09 UTC] info at markoheijnen dot com
Description:
------------
Static methods like Imagick::queryFormats shouldn't use ZEND_ACC_ALLOW_STATIC but 
most likely use ZEND_ACC_STATIC.

This currently happens in the WordPress code base. The Imagick code can be found 
here: http://core.trac.wordpress.org/browser/trunk/wp-includes/class-wp-image-
editor-imagick.php

Test script:
---------------
Imagick::queryFormats( 'JPG' );

Expected result:
----------------
no errors showing when using error_reporting(E_ALL);

Actual result:
--------------
Returns warning:

Strict Standards: Non-static method Imagick:queryformats() should not be called 
statically in /wp-includes/class-wp-image-editor-imagick.php on line 100.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-25 07:34 UTC] mkoppanen@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: mkoppanen
 [2013-09-25 07:34 UTC] mkoppanen@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-10-17 12:19 UTC] martin dot keckeis1 at gmail dot com
I still have this issue with 5.5.7...in which version this was fixed?
Imageick module version: 3.1.2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 17:01:29 2024 UTC