5.1.3. Disable Functions
- ZEND_API int zend_disable_class(char *class_name, size_t class_name_length) /* {{{ */
- {
- zend_class_entry *disabled_class;
- zend_string *key;
-
- key = zend_string_alloc(class_name_length, 0);
- zend_str_tolower_copy(ZSTR_VAL(key), class_name, class_name_length);
- zend_string_release_ex(key, 0);
- if (!disabled_class) {
- return FAILURE;
- }
- INIT_CLASS_ENTRY_INIT_METHODS((*disabled_class), disabled_class_new);
- disabled_class->create_object = display_disabled_class;
- zend_hash_clean(&disabled_class->function_table);
- return SUCCESS;
- }
5.1.3.2. Bypass