Changeset 47601 for trunk/src/wp-includes/ID3/getid3.lib.php
- Timestamp:
- 04/20/2020 11:11:48 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/getid3.lib.php
r46586 r47601 16 16 { 17 17 /** 18 * @param string $string19 * @param bool $hex20 * @param bool $spaces21 * @param string $htmlencoding18 * @param string $string 19 * @param bool $hex 20 * @param bool $spaces 21 * @param string|bool $htmlencoding 22 22 * 23 23 * @return string … … 217 217 default: 218 218 return false; 219 break;220 219 } 221 220 if ($floatvalue >= 0) { … … 285 284 } 286 285 return $floatvalue; 287 break;288 286 289 287 default: 290 288 return false; 291 break;292 289 } 293 290 $exponentstring = substr($bitword, 1, $exponentbits); … … 501 498 502 499 /** 503 * @param array$array1504 * @param array$array2500 * @param mixed $array1 501 * @param mixed $array2 505 502 * 506 503 * @return array|false … … 524 521 525 522 /** 526 * @param array$array1527 * @param array$array2523 * @param mixed $array1 524 * @param mixed $array2 528 525 * 529 526 * @return array|false … … 545 542 546 543 /** 547 * @param array$array1548 * @param array$array2544 * @param mixed $array1 545 * @param mixed $array2 549 546 * 550 547 * @return array|false|null … … 736 733 737 734 /** 738 * @param SimpleXMLElement|array $XMLobject735 * @param SimpleXMLElement|array|mixed $XMLobject 739 736 * 740 * @return array737 * @return mixed 741 738 */ 742 739 public static function SimpleXMLelement2array($XMLobject) { … … 1480 1477 */ 1481 1478 public static function GetDataImageSize($imgData, &$imageinfo=array()) { 1479 if (PHP_VERSION_ID >= 50400) { 1480 $GetDataImageSize = @getimagesizefromstring($imgData, $imageinfo); 1481 if ($GetDataImageSize === false || !isset($GetDataImageSize[0], $GetDataImageSize[1])) { 1482 return false; 1483 } 1484 $GetDataImageSize['height'] = $GetDataImageSize[0]; 1485 $GetDataImageSize['width'] = $GetDataImageSize[1]; 1486 return $GetDataImageSize; 1487 } 1482 1488 static $tempdir = ''; 1483 1489 if (empty($tempdir)) { … … 1488 1494 // yes this is ugly, feel free to suggest a better way 1489 1495 if (include_once(dirname(__FILE__).'/getid3.php')) { 1490 if ($getid3_temp = new getID3()) { 1491 if ($getid3_temp_tempdir = $getid3_temp->tempdir) { 1492 $tempdir = $getid3_temp_tempdir; 1493 } 1494 unset($getid3_temp, $getid3_temp_tempdir); 1495 } 1496 $getid3_temp = new getID3(); 1497 if ($getid3_temp_tempdir = $getid3_temp->tempdir) { 1498 $tempdir = $getid3_temp_tempdir; 1499 } 1500 unset($getid3_temp, $getid3_temp_tempdir); 1496 1501 } 1497 1502 } … … 1569 1574 $ThisFileInfo['comments'][$tagname][$key] = $value; 1570 1575 } else { 1571 if ( isset($ThisFileInfo['comments'][$tagname])) {1576 if (!isset($ThisFileInfo['comments'][$tagname])) { 1572 1577 $ThisFileInfo['comments'][$tagname] = array($value); 1573 1578 } else {
Note: See TracChangeset
for help on using the changeset viewer.