PHP: gnupg_seterrormode - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gnupg_setsignmode gnupg_setarmor

Last updated: Sat, 27 Jan 2007

view this page in

# gnupg_seterrormode

(no version information, might be only in CVS)

gnupg_seterrormode -- Sets the mode for error_reporting

## Описание

void gnupg_seterrormode ( resource identifier, int errormode )

`errormode` takes a constant indicating what type of error_reporting should be used. The possible values are `GNUPG_ERROR_WARNING`, `GNUPG_ERROR_EXCEPTION` and `GNUPG_ERROR_SILENT`. By default `GNUPG_ERROR_SILENT` is used.

## Примеры

Пример 1. Procedural gnupg_seterrormode() example

`<?php $res = gnupg_init(); gnupg_seterrormode($res,GNUPG_ERROR_WARNING); // raise a PHP-Warning in case of an error ?>`

Пример 2. OO gnupg_seterrormode() example

`<?php $gpg = new gnupg(); $gpg -> seterrormode(gnupg::ERROR_EXCEPTION); // throw an exception in case of an error ?>`

add a note User Contributed Notes
gnupg_seterrormode
There are no user contributed notes for this page.
gnupg_setsignmode gnupg_setarmor

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST