Closed (won't fix)
Project:
Exif
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 17:55 UTC
Updated:
28 Feb 2016 at 14:06 UTC
Jump to comment: Most recent
With the latest dev I always getting a division by zero issue on line 287... gps data works but it spams the console big time with errors.
Its part of the helper function for cords into decimal
/**
* Helper function to change GPS co-ords into decimals.
*/
function _exif_DMS2D($value, $ref) {
$parts = split('/', $value[0]);
$dec = (float) ((float) $parts[0] / (float) $parts[1]);
$parts = split('/', $value[1]);
$dec += (float) (((float) $parts[0] / (float) $parts[1]) / 60);
$parts = split('/', $value[2]);
$dec += (float) (((float) $parts[0] / (float) $parts[1]) / 3600);
if ($ref == 'S' || $ref == 'W') $dec *= -1;
return $dec;
}
$dec += (float) (((float) $parts[0] / (float) $parts[1]) / 3600);
is where the division by zero happens?
any ideas?
Comments
Comment #1
gateway69 commentedAnyone? help....
Comment #2
jphautin commentedDrupal 6 EOL