Searched defs:parent (Results 1 - 25 of 32) 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/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/sapi/phpdbg/
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.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_utils.c404 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
405 return callback(name, len, keyname, keylen, parent, zv);
408 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
409 return phpdbg_parse_variable_with_arg(input, len, parent, i, (phpdbg_parse_var_with_arg_func) phpdbg_parse_variable_arg_wrapper, NULL, silent, callback);
412 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
455 ZEND_HASH_FOREACH_KEY_PTR(parent, numkey, strkey, zv) {
478 ret = callback(name, namelen, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
484 ret = step_cb(name, i, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
493 ret = step_cb(name, i, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
502 ret = step_cb(name, i, keyname, index_len, parent, z
[all...]
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
524 phpdbg_watchpoint_t *parent = watch->parent; local
629 phpdbg_watchpoint_parse_wrapper(char *name, size_t namelen, char *key, size_t keylen, HashTable *parent, zval *zv, int (*callback)(phpdbg_watchpoint_t *)) argument
652 phpdbg_watchpoint_parse_input(char *input, size_t len, HashTable *parent, size_t i, int (*callback)(phpdbg_watchpoint_t *), zend_bool silent) argument
656 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_cmd.c33 if (command->parent) {
34 memcpy(&buffer[pos], command->parent->name, command->parent->name_len);
35 pos += command->parent->name_len;
555 PHPDBG_API const phpdbg_command_t *phpdbg_stack_resolve(const phpdbg_command_t *commands, const phpdbg_command_t *parent, phpdbg_param_t **top) { argument
595 if (parent) {
596 phpdbg_error("command", "type=\"notfound\" command=\"%s\" subcommand=\"%s\"", "The command \"%s %s\" could not be found", parent->name, name->str);
600 return parent;
H A Dphpdbg_prompt.c761 int phpdbg_output_ev_variable(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv) /* {{{ */ { argument
/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
942 to_xml_hexbin(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1049 to_xml_long(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1074 to_xml_double(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1126 to_xml_bool(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1153 to_xml_null(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1805 to_xml_object(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
1993 guess_array_map(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2199 to_xml_array(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2672 to_xml_map(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2767 guess_xml_convert(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2867 to_xml_datetime_ex(encodeTypePtr type, zval *data, char *format, int style, xmlNodePtr parent) argument
2931 to_xml_duration(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2937 to_xml_datetime(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2942 to_xml_time(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2948 to_xml_date(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2953 to_xml_gyearmonth(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2958 to_xml_gyear(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2963 to_xml_gmonthday(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2968 to_xml_gday(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2973 to_xml_gmonth(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
2983 to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
3066 to_xml_list1(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
3076 to_xml_union(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
3111 to_xml_any(encodeTypePtr type, zval *data, int style, xmlNodePtr parent) argument
3216 sdl_guess_convert_xml(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) argument
[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.c365 zend_class_entry *parent = class_type; local
368 intern = ecalloc(1, sizeof(spl_heap_object) + zend_object_properties_size(parent));
399 while (parent) {
400 if (parent == spl_ce_SplPriorityQueue) {
407 if (parent == spl_ce_SplMinHeap) {
412 if (parent == spl_ce_SplMaxHeap) {
417 if (parent == spl_ce_SplHeap) {
421 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/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_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_generators.c216 generator->node.parent = NULL;
281 if (generator->node.parent != root) {
285 generator = generator->node.parent;
286 } while (generator->node.parent != root);
392 zend_generator *next = generator->node.parent;
423 next = next->node.parent;
442 zend_generator *parent = generator->node.parent, *cur = generator; local
449 while (parent) {
450 if (parent
[all...]
H A Dzend.h134 struct _zend_class_entry *parent; member in struct:_zend_class_entry
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
507 do_inheritance_check_on_method(zend_function *child, zend_function *parent) argument
583 do_inherit_method(zend_string *key, zend_function *parent, zend_class_entry *ce) argument
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dblock_pass.c210 int parent = op_array->brk_cont_array[i].parent; local
212 while (parent >= 0 &&
213 op_array->brk_cont_array[parent].start < 0 &&
214 (op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_FREE ||
215 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_FE_FREE ||
217 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_END_SILENCE)) {
218 parent = op_array->brk_cont_array[parent].parent;
[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) {
624 newnode = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL);
633 newnode = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, value ? (xmlChar *)Z_STRVAL_P(value) : NULL);
1066 if (sxe->iter.type == SXE_ITER_NONE || !node->children || !node->parent || node->children->next || node->children->children || node->parent->children == node->parent
2132 zend_class_entry *parent = ce; local
[all...]
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c115 * Set to non-zero if we are the parent process
117 static int parent = 1; variable
119 /* Did parent received exit signals SIG_TERM/SIG_INT/SIG_QUIT */
359 !parent &&
905 !parent &&
1429 if (parent && parent_waiting) {
2026 while (parent) {
2038 parent = 0;
2054 } while (parent && (running < children));
2056 if (parent) {
[all...]

Completed in 54 milliseconds

12