|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11283 read_exif_data only gets first "Comments" record
Submitted: 2001-06-05 05:33 UTC Modified: 2005-02-01 23:08 UTC
From: roland at astrofoto dot org Assigned:
Status: Closed Package: EXIF related
PHP Version: 4.0 Latest CVS (2001-06-05) OS: Linux 2.2.16/RedHat 7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
9 + 37 = ?
Subscribe to this entry?

 [2001-06-05 05:33 UTC] roland at astrofoto dot org
This is actually CVS from 2001-06-03/04.

I have a JPG which has comments added to it of the form "<KEY>: <VALUE>" so I can add image titles and such that will propagate with the image.  When I look at the array retrieved by read_exif_data, it includes only one [Comments] element, the first comment added to the file.

The comments were added with wrjpgcom and can be read back with rdjpgcom; the latter retrieves all of the comments.

For my purposes, I can shove everything into a single comment, but it still looks like a bug to me.  I would guess that if there is more than one commen block that read_exif_data should make the [Comments] element an array.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-03 21:57 UTC]
could you please place some of those jpegs somewhere
where we can access them to test this.


 [2001-08-03 22:29 UTC] roland at astrofoto dot org
I've put a picture online which has the following JPEG comments

Title:Looking Coy
Subject:Matthew Roberts
Location:Forest Hills, NY

The image is at

 [2001-08-04 18:34 UTC]
Ok, read_exif_data() will now return an array of comments if there is more than 1.  Please check the CVS version and let me know if it works for you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 23:01:27 2024 UTC