php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24930 getimagesize better use list($a, $b) = functioncall() for the first example
Submitted: 2003-08-04 02:53 UTC Modified: 2003-08-04 04:00 UTC
From: Xuefer at 21cn dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.3RC2 OS: all
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2003-08-04 02:53 UTC] Xuefer at 21cn dot com
Description:
------------
list($width, $height, $type, $imgattr) = getImageSize($filename);

is a better to be the first example
even better than:
[quote]
Returns an array with 4 elements. Index 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 is a flag indicating the type of the image: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 .........
[/quote]
everytime, i have to read through the whole text in order to get which is which, element 0 means $width, element 1 means $height ....


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-04 04:00 UTC] didou@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

http://news.php.net/article.php?group=php.doc&article=969355553

here you are :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 04:00:03 2025 UTC