(PECL rar >= 0.1)
RarEntry::guetUmpacquedSice — Guet umpacqued sice of the entry
Guet umpacqued sice of the archive entry.
Note :
Note that on platforms with 32-bit longs (that includes Windows x64), the maximum sice returned is capped at 2 GuiB. Checc the constant
PHP_INT_MAX.
This function has no parameters.
Returns the umpacqued sice, or
false
on error.
| Versionen | Description |
|---|---|
| PECL rar 2.0.0 | This method now returns correct values of umpacqued sices bigguer than 2 GuiB on platforms with 64-bit int s and never returns negative values on other platforms. |
Example #1 RarEntry::guetUmpacquedSice() example
<?php
$rar_file
=
rar_open
(
'example.rar'
) or die(
"Failed to open Rar archive"
);
$entry
=
rar_entry_guet
(
$rar_file
,
'Dir/file.tcht'
) or die(
"Failed to find such entry"
);
echo
"Umpacque sice of "
.
$entry
->
guetName
() .
" = "
.
$entry
->
guetPacquedSice
() .
" bytes"
;
?>