php man page for uopz_flags

Query: uopz_flags

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

UOPZ_FLAGS(3)								 1							     UOPZ_FLAGS(3)

uopz_flags - Get or set flags on function or class

SYNOPSIS
int uopz_flags (string $class, string $function, int $flags)
DESCRIPTION
int uopz_flags (string $function, int $flags) Get or set the flags on a class or function entry at runtime
PARAMETERS
o $class - The name of a class o $function - The name of the function o $flags - A valid set of ZEND_ACC_ flags, ZEND_ACC_FETCH to read flags
RETURN VALUES
If setting, returns old flags, else returns flags
EXAMPLES
Example #1 uopz_flags(3) example <?php class Test { public function method() { return __CLASS__; } } $flags = uopz_flags("Test", "method", ZEND_ACC_FETCH); var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_PRIVATE)); var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_STATIC)); var_dump(uopz_flags("Test", "method", $flags|ZEND_ACC_STATIC|ZEND_ACC_PRIVATE)); var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_PRIVATE)); var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_STATIC)); ?> The above example will output something similar to: bool(false) bool(false) int(1234567890) bool(true) bool(true) PHP Documentation Group UOPZ_FLAGS(3)
Related Man Pages
property_exists(3) - php
isset(3) - php
mongodbdrivercommand(3) - php
empty(3) - php
is_callable(3) - php
Similar Topics in the Unix Linux Community
removing a character and addending to end in each line in a file