/PHP-8.4/ext/spl/tests/ |
H A D | bug69264.phpt | 7 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-8.4/ext/dom/lexbor/lexbor/core/ |
H A D | avl.c | 153 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 D | bst.c | 115 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-8.4/Zend/tests/grammar/ |
H A D | semi_reserved_007.phpt | 2 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-8.4/Zend/tests/ |
H A D | unset_prop_recursion.phpt | 6 public $parent = null; 9 $node->parent = $this; 24 ["parent"]=> 30 ["parent"]=> 38 ["parent"]=> 47 ["parent"]=> 49 ["parent"]=> 57 ["parent"]=> 59 ["parent"]=>
|
H A D | callable_self_parent_static_deprecation.phpt | 14 '"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 D | bug78898.phpt | 2 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 D | lsb_022.phpt | 2 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 D | parent_class_name_without_parent.phpt | 2 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
|
/PHP-8.4/ext/dom/tests/modern/spec/ |
H A D | Node_replaceChild_edge_cases.phpt | 10 $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-8.4/Zend/tests/type_declarations/variance/ |
H A D | parent_in_class_success.phpt | 2 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 D | parent_in_class_failure1.phpt | 2 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 D | parent_in_class_failure2.phpt | 2 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-8.4/ext/dom/tests/ |
H A D | bug28721.phpt | 123 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-8.4/ext/standard/tests/general_functions/ |
H A D | callbacks_001.phpt | 26 $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-8.4/ext/standard/tests/dir/ |
H A D | dir_variation7.phpt | 14 * 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 D | scandir_variation5.phpt | 13 * 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 D | opendir_variation5.phpt | 13 * 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-8.4/ext/dom/parentnode/ |
H A D | tree.c | 123 if (parent->children == NULL) { in dom_add_child_without_merging() 124 parent->children = child; in dom_add_child_without_merging() 126 xmlNodePtr last = parent->last; in dom_add_child_without_merging() 130 parent->last = child; in dom_add_child_without_merging() 131 child->parent = parent; in dom_add_child_without_merging() 139 node->parent = parentNode; in dom_fragment_assign_parent_node() 527 newchild->parent = (xmlNodePtr) parent->doc; in dom_insert_node_list_unchecked() 547 node->parent = parent; in dom_insert_node_list_unchecked() 550 node->parent = (xmlNodePtr) parent->doc; in dom_insert_node_list_unchecked() 703 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in dom_child_removal_preconditions() [all …]
|
/PHP-8.4/ext/dom/tests/delayed_freeing/ |
H A D | element_declaration.phpt | 11 <!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-8.4/ext/date/tests/ |
H A D | DateTime_uninitialised_exceptions.phpt | 61 …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 D | DateTimeImmutable_uninitialised_exceptions.phpt | 55 …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-8.4/Zend/tests/property_hooks/ |
H A D | parent_get_in_class_with_no_parent.phpt | 2 Using parent::$prop::get() in class with no parent 8 get => parent::$prop::get(); 21 Cannot use "parent" when current class scope has no parent
|
/PHP-8.4/ext/standard/tests/array/ |
H A D | array_map_object3.phpt | 7 * 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-8.4/Zend/tests/closures/ |
H A D | closure_from_callable_basic.phpt | 24 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 …]
|