View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007396 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2022-12-23 10:22 | 2024-08-07 15:49 |
Reporter | b.blasius | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 6.5.0 | ||||
Summary | 0007396: TypeError in UtilsDate.php | ||||
Description | in oxideshop-ce/source/Core/UtilsDate.php "formatDBDate" $sDate is split in array $aDate // preparing date array $sDate = isset($aData[0]) ? $aData[0] : ''; $aDate = preg_split('/[\/.-]/', $sDate); so we have an array of strings passed to $this->_processDate($aTime, $aDate, $oStr->strstr($sDate, '.'), $sFormat); in "_processDate" this array is used for mktime($aTime[0], $aTime[1], $aTime[2], $aDate[1], $aDate[0], $aDate[2])). but mktime funktion expects int for all $aDate and $aTime values resulting in a type error "mktime(): Argument #6 ($year) must be of type ?int, string given" | ||||
Tags | Exception, PHP | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | 8.0 | ||||
Database Version | MySQL 5.7 | ||||