pike.hubbe.net

[Top]
__builtin
__builtin.security
previous__builtin.security.Creds()->set_default_creds() __builtin.security.get_current_creds()next

Method __builtin.security.call_with_creds()


Method call_with_creds

mixed __builtin.security.call_with_creds(object(Creds) creds, mixed func, mixed ... args)

Description

Call with credentials.

Sets the current credentials to creds, and calls func(@args). If creds is 0 (zero), the credentials from the current object will be used.

Note

The current creds or the current object must have the allow bit BIT_SECURITY set to allow calling with creds other than 0 (zero).


Extracted from Pike v7.3 release 11 at 2001-11-03.