/PHP-8.1/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 …]
|
H A D | iterator_009.phpt | 11 parent::rewind(); 16 return parent::valid(); 21 parent::current(); 26 parent::key(); 31 parent::next();
|
H A D | iterator_007.phpt | 11 parent::rewind(); 16 return parent::valid(); 21 return parent::current(); 26 return parent::key(); 31 parent::next(); 40 parent::rewind(); 45 return parent::valid(); 50 return parent::current(); 55 return parent::key(); 60 parent::next();
|
/PHP-8.1/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.1/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 | 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);
|
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
|
H A D | errmsg_031.phpt | 2 errmsg: cannot use 'parent' as parent class name 6 class test extends parent { 12 Fatal error: Cannot use 'parent' as class name, as it is reserved in %s on line %d
|
H A D | invalid_parent_const_ref_leak.phpt | 2 Leak when using an invalid parent:: reference in a constant definition 7 const B = parent::C; 18 Cannot access "parent" when current class scope has no parent
|
H A D | class_name_as_scalar_error_002.phpt | 2 class name as scalar from ::class keyword error using parent in class constant 8 const Baz = parent::class; 14 Fatal error: Cannot use "parent" when current class scope has no parent in %s on line %d
|
/PHP-8.1/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.1/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 …]
|
H A D | DOMNode_replaceChild_basic.phpt | 16 $parent = $document->getElementsByTagName('foo')->item(0); 18 $old_child = $parent->replaceChild($new_child, $parent->firstChild); 23 $parent = $document->getElementsByTagName('spam')->item(0); 24 $parent->replaceChild($new_child, $parent->firstChild); 29 $parent = $document->getElementsByTagName('foo')->item(0); 30 $parent->replaceChild($new_child, $parent->firstChild);
|
/PHP-8.1/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.1/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 89 C|parent::who 91 B|parent::who 93 E|parent::who 102 parent|who [all …]
|
/PHP-8.1/ext/opcache/jit/ |
H A D | zend_jit_disasm.c | 76 r->parent = p->parent; in zend_syms_rotateleft() 94 l->parent = p->parent; in zend_syms_rotateright() 157 if (sym->parent == sym->parent->parent->child[0]) { in zend_jit_disasm_add_symbol() 158 node = sym->parent->parent->child[1]; in zend_jit_disasm_add_symbol() 162 sym->parent->parent->info = 1; in zend_jit_disasm_add_symbol() 163 sym = sym->parent->parent; in zend_jit_disasm_add_symbol() 170 sym->parent->parent->info = 1; in zend_jit_disasm_add_symbol() 174 node = sym->parent->parent->child[0]; in zend_jit_disasm_add_symbol() 178 sym->parent->parent->info = 1; in zend_jit_disasm_add_symbol() 179 sym = sym->parent->parent; in zend_jit_disasm_add_symbol() [all …]
|
/PHP-8.1/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.1/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::" OK 116 Access public instance method of parent object through "self::" to parent method OK [all …]
|
/PHP-8.1/Zend/Optimizer/ |
H A D | escape_analysis.c | 39 parent[i] = i; in union_find_init() 47 int p = parent[i]; in union_find_root() 50 p = parent[p]; in union_find_root() 51 parent[i] = p; in union_find_root() 53 p = parent[i]; in union_find_root() 61 int r1 = union_find_root(parent, i); in union_find_unite() 62 int r2 = union_find_root(parent, j); in union_find_unite() 66 parent[r1] = r2; in union_find_unite() 69 parent[r2] = r1; in union_find_unite() 89 union_find_init(parent, size, ssa_vars_count); in zend_build_equi_escape_sets() [all …]
|
/PHP-8.1/ext/session/tests/ |
H A D | session_set_save_handler_class_001.phpt | 23 return parent::open($path, $name); 29 return parent::create_sid(); 34 return parent::read($key); 39 return parent::write($key, $data); 44 return parent::close(); 53 return parent::create_sid(); 60 // cannot call parent as follows. 61 // return parent::validateSid($key); 66 return parent::write($key, $data); 68 // cannot call parent as follows [all …]
|
/PHP-8.1/Zend/tests/constexpr/ |
H A D | new_self_parent.phpt | 2 new self / new parent in constant expression 7 public static function invalid($x = new parent) { 11 public static function method($x = new self, $y = new parent) { 39 Cannot access "parent" when current class scope has no parent
|