Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 554) sorted by relevance

12345678910>>...23

/php-src/ext/spl/tests/
H A Dbug69264.phpt7 return ['child' => 42, 'parent' => count(parent::__debugInfo())];
13 return ['child' => 42, 'parent' => count(parent::__debugInfo())];
19 return ['child' => 42, 'parent' => count(parent::__debugInfo())];
68 ["parent"]=>
74 ["parent"]=>
80 ["parent"]=>
86 ["parent"]=>
92 ["parent"]=>
98 ["parent"]=>
104 ["parent"]=>
[all …]
/php-src/ext/dom/lexbor/lexbor/core/
H A Davl.c153 node->parent = pos->parent; in lexbor_avl_node_rotate_right()
160 pos->parent = node; in lexbor_avl_node_rotate_right()
175 node->parent = pos->parent; in lexbor_avl_node_rotate_left()
182 pos->parent = node; in lexbor_avl_node_rotate_left()
211 parent = node->parent; in lexbor_avl_node_balance()
231 parent = node->parent; in lexbor_avl_node_balance()
337 node->parent = delete_node->parent; in lexbor_avl_rotate_for_delete()
348 node->parent = delete_node->parent; in lexbor_avl_rotate_for_delete()
475 parent = node->parent; in lexbor_avl_foreach()
506 else if (parent->left != node && parent->right != node) { in lexbor_avl_foreach()
[all …]
H A Dbst.c115 new_entry->parent = entry->parent; in lexbor_bst_insert()
122 new_entry->parent = entry; in lexbor_bst_insert()
309 if (entry->parent != NULL) { in lexbor_bst_remove_by_pointer()
310 if (entry->parent->left == entry) entry->parent->left = NULL; in lexbor_bst_remove_by_pointer()
311 if (entry->parent->right == entry) entry->parent->right = NULL; in lexbor_bst_remove_by_pointer()
320 if (entry->parent == NULL) { in lexbor_bst_remove_by_pointer()
331 right->parent = entry->parent; in lexbor_bst_remove_by_pointer()
347 if (entry->parent == NULL) { in lexbor_bst_remove_by_pointer()
348 entry->left->parent = NULL; in lexbor_bst_remove_by_pointer()
358 left->parent = entry->parent; in lexbor_bst_remove_by_pointer()
[all …]
/php-src/Zend/tests/grammar/
H A Dsemi_reserved_007.phpt2 Edge case: self::self, self::parent, parent::self semi reserved constants access
8 const parent = "parent";
12 echo self::parent, PHP_EOL;
18 parent::__construct();
20 echo parent::self, PHP_EOL;
21 echo parent::parent, PHP_EOL;
32 parent
35 parent
/php-src/ext/dom/tests/modern/spec/
H A DNode_replaceChild_edge_cases.phpt10 $parent = $dom->createElement("parent");
12 $parent->appendChild($child);
13 $dom->appendChild($parent);
15 echo "--- Wrong parent node type ---\n";
27 $parent->replaceChild($parent, $child);
38 echo "--- Child's parent is not parent ---\n";
110 $dom->replaceChild($parent, $parent);
122 --- Wrong parent node type ---
127 --- Child's parent is not parent ---
143 --- Replace parent with itself ---
[all …]
/php-src/Zend/tests/
H A Dunset_prop_recursion.phpt6 public $parent = null;
9 $node->parent = $this;
24 ["parent"]=>
30 ["parent"]=>
38 ["parent"]=>
47 ["parent"]=>
49 ["parent"]=>
57 ["parent"]=>
59 ["parent"]=>
H A Dcallable_self_parent_static_deprecation.phpt14 '"parent::foo"' => "parent::foo",
17 '["parent", "foo"]' => ["parent", "foo"],
20 '["B", "parent::foo"]' => ["B", "parent::foo"],
24 '[$this, "parent::foo"]' => [$this, "parent::foo"],
72 "parent::foo"
81 ["parent", "foo"]
116 "parent::foo"
125 ["parent", "foo"]
160 "parent::foo"
205 "parent::foo"
[all …]
H A Dbug78898.phpt2 Bug #78898: call_user_func(['parent', ...]) fails while other succeed
23 parent::_x();
24 call_user_func('parent::_x');
25 call_user_func(['parent', '_x']);
35 Deprecated: Use of "parent" in callables is deprecated in %s on line %d
37 Deprecated: Use of "parent" in callables is deprecated in %s on line %d
H A Dlsb_022.phpt2 ZE2 Late Static Binding parent::/self:: forwarding and __callStatic
18 parent::__callstatic($name, $args);
19 call_user_func_array("parent::__callstatic", array($name, $args));
20 parent::foo();
21 call_user_func_array("parent::foo", $args);
22 call_user_func_array(array("parent","foo"), $args);
31 Deprecated: Use of "parent" in callables is deprecated in %s on line %d
39 Deprecated: Use of "parent" in callables is deprecated in %s on line %d
44 Deprecated: Use of "parent" in callables is deprecated in %s on line %d
H A Dparent_class_name_without_parent.phpt2 Getting parent class name when there is no parent generates an error
8 var_dump(parent::class);
20 Fatal error: Uncaught Error: Cannot use "parent" when current class scope has no parent in %s:5
H A Dbug48770_2.phpt2 Bug #48770 (call_user_func_array() fails to call parent from inheriting class)
23 call_user_func_array(array($this, 'parent::func2'), array($str));
24 call_user_func_array(array($this, 'parent::func3'), array($str));
27 call_user_func_array(array($this, 'parent::func22'), array($str));
33 call_user_func_array(array($this, 'parent::inexistent'), array($str));
48 parent::func($str);
57 Deprecated: Callables of the form ["C", "parent::func2"] are deprecated in %s on line %d
60 Deprecated: Callables of the form ["C", "parent::func3"] are deprecated in %s on line %d
63 Deprecated: Callables of the form ["C", "parent::func22"] are deprecated in %s on line %d
66 Deprecated: Callables of the form ["C", "parent::inexistent"] are deprecated in %s on line %d
/php-src/Zend/tests/type_declarations/variance/
H A Dparent_in_class_success.phpt2 Use of parent inside a class that has / has no parent (success cases)
6 // Legal: A2::parent == P2
9 public function method(parent $x) {}
15 // Legal: B3::parent == A3 is subclass of A3::parent == P3 in covariant position
18 public function method($x): parent {}
21 public function method($x): parent {}
H A Dparent_in_class_failure1.phpt2 Use of parent inside a class that has / has no parent (failure case 1)
6 // Illegal: A::parent is ill-defined
8 public function method(parent $x) {}
11 public function method(parent $x) {}
16 Fatal error: Cannot use "parent" when current class scope has no parent in %s on line %d
H A Dparent_in_class_failure2.phpt2 Use of parent inside a class that has / has no parent (failure case 2)
6 // Illegal: B4::parent == A4 is subclass of A4::parent == P4 in contravariant position
9 public function method(parent $x) {}
12 public function method(parent $x) {}
/php-src/ext/dom/tests/
H A Dbug28721.phpt123 parent: NULL
155 parent: NULL
189 parent: NULL
221 parent: NULL
254 parent: NULL
286 parent: NULL
313 parent: NULL
365 parent: NULL
372 parent: NULL
405 parent: NULL
[all …]
/php-src/ext/standard/tests/general_functions/
H A Dcallbacks_001.phpt26 $this->call(array('parent', 'who'));
27 $this->call(array('C', 'parent::who'));
28 $this->call(array('B', 'parent::who'));
29 $this->call(array('E', 'parent::who'));
69 $this->call(array('parent', 'who'));
87 parent|who
91 C|parent::who
95 B|parent::who
99 E|parent::who
110 parent|who
[all …]
/php-src/ext/dom/
H A Dparentnode.c138 if (parent->children == NULL) { in dom_add_child_without_merging()
139 parent->children = child; in dom_add_child_without_merging()
141 xmlNodePtr last = parent->last; in dom_add_child_without_merging()
145 parent->last = child; in dom_add_child_without_merging()
146 child->parent = parent; in dom_add_child_without_merging()
154 node->parent = parentNode; in dom_fragment_assign_parent_node()
521 newchild->parent = (xmlNodePtr) parent->doc; in dom_insert_node_list_unchecked()
541 node->parent = parent; in dom_insert_node_list_unchecked()
544 node->parent = (xmlNodePtr) parent->doc; in dom_insert_node_list_unchecked()
697 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in dom_child_removal_preconditions()
[all …]
/php-src/ext/standard/tests/dir/
H A Ddir_variation7.phpt14 * 1) remove write & execute permission from the 1st parent and test dir()
15 * 2) remove execute permission from 2nd parent and test dir()
21 dir_variation7 ( parent )
22 |-> sub_dir ( sub parent )
39 // remove the write and execute permission from sub parent
41 echo "-- After restricting 1st level parent directory --\n";
47 chmod($parent_dir_path, 0666); // restricting parent directory
48 echo "-- After restricting parent directory --\n";
71 *** Testing dir() : remove execute permission from the parent dir ***
72 -- After restricting 1st level parent directory --
[all …]
H A Dscandir_variation5.phpt13 * remove the execute permission from the parent dir and test scandir() on child dir
14 * 1. remove write & execute permission from the 1st parent and test scandir()
15 * 2. remove execute permission from 2nd parent and test scandir()
22 * scandir_variation5 ( parent )
23 * |-> sub_dir ( sub parent )
40 // remove the write and execute permission from sub parent
43 echo "\n-- After restricting 1st level parent directory --\n";
48 chmod($parent_dir_path, 0666); // restricting parent directory
50 echo "\n-- After restricting parent directory --\n";
71 -- After restricting 1st level parent directory --
[all …]
H A Dopendir_variation5.phpt13 * remove the execute permission from the parent dir and test opendir() on child dir
14 * 1) remove write & execute permission from the 1st parent and test opendir()
15 * 2) remove execute permission from 2nd parent and test opendir()
21 * opendir_variation5 ( parent )
22 * |-> sub_dir ( sub parent )
39 // remove the write and execute permission from sub parent
42 echo "\n-- After restricting 1st level parent directory --\n";
48 chmod($parent_dir_path, 0666); // restricting parent directory
50 echo "\n-- After restricting parent directory --\n";
79 -- After restricting 1st level parent directory --
[all …]
/php-src/ext/dom/tests/delayed_freeing/
H A Delement_declaration.phpt11 <!ELEMENT parent (child1, child2)>
15 <container><parent/></container>
30 <!ELEMENT parent (child1 , child2)>
34 <container><parent/></container>
36 string(6) "parent"
39 <container><parent/></container>
41 string(6) "parent"
/php-src/ext/date/tests/
H A DDateTime_uninitialised_exceptions.phpt61 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
62 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
63 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
64 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
65 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
66 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
67 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
68 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
69 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
70 …Time (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in …
[all …]
H A DDateTimeImmutable_uninitialised_exceptions.phpt55 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
56 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
57 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
58 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
59 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
60 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
61 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
62 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
63 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
64 …eriting DateTimeImmutable) has not been correctly initialized by calling parent::__construct() in …
[all …]
/php-src/ext/standard/tests/array/
H A Darray_map_object3.phpt7 * 1) child class method using parent object
8 * 2) parent class method using child object
9 * 3) child class method using parent class
10 * 4) parent class method using child class
45 echo "-- accessing parent method from child class --\n";
48 echo "-- accessing child method from parent class --\n";
55 echo "-- accessing parent method using child class object --\n";
69 -- accessing parent method from child class --
78 -- accessing child method from parent class --
80 -- accessing parent method using child class object --
[all …]
/php-src/Zend/tests/closures/
H A Dclosure_from_callable_basic.phpt24 echo 'Access public instance method of parent object through parent:: ';
59 echo 'Subclass closure over parent class protected method';
69 echo 'Access public instance method of parent object through "parent::" ';
79 echo 'Access public instance method of parent object through "self::" to parent method';
84 echo 'Access protected instance method of parent object through "self::" to parent method';
104 Access public instance method of parent object through parent:: OK
112 Subclass closure over parent class protected method OK
113 Subclass closure over parent class static protected method OK
114 Access public instance method of parent object through "parent::"
120 Access public instance method of parent object through "self::" to parent method
[all …]

Completed in 52 milliseconds

12345678910>>...23