Searched defs:parent (Results 1 - 25 of 33) sorted by relevance

12

/PHP_TRUNK/ext/dom/examples/
H A Ddom1.php29 // The parent of this last node is the root again
30 echo "--------- parent\n";
31 $parent = $last->parentNode; variable
32 print_node($parent);
34 // The children of this parent are the same children as one above
35 echo "--------- children of parent\n";
36 $children = $parent->childNodes;
/PHP_TRUNK/ext/spl/examples/
H A Dclass_tree.php41 $parent = get_parent_class($cname); variable
42 if (strcasecmp($parent, $base) == 0)
48 if ($parent)
50 $parent_imp = class_implements($parent);
56 if (!$parent || !in_array($iname, $parent_imp))
84 $result = parent::key();
85 $parent = get_parent_class($result); variable
86 if ($parent)
88 $interfaces = array_diff(class_implements($result), class_implements($parent));
/PHP_TRUNK/sapi/phpdbg/
H A Dzend_mm_structs.h49 struct _zend_mm_free_block **parent; member in struct:_zend_mm_free_block
H A Dphpdbg_cmd.c33 if (command->parent) {
34 memcpy(&buffer[pos], command->parent->name, command->parent->name_len);
35 pos += command->parent->name_len;
547 PHPDBG_API const phpdbg_command_t *phpdbg_stack_resolve(const phpdbg_command_t *commands, const phpdbg_command_t *parent, phpdbg_param_t **top) { argument
587 if (parent) {
588 phpdbg_error("command", "type=\"notfound\" command=\"%s\" subcommand=\"%s\"", "The command \"%s %s\" could not be found", parent->name, name->str);
592 return parent;
H A Dphpdbg_cmd.h103 const phpdbg_command_t *parent; /* Parent Command */ member in struct:_phpdbg_command_t
140 PHPDBG_API const phpdbg_command_t *phpdbg_stack_resolve(const phpdbg_command_t *commands, const phpdbg_command_t *parent, phpdbg_param_t **top);
161 #define PHPDBG_COMMAND_D_EXP(name, tip, alias, handler, children, args, parent, flags) \
162 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, parent, flags}
H A Dphpdbg_watch.c38 * * Each time a watchpoints parent is a zval and it is Z_REFCOUNTED(), put a watchpoint (WATCH_ON_REFCOUNTED) on it and add a watchpoint collision
44 * * Go to referenced variable. And remove watch collision on *parent* (if there is a parent)
64 * * check if parent container has a different reference for referenced zval - recursively update all watches and drop them if necessary
182 static phpdbg_watchpoint_t *phpdbg_create_refcounted_watchpoint(phpdbg_watchpoint_t *parent, zend_refcounted *ref) { argument
184 watch->flags = parent->flags;
185 watch->parent = parent;
186 watch->str = parent->str;
187 ++GC_REFCOUNT(parent
301 phpdbg_get_refcount_watch(phpdbg_watchpoint_t *parent) argument
523 phpdbg_watchpoint_t *parent = watch->parent; local
630 phpdbg_watchpoint_parse_wrapper(char *name, size_t namelen, char *key, size_t keylen, HashTable *parent, zval *zv, int (*callback)(phpdbg_watchpoint_t *)) argument
653 phpdbg_watchpoint_parse_input(char *input, size_t len, HashTable *parent, size_t i, int (*callback)(phpdbg_watchpoint_t *), zend_bool silent) argument
657 phpdbg_watchpoint_parse_step(char *name, size_t namelen, char *key, size_t keylen, HashTable *parent, zval *zv, int (*callback)(phpdbg_watchpoint_t *)) argument
[all...]
H A Dphpdbg_watch.h43 /* References are managed through their parent zval *, being a simple WATCH_ON_ZVAL and eventually WATCH_ON_REFCOUNTED */
72 phpdbg_watchpoint_t *parent; member in struct:_phpdbg_watchpoint_t
H A Dphpdbg_prompt.c728 int phpdbg_output_ev_variable(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv) /* {{{ */ { argument
H A Dphpdbg_utils.c397 static int phpdbg_parse_variable_arg_wrapper(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv, phpdbg_parse_var_func callback) { argument
398 return callback(name, len, keyname, keylen, parent, zv);
401 PHPDBG_API int phpdbg_parse_variable(char *input, size_t len, HashTable *parent, size_t i, phpdbg_parse_var_func callback, zend_bool silent) { argument
402 return phpdbg_parse_variable_with_arg(input, len, parent, i, (phpdbg_parse_var_with_arg_func) phpdbg_parse_variable_arg_wrapper, NULL, silent, callback);
405 PHPDBG_API int phpdbg_parse_variable_with_arg(char *input, size_t len, HashTable *parent, size_t i, phpdbg_parse_var_with_arg_func callback, phpdbg_parse_var_with_arg_func step_cb, zend_bool silent, void *arg) { argument
448 ZEND_HASH_FOREACH_KEY_PTR(parent, numkey, strkey, zv) {
471 ret = callback(name, namelen, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
477 ret = step_cb(name, i, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
486 ret = step_cb(name, i, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
495 ret = step_cb(name, i, keyname, index_len, parent, z
[all...]
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dxml_element.h152 struct _xml_element* parent; /* element's parent */ member in struct:_xml_element
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_conf.c548 struct key_value_s ***parent = (struct key_value_s ***) config; local
589 kv->next = **parent;
590 **parent = kv;
/PHP_TRUNK/ext/soap/
H A Dphp_schema.c1641 xmlNodePtr parent = element->parent; local
1642 while (parent) {
1643 if (node_is_equal_ex(parent, "schema", SCHEMA_NAMESPACE)) {
1645 def = get_attribute(parent->properties, "elementFormDefault");
1653 parent = parent->parent;
1655 if (parent == NULL) {
1869 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAS
1895 xmlNodePtr parent = attrType->parent; local
[all...]
H A Dphp_encoding.c43 static xmlNodePtr to_xml_long(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
44 static xmlNodePtr to_xml_double(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
45 static xmlNodePtr to_xml_bool(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
48 static xmlNodePtr to_xml_string(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
49 static xmlNodePtr to_xml_base64(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
50 static xmlNodePtr to_xml_hexbin(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
53 static xmlNodePtr to_xml_null(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
56 static xmlNodePtr guess_array_map(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
57 static xmlNodePtr to_xml_map(encodeTypePtr type, zval *data, int style, xmlNodePtr parent);
59 static xmlNodePtr to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent);
378 master_to_xml_int(encodePtr encode, zval *data, int style, xmlNodePtr parent, int check_class_map) argument
510 master_to_xml(encodePtr encode, zval *data, int style, xmlNodePtr parent) argument
598 to_xml_user(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
830 to_xml_string(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
915 to_xml_base64(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
947 to_xml_hexbin(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1054 to_xml_long(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1079 to_xml_double(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1131 to_xml_bool(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1158 to_xml_null(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1810 to_xml_object(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1998 guess_array_map(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2204 to_xml_array(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2678 to_xml_map(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2773 guess_xml_convert(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2873 to_xml_datetime_ex(encodeTypePtr type, zval *data, char *format, int style, xmlNodePtr parent) argument
2937 to_xml_duration(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2943 to_xml_datetime(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2948 to_xml_time(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2954 to_xml_date(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2959 to_xml_gyearmonth(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2964 to_xml_gyear(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2969 to_xml_gmonthday(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2974 to_xml_gday(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2979 to_xml_gmonth(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2989 to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
3072 to_xml_list1(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
3082 to_xml_union(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
3117 to_xml_any(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
3222 sdl_guess_convert_xml(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
[all...]
/PHP_TRUNK/ext/dom/
H A Dphp_dom.c1076 while (base_class->type != ZEND_INTERNAL_CLASS && base_class->parent != NULL) {
1077 base_class = base_class->parent;
1303 /* {{{ int dom_hierarchy(xmlNodePtr parent, xmlNodePtr child) */
1304 int dom_hierarchy(xmlNodePtr parent, xmlNodePtr child) argument
1308 if (parent == NULL || child == NULL || child->doc != parent->doc) {
1312 nodep = parent;
1318 nodep = nodep->parent;
/PHP_TRUNK/Zend/
H A Dzend.h131 struct _zend_class_entry *parent; member in struct:_zend_class_entry
H A Dzend_generators.h36 * That way, when we advance any generator, we just need to look up a leaf node (which all have a reference to a root node). Then we can see at the root node whether current Generator is finished. If it isn't, all is fine and we can just continue. If the Generator finished, there will be two cases. Either it is a simple node with just one child, then go down to child node. Or it has multiple children and we now will remove the current leaf node from the list of nodes (unnecessary, is microoptimization) and go down to the child node whose reference was paired with current leaf node. Child node is then removed its parent reference and becomes new top node. Or the current node references the Generator we're currently executing, then we can continue from the YIELD_FROM opcode. When a node referenced as root node in a leaf node has a parent, then we go the way up until we find a root node without parent.
42 zend_generator *parent; /* NULL for root */ member in struct:_zend_generator_node
H A Dzend_inheritance.c93 ZEND_ASSERT(ce->parent != NULL);
96 ce->create_object = ce->parent->create_object;
100 ce->get_iterator = ce->parent->get_iterator;
103 ce->iterator_funcs.funcs = ce->parent->iterator_funcs.funcs;
106 ce->__get = ce->parent->__get;
109 ce->__set = ce->parent->__set;
112 ce->__unset = ce->parent->__unset;
115 ce->__isset = ce->parent->__isset;
118 ce->__call = ce->parent->__call;
121 ce->__callstatic = ce->parent
504 do_inheritance_check_on_method(zend_function *child, zend_function *parent) argument
576 do_inherit_method(zend_string *key, zend_function *parent, zend_class_entry *ce) argument
[all...]
H A Dzend_generators.c235 generator->node.parent = NULL;
300 if (generator->node.parent != root) {
304 generator = generator->node.parent;
305 } while (generator->node.parent != root);
411 zend_generator *next = generator->node.parent;
442 next = next->node.parent;
461 zend_generator *parent = generator->node.parent, *cur = generator; local
468 while (parent) {
469 if (parent
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_fixedarray.c218 zend_class_entry *parent = class_type; local
221 intern = ecalloc(1, sizeof(spl_fixedarray_object) + zend_object_properties_size(parent));
242 while (parent) {
243 if (parent == spl_ce_SplFixedArray) {
249 parent = parent->parent;
253 if (!parent) { /* this must never happen */
265 if (class_type->iterator_funcs.zf_rewind->common.scope != parent) {
268 if (class_type->iterator_funcs.zf_valid->common.scope != parent) {
[all...]
H A Dspl_heap.c366 zend_class_entry *parent = class_type; local
369 intern = ecalloc(1, sizeof(spl_heap_object) + zend_object_properties_size(parent));
400 while (parent) {
401 if (parent == spl_ce_SplPriorityQueue) {
408 if (parent == spl_ce_SplMinHeap) {
413 if (parent == spl_ce_SplMaxHeap) {
418 if (parent == spl_ce_SplHeap) {
422 parent = parent->parent;
[all...]
H A Dspl_dllist.c373 zend_class_entry *parent = class_type; local
376 intern = ecalloc(1, sizeof(spl_dllist_object) + zend_object_properties_size(parent));
406 while (parent) {
407 if (parent == spl_ce_SplStack) {
410 } else if (parent == spl_ce_SplQueue) {
415 if (parent == spl_ce_SplDoublyLinkedList) {
420 parent = parent->parent;
424 if (!parent) { /* thi
[all...]
H A Dspl_observer.c258 zend_class_entry *parent = class_type; local
260 intern = emalloc(sizeof(spl_SplObjectStorage) + zend_object_properties_size(parent));
276 while (parent) {
277 if (parent == spl_ce_SplObjectStorage) {
287 parent = parent->parent;
H A Dspl_array.c146 zend_class_entry *parent = class_type; local
149 intern = ecalloc(1, sizeof(spl_array_object) + zend_object_properties_size(parent));
179 while (parent) {
180 if (parent == spl_ce_ArrayIterator || parent == spl_ce_RecursiveArrayIterator) {
184 } else if (parent == spl_ce_ArrayObject) {
188 parent = parent->parent;
191 if (!parent) { /* thi
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c277 if (!member && node && node->parent &&
278 node->parent->type == XML_DOCUMENT_NODE) {
339 node = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, NULL);
495 if (!member && node && node->parent &&
496 node->parent->type == XML_DOCUMENT_NODE) {
626 newnode = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL);
635 newnode = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL);
1069 if (!node->children || !node->parent || !node->next || node->children->next || node->children->children || node->parent->children == node->parent
2141 zend_class_entry *parent = ce; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dblock_pass.c212 int parent = op_array->brk_cont_array[i].parent; local
214 while (parent >= 0 &&
215 op_array->brk_cont_array[parent].start < 0 &&
216 (op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_FREE ||
217 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_FE_FREE ||
218 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_END_SILENCE)) {
219 parent = op_array->brk_cont_array[parent].parent;
[all...]

Completed in 75 milliseconds

12