From:             Xuefer at 21cn dot com
Operating system: all
PHP version:      4.3.3RC2
PHP Bug Type:     Documentation problem
Bug description:  getimagesize better use list($a, $b) = functioncall() for the first 
example

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 ....


-- 
Edit bug report at http://bugs.php.net/?id=24930&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24930&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24930&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24930&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24930&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24930&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24930&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24930&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24930&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24930&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24930&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24930&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24930&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24930&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24930&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24930&r=gnused


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to