$45 GRAYBYTE WORDPRESS FILE MANAGER $81

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php51/usr/include/php/Zend/

HOME
Current File : /opt/alt/php51/usr/include/php/Zend//zend_object_handlers.h
/* 
   +----------------------------------------------------------------------+
   | Zend Engine                                                          |
   +----------------------------------------------------------------------+
   | Copyright (c) 1998-2006 Zend Technologies Ltd. (http://www.zend.com) |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.00 of the Zend license,     |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | http://www.zend.com/license/2_00.txt.                                |
   | If you did not receive a copy of the Zend license and are unable to  |
   | obtain it through the world-wide-web, please send a note to          |
   | license@zend.com so we can mail you a copy immediately.              |
   +----------------------------------------------------------------------+
   | Authors: Andi Gutmans <andi@zend.com>                                |
   |          Zeev Suraski <zeev@zend.com>                                |
   +----------------------------------------------------------------------+
*/

/* $Id: zend_object_handlers.h,v 1.47.2.2 2006/01/04 23:53:04 andi Exp $ */

#ifndef ZEND_OBJECT_HANDLERS_H
#define ZEND_OBJECT_HANDLERS_H

union _zend_function;
struct _zend_property_info;

/* The following rule applies to read_property() and read_dimension() implementations:
   If you return a zval which is not otherwise referenced by the extension or the engine's
   symbol table, its reference count should be 0.
*/
/* Used to fetch property from the object, read-only */
typedef zval *(*zend_object_read_property_t)(zval *object, zval *member, int type TSRMLS_DC);

/* Used to fetch dimension from the object, read-only */
typedef zval *(*zend_object_read_dimension_t)(zval *object, zval *offset, int type TSRMLS_DC);


/* The following rule applies to write_property() and write_dimension() implementations:
   If you receive a value zval in write_property/write_dimension, you may only modify it if
   its reference count is 1.  Otherwise, you must create a copy of that zval before making
   any changes.  You should NOT modify the reference count of the value passed to you.
*/
/* Used to set property of the object */
typedef void (*zend_object_write_property_t)(zval *object, zval *member, zval *value TSRMLS_DC);

/* Used to set dimension of the object */
typedef void (*zend_object_write_dimension_t)(zval *object, zval *offset, zval *value TSRMLS_DC);


/* Used to create pointer to the property of the object, for future direct r/w access */
typedef zval **(*zend_object_get_property_ptr_ptr_t)(zval *object, zval *member TSRMLS_DC);

/* Used to set object value. Can be used to override assignments and scalar
   write ops (like ++, +=) on the object */
typedef void (*zend_object_set_t)(zval **property, zval *value TSRMLS_DC);

/* Used to get object value. Can be used when converting object value to
 * one of the basic types and when using scalar ops (like ++, +=) on the object
 */
typedef zval* (*zend_object_get_t)(zval *property TSRMLS_DC);

/* Used to check if a property of the object exists */
/* param has_set_exists:
 * 0 (has) whether property exists and is not NULL
 * 1 (set) whether property exists and is true
 * 2 (exists) whether property exists
 */
typedef int (*zend_object_has_property_t)(zval *object, zval *member, int has_set_exists TSRMLS_DC);

/* Used to check if a dimension of the object exists */
typedef int (*zend_object_has_dimension_t)(zval *object, zval *member, int check_empty TSRMLS_DC);

/* Used to remove a property of the object */
typedef void (*zend_object_unset_property_t)(zval *object, zval *member TSRMLS_DC);

/* Used to remove a dimension of the object */
typedef void (*zend_object_unset_dimension_t)(zval *object, zval *offset TSRMLS_DC);

/* Used to get hash of the properties of the object, as hash of zval's */
typedef HashTable *(*zend_object_get_properties_t)(zval *object TSRMLS_DC);

/* Used to call methods */
/* args on stack! */
/* Andi - EX(fbc) (function being called) needs to be initialized already in the INIT fcall opcode so that the parameters can be parsed the right way. We need to add another callback for this.
 */
typedef int (*zend_object_call_method_t)(char *method, INTERNAL_FUNCTION_PARAMETERS);
typedef union _zend_function *(*zend_object_get_method_t)(zval **object_ptr, char *method, int method_len TSRMLS_DC);
typedef union _zend_function *(*zend_object_get_constructor_t)(zval *object TSRMLS_DC);

/* Object maintenance/destruction */
typedef void (*zend_object_add_ref_t)(zval *object TSRMLS_DC);
typedef void (*zend_object_del_ref_t)(zval *object TSRMLS_DC);
typedef void (*zend_object_delete_obj_t)(zval *object TSRMLS_DC);
typedef zend_object_value (*zend_object_clone_obj_t)(zval *object TSRMLS_DC);

typedef zend_class_entry *(*zend_object_get_class_entry_t)(zval *object TSRMLS_DC);
typedef int (*zend_object_get_class_name_t)(zval *object, char **class_name, zend_uint *class_name_len, int parent TSRMLS_DC);
typedef int (*zend_object_compare_t)(zval *object1, zval *object2 TSRMLS_DC);
typedef int (*zend_object_cast_t)(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC);

/* updates *count to hold the number of elements present and returns SUCCESS.
 * Returns FAILURE if the object does not have any sense of overloaded dimensions */
typedef int (*zend_object_count_elements_t)(zval *object, long *count TSRMLS_DC);

struct _zend_object_handlers {
	/* general object functions */
	zend_object_add_ref_t					add_ref;
	zend_object_del_ref_t					del_ref;
	zend_object_clone_obj_t					clone_obj;
	/* individual object functions */
	zend_object_read_property_t				read_property;
	zend_object_write_property_t			write_property;
	zend_object_read_dimension_t			read_dimension;
	zend_object_write_dimension_t			write_dimension;
	zend_object_get_property_ptr_ptr_t		get_property_ptr_ptr;
	zend_object_get_t						get;
	zend_object_set_t						set;
	zend_object_has_property_t				has_property;
	zend_object_unset_property_t			unset_property;
	zend_object_has_dimension_t				has_dimension;
	zend_object_unset_dimension_t			unset_dimension;
	zend_object_get_properties_t			get_properties;
	zend_object_get_method_t				get_method;
	zend_object_call_method_t				call_method;
	zend_object_get_constructor_t			get_constructor;
	zend_object_get_class_entry_t			get_class_entry;
	zend_object_get_class_name_t			get_class_name;
	zend_object_compare_t					compare_objects;
	zend_object_cast_t						cast_object;
	zend_object_count_elements_t			count_elements;
};

extern ZEND_API zend_object_handlers std_object_handlers;

BEGIN_EXTERN_C()
ZEND_API union _zend_function *zend_std_get_static_method(zend_class_entry *ce, char *function_name_strval, int function_name_strlen TSRMLS_DC);
ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, char *property_name, int property_name_len, zend_bool silent TSRMLS_DC);
ZEND_API zend_bool zend_std_unset_static_property(zend_class_entry *ce, char *property_name, int property_name_len TSRMLS_DC);
ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce, zval *member, int silent TSRMLS_DC);

ZEND_API int zend_std_cast_object_tostring(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC);


#define IS_ZEND_STD_OBJECT(z)  ((z).type == IS_OBJECT && (Z_OBJ_HT((z))->get_class_entry != NULL))
#define HAS_CLASS_ENTRY(z) (Z_OBJ_HT(z)->get_class_entry != NULL)

ZEND_API int zend_check_private(union _zend_function *fbc, zend_class_entry *ce, char *function_name_strval, int function_name_strlen TSRMLS_DC);

ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope);

ZEND_API int zend_check_property_access(zend_object *zobj, char *prop_info_name TSRMLS_DC);

ZEND_API void zend_std_call_user_call(INTERNAL_FUNCTION_PARAMETERS);
END_EXTERN_C()

#endif

/*
 * Local variables:
 * tab-width: 4
 * c-basic-offset: 4
 * indent-tabs-mode: t
 * End:
 */

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 Nov 2024 10.02 PM
root / 996
0755
FlexLexer.h
5.606 KB
8 Nov 2024 10.02 PM
root / 996
0644
acconfig.h
3.216 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend.h
20.447 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_API.h
31.731 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_alloc.h
9.031 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_builtin_functions.h
1.65 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_compile.h
25.252 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_config.h
0.104 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_config.nw.h
2.5 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_config.w32.h
3.058 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_constants.h
4.058 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_dynamic_array.h
1.923 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_errors.h
1.996 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_exceptions.h
2.649 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_execute.h
7.217 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_extensions.h
4.321 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_fast_cache.h
4.072 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_globals.h
7.304 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_globals_macros.h
3.368 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_hash.h
15.93 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_highlight.h
2.473 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_indent.h
1.49 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_ini.h
9.175 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_ini_parser.h
2.315 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_ini_scanner.h
1.729 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_interfaces.h
2.733 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_istdiostream.h
1.667 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_iterators.h
3.799 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_language_parser.h
7.386 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_language_scanner.h
2.308 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_list.h
4.601 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_llist.h
3.938 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_mm.h
2.604 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_modules.h
4.592 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_multibyte.h
3.612 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_multiply.h
2.055 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_object_handlers.h
7.903 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_objects.h
2.217 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_objects_API.h
3.693 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_operators.h
11.072 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_ptr_stack.h
3.92 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_qsort.h
1.48 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_stack.h
2.344 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_static_allocator.h
1.878 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_stream.h
2.484 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_strtod.h
1.453 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_ts_hash.h
6.771 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_types.h
1.801 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_variables.h
3.777 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_vm.h
1.401 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_vm_def.h
106.467 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_vm_execute.h
875.519 KB
8 Nov 2024 10.02 PM
root / 996
0644
zend_vm_opcodes.h
6.434 KB
8 Nov 2024 10.02 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF