php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60834 Imagick::getFilename() is NOT a function
Submitted: 2012-01-21 20:37 UTC Modified: 2012-01-21 22:00 UTC
From: alexmicek at gmail dot com Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 5.3.9 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alexmicek at gmail dot com
New email:
PHP Version: OS:

 

 [2012-01-21 20:37 UTC] alexmicek at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/imagick.getfilename
---

SHOULD read:

string Imagick::getImageFilename ( void )


Test script:
---------------
$image-> new Imagick($path);

// current (wrong) documentation
echo $image->getFilename();

// new, CORRECT documentation
echo $image->getImageFilename();

// Please fix this documentation error. Thanks!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-21 22:00 UTC] frozenfire@php.net
-Status: Open +Status: Bogus
 [2012-01-21 22:00 UTC] frozenfire@php.net
Both Imagick::getFilename and Imagick::getImageFilename are methods.

The former performs the function of getting the filename of the sequence itself, 
while the latter gets the filename of a particular image in a sequence.

This is a subtle but important difference.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 23:01:33 2025 UTC