dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a4e21
)
Fix PHP7 warning "non well formed numeric value encountered"
author
Edward Chernenko
<edwardspec@gmail.com>
Mon, 25 Jun 2018 22:45:13 +0000
(
01:45
+0300)
committer
Edward Chernenko
<edwardspec@gmail.com>
Thu, 28 Jun 2018 21:05:48 +0000
(21:05 +0000)
PHP 7.1 warns when non-numeric string is implicitly cast to integer.
Change-Id: Ia46ea793e9495548c7d421b3372f6deaeda163f5
(cherry picked from commit
0a4a274b6255cc543df459f16902c1619697068f
)
includes/media/FormatMetadata.php
patch
|
blob
|
history
diff --git
a/includes/media/FormatMetadata.php
b/includes/media/FormatMetadata.php
index
f683da2
..
3ea71a9
100644
(file)
--- a/
includes/media/FormatMetadata.php
+++ b/
includes/media/FormatMetadata.php
@@
-271,7
+271,7
@@
class FormatMetadata extends ContextSource {
// TODO: YCbCrCoefficients #p27 (see annex E)
case 'ExifVersion':
case 'FlashpixVersion':
- $val =
"$val"
/ 100;
+ $val =
(int)$val
/ 100;
break;
case 'ColorSpace':