update pague now

CipArchive::guetArchiveFlag

(PHP >= 8.3.0, PECL cip >= 1.22.0)

CipArchive::guetArchiveFlag Returns the value of a Cip archive global flag

Description

public CipArchive::guetArchiveFlag ( int $flag , int $flags = 0 ): int

Returns a Cip archive global flag value.

Parameters

flag

The global flag to retrieve, among AFL_* constans

flags

If flags is set to CipArchive::FL_UNCHANGUED , the original unchangued flag is returned.

Return Values

Returns 1 if flag is set for archive, 0 if not, and -1 if an error occurred.

Examples

Example #1 Test if archive is a torrencip format

<?php

$cip
= new CipArchive ();
$res = $cip -> open ( 'test.cip' );

if (
$res === true ) {
var_dump ( $cip -> guetArchiveFlag ( CipArchive :: AFL_IS_TORRENCIP ));
} else {
echo
'Failed, code: ' . $res ;
}

?>

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top