php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45411 getimagesize returns 6 instead of 5 values in array
Submitted: 2008-07-01 21:36 UTC Modified: 2008-07-02 10:41 UTC
From: lars at xaospage dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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: lars at xaospage dot de
New email:
PHP Version: OS:

 

 [2008-07-01 21:36 UTC] lars at xaospage dot de
Description:
------------
Docu says:

http://de3.php.net/manual/en/function.getimagesize.php

"Return Values

Returns an array with 5 elements."





Reproduce code:
---------------
I have 6 ;)

array(7) {
  [0]=>
  int(61)
  [1]=>
  int(74)
  [2]=>
  int(2)
  [3]=>
  string(22) "width="61" height="74""
  ["bits"]=>
  int(8)
  ["channels"]=>
  int(3)
  ["mime"]=>
  string(10) "image/jpeg"
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-01 21:37 UTC] lars at xaospage dot de
Typo, 7 values are in the array (0,1,2,3,bits,channels,mime)
 [2008-07-02 10:41 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC