Fix for php 7.4

This commit is contained in:
Laurent Destailleur 2019-12-23 16:41:22 +01:00
parent f193d3edd8
commit 8e78dbad69
2 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,8 @@ matrix:
env: DB=mariadb env: DB=mariadb
- php: '7.2' - php: '7.2'
env: DB=mariadb env: DB=mariadb
- php: '7.3'
env: DB=mariadb
- php: '5.6' - php: '5.6'
env: DB=postgresql env: DB=postgresql
- php: '7.0' - php: '7.0'
@ -76,6 +78,8 @@ matrix:
env: DB=postgresql env: DB=postgresql
- php: '7.2' - php: '7.2'
env: DB=postgresql env: DB=postgresql
- php: '7.3'
env: DB=postgresql
- php: nightly - php: nightly
env: DB=postgresql env: DB=postgresql

View File

@ -1347,7 +1347,7 @@ function hexbin($hexa)
$strLength = dol_strlen($hexa); $strLength = dol_strlen($hexa);
for ($i = 0; $i < $strLength; $i++) for ($i = 0; $i < $strLength; $i++)
{ {
$bin .= str_pad(decbin(hexdec($hexa{$i})), 4, '0', STR_PAD_LEFT); $bin .= str_pad(decbin(hexdec($hexa[$i])), 4, '0', STR_PAD_LEFT);
} }
return $bin; return $bin;
} }