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 classSYNOPSISint uopz_flags (string $class, string $function, int $flags)DESCRIPTIONint uopz_flags (string $function, int $flags) Get or set the flags on a class or function entry at runtimePARAMETERSo $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 flagsRETURN VALUESIf setting, returns old flags, else returns flagsEXAMPLESExample #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 |
mongodbdrivercommand(3) - php |
is_float(3) - php |
mysqlnd_ms_match_wild(3) - php |
var_dump(3) - php |
Similar Topics in the Unix Linux Community |
---|
removing a character and addending to end in each line in a file |