summaryrefslogtreecommitdiff
path: root/inc/JpegMeta.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2013-11-02 13:10:14 +0000
committerAnika Henke <anika@selfthinker.org>2013-11-02 13:10:14 +0000
commitc5393ecb1aa570830d21e9dc95b4c21cd9aa9c01 (patch)
tree96e8dc34468a325596a5f94c85e38374fbc4b9ba /inc/JpegMeta.php
parent71c1143e8785954ea00a62aeb755ca7d8fa47e56 (diff)
parent38d74b12176722ce52dc1905c13816a78a2551ee (diff)
downloadrpg-c5393ecb1aa570830d21e9dc95b4c21cd9aa9c01.tar.gz
rpg-c5393ecb1aa570830d21e9dc95b4c21cd9aa9c01.tar.bz2
Merge remote-tracking branch 'origin/master' into video-audio
Conflicts: inc/parser/xhtml.php
Diffstat (limited to 'inc/JpegMeta.php')
-rw-r--r--inc/JpegMeta.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/inc/JpegMeta.php b/inc/JpegMeta.php
index ba6a2b5bb..cb1772736 100644
--- a/inc/JpegMeta.php
+++ b/inc/JpegMeta.php
@@ -161,7 +161,7 @@ class JpegMeta {
if($info != false) break;
}
- if($info === false) $info = $alt;
+ if($info === false) $info = '';
if(is_array($info)){
if(isset($info['val'])){
$info = $info['val'];
@@ -874,7 +874,7 @@ class JpegMeta {
/*************************************************************/
/*************************************************************/
- function _dispose() {
+ function _dispose($fileName = "") {
$this->_fileName = $fileName;
$this->_fp = null;
@@ -975,7 +975,7 @@ class JpegMeta {
if ($capture) {
if ($length)
- $this->_markers[$count]['data'] =& fread($this->_fp, $length);
+ $this->_markers[$count]['data'] = fread($this->_fp, $length);
else
$this->_markers[$count]['data'] = "";
}
@@ -1452,7 +1452,7 @@ class JpegMeta {
if ($this->_markers[$i]['marker'] == 0xE1) {
$signature = $this->_getFixedString($this->_markers[$i]['data'], 0, 29);
if ($signature == "http://ns.adobe.com/xap/1.0/\0") {
- $data =& substr($this->_markers[$i]['data'], 29);
+ $data = substr($this->_markers[$i]['data'], 29);
break;
}
}
@@ -2183,7 +2183,8 @@ class JpegMeta {
}
while ($j < $count) {
- $this->_putString($value, $j * 4, "\0\0\0\0");
+ $v = "\0\0\0\0";
+ $this->_putString($value, $j * 4, $v);
$j++;
}
break;
@@ -2206,7 +2207,8 @@ class JpegMeta {
}
while ($j < $count) {
- $this->_putString($value, $j * 8, "\0\0\0\0\0\0\0\0");
+ $v = "\0\0\0\0\0\0\0\0";
+ $this->_putString($value, $j * 8, $v);
$j++;
}
break;
@@ -2335,7 +2337,7 @@ class JpegMeta {
function _readIPTC(&$data, $pos = 0) {
$totalLength = strlen($data);
- $IPTCTags =& $this->_iptcTagNames();
+ $IPTCTags = $this->_iptcTagNames();
while ($pos < ($totalLength - 5)) {
$signature = $this->_getShort($data, $pos);