Changeset 56975 for trunk/src/wp-includes/ID3/getid3.php
- Timestamp:
- 10/20/2023 01:27:56 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/getid3.php
r54376 r56975 388 388 protected $startup_warning = ''; 389 389 390 const VERSION = '1.9.2 2-202207161647';390 const VERSION = '1.9.23-202310190849'; 391 391 const FREAD_BUFFER_SIZE = 32768; 392 392 … … 439 439 } 440 440 441 // check for magic quotes in PHP < 7.4.0 (when these functions became deprecated)442 if (version_compare(PHP_VERSION, ' 7.4.0', '<')) {441 // check for magic quotes in PHP < 5.4.0 (when these options were removed and getters always return false) 442 if (version_compare(PHP_VERSION, '5.4.0', '<')) { 443 443 // Check for magic_quotes_runtime 444 444 if (function_exists('get_magic_quotes_runtime')) { 445 445 // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_runtimeDeprecated 446 if (get_magic_quotes_runtime()) { 446 if (get_magic_quotes_runtime()) { // @phpstan-ignore-line 447 447 $this->startup_error .= 'magic_quotes_runtime must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_runtime(0) and set_magic_quotes_runtime(1).'."\n"; 448 448 } … … 451 451 if (function_exists('get_magic_quotes_gpc')) { 452 452 // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_gpcDeprecated 453 if (get_magic_quotes_gpc()) { 453 if (get_magic_quotes_gpc()) { // @phpstan-ignore-line 454 454 $this->startup_error .= 'magic_quotes_gpc must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_gpc(0) and set_magic_quotes_gpc(1).'."\n"; 455 455 } … … 1465 1465 'module' => 'xz', 1466 1466 'mime_type' => 'application/x-xz', 1467 'fail_id3' => 'ERROR', 1468 'fail_ape' => 'ERROR', 1469 ), 1470 1471 // XZ - data - XZ compressed data 1472 '7zip' => array( 1473 'pattern' => '^7z\\xBC\\xAF\\x27\\x1C', 1474 'group' => 'archive', 1475 'module' => '7zip', 1476 'mime_type' => 'application/x-7z-compressed', 1467 1477 'fail_id3' => 'ERROR', 1468 1478 'fail_ape' => 'ERROR', … … 1983 1993 $BitrateUncompressed = $this->info['video']['resolution_x'] * $this->info['video']['resolution_y'] * $this->info['video']['bits_per_sample'] * $FrameRate; 1984 1994 1985 $this->info['video']['compression_ratio'] = $BitrateCompressed / $BitrateUncompressed;1995 $this->info['video']['compression_ratio'] = getid3_lib::SafeDiv($BitrateCompressed, $BitrateUncompressed, 1); 1986 1996 return true; 1987 1997 } … … 2189 2199 2190 2200 /** 2201 * @phpstan-impure 2202 * 2191 2203 * @return int|bool 2192 2204 */ … … 2200 2212 /** 2201 2213 * @param int $bytes 2214 * 2215 * @phpstan-impure 2202 2216 * 2203 2217 * @return string|false … … 2246 2260 * @param int $whence 2247 2261 * 2262 * @phpstan-impure 2263 * 2248 2264 * @return int 2249 2265 * … … 2287 2303 2288 2304 /** 2305 * @phpstan-impure 2306 * 2289 2307 * @return string|false 2290 2308 * … … 2342 2360 2343 2361 /** 2362 * @phpstan-impure 2363 * 2344 2364 * @return bool 2345 2365 */
Note: See TracChangeset
for help on using the changeset viewer.