Doc #69387 [Opn->Dup]: Example code for Imagick::queryFormats() is inaccurate

From: Date: Wed, 08 Apr 2015 17:05:04 +0000
Subject: Doc #69387 [Opn->Dup]: Example code for Imagick::queryFormats() is inaccurate
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12120@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69387&edit=1 ID: 69387 Updated by: danack@php.net Reported by: justins at journeygroup dot com Summary: Example code for Imagick::queryFormats() is inaccurate -Status: Open +Status: Duplicate Type: Documentation Problem Package: imagick Operating System: Mac OS 10.10.2 PHP Version: 5.5.23 Block user comment: N Private report: N New Comment: Duplicate of https://bugs.php.net/bug.php?id=64945 which was fixed on 2013-09-25 Previous Comments: ------------------------------------------------------------------------ [2015-04-07 17:09:18] justins at journeygroup dot com You're right, I should have worded my initial report better. You _can_ execute the method, however its not preferred to call non-static methods with a static syntax. With strict mode it barks: "Strict Standards: Non-static method Imagick::queryformats() should not be called statically" ------------------------------------------------------------------------ [2015-04-07 11:33:56] danack@php.net What makes you say that it can't be called statically? It appears to be working for me - http://phpimagick.com/Imagick/queryFormats ------------------------------------------------------------------------ [2015-04-06 18:41:56] justins at journeygroup dot com Description: ------------ --- From manual page: http://www.php.net/imagick.queryformats --- The manual's example is faulty. The method Imagick::queryFormats cannot be called statically. Suggest that replacing the example with a var_dump() and an abbreviated list of expected output would be more helpful. Test script: --------------- Example code on: http://www.php.net/imagick.queryformats ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69387&edit=1

« previous php.doc.bugs (#12120) next »