#34764 [Opn->Csd]: Acc. to the manual exif_read_data() should always return an array, it doesn't
| From: | simp@php.net | Date: | Thu, 06 Oct 2005 17:06:33 +0000 |
| Subject: | #34764 [Opn->Csd]: Acc. to the manual exif_read_data() should always return an array, it doesn't | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370485@lists.php.net to get a copy of this message | ||
ID: 34764
Updated by: simp@php.net
Reported By: avarab at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: GNU/Linux
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-10-06 18:34:09] avarab at gmail dot com
Description:
------------
The prototype given for exif_read_data() at
http://www.php.net/exif_read_data is:
array exif_read_data ( string filename [, string sections [, bool
arrays [, bool thumbnail]]] )
According to this prototype the function should always return an array,
yet it returns false when fed with invalid input:
Reproduce code:
---------------
$ dd if=/dev/urandom of=foo count=1024
$ php -r "var_dump( exif_read_data( 'foo' ) );"
Warning: exif_read_data(foo): file not supported in Command line code
on line 1
bool(false)
Expected result:
----------------
The documentation should be updated to report that exif_read_data()
returns mixed (not array), array upon success, false upon failure.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34764&edit=1