phar.delmetadata(3) php man page | unix.com

Man Page: phar.delmetadata

Operating Environment: php

Section: 3

PHAR.DELMETADATA(3)							 1						       PHAR.DELMETADATA(3)

Phar::delMetadata - Deletes the global metadata of the phar

SYNOPSIS
public bool Phar::delMetadata (void )
DESCRIPTION
Note This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Deletes the global metadata of the phar
PARAMETERS
RETURN VALUES
returns TRUE on success, but it is better to check for thrown exception, and assume success if none is thrown.
ERRORS
/EXCEPTIONS Throws PharException if errors occur while flushing changes to disk.
EXAMPLES
Example #1 A Phar.delMetaData(3) example <?php try { $phar = new Phar('myphar.phar'); var_dump($phar->getMetadata()); $phar->setMetadata("hi there"); var_dump($phar->getMetadata()); $phar->delMetadata(); var_dump($phar->getMetadata()); } catch (Exception $e) { // handle errors } ?> The above example will output: NULL string(8) "hi there" NULL
SEE ALSO
Phar.getMetadata(3), Phar.setMetadata(3), Phar.hasMetadata(3). PHP Documentation Group PHAR.DELMETADATA(3)
Related Man Pages
phar.setstub(3) - php
pharfileinfo.setmetadata(3) - php
pharfileinfo.getmetadata(3) - php
phar.interceptfilefuncs(3) - php
phar.extractto(3) - php
Similar Topics in the Unix Linux Community
download di file di testo