Home
last modified time | relevance | path

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

12345678910>>...18

/PHP-7.4/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 …]
H A Diterator_009.phpt11 parent::rewind();
16 return parent::valid();
21 return parent::current();
26 return parent::key();
31 parent::next();
H A Diterator_007.phpt11 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();
H A Dfixedarray_019.phpt8 return parent::rewind();
12 return parent::valid();
16 return parent::next();
20 return parent::current();
24 return parent::key();
H A Diterator_034.phpt10 if (!parent::valid())
24 return parent::getChildren();
30 parent::rewind();
42 parent::__construct($it);
48 parent::rewind();
55 return parent::valid();
61 return parent::current();
67 return parent::key();
73 parent::next();
87 parent::beginChildren();
[all …]
H A Dbug65328.phpt90 protected $parent;
115 * @param Node $parent
120 if(null !== $parent) {
121 $this->parent = $parent;
187 * @param Node $parent
190 public function setParent(Node $parent)
196 $this->parent = $parent;
221 return $this->parent;
303 [parent:protected] => Node Object
311 [parent:protected] => Node Object
[all …]
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dparent_in_class.phpt2 Use of parent inside a class that has / has no parent
6 // Illegal: A::parent is ill-defined
8 public function method(parent $x) {}
11 public function method(parent $x) {}
14 // Legal: A2::parent == P2
17 public function method(parent $x) {}
23 // Legal: B3::parent == A3 is subclass of A3::parent == P3 in covariant position
26 public function method($x): parent {}
32 // Illegal: B4::parent == A4 is subclass of A4::parent == P4 in contravariant position
35 public function method(parent $x) {}
[all …]
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 {}
/PHP-7.4/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;
31 parent
34 parent
/PHP-7.4/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 Dclass_name_as_scalar_error_002.phpt2 class name as scalar from ::class keyword error using parent in class constant
8 const Baz = parent::class;
14 Deprecated: Cannot use "parent" when current class scope has no parent in %s on line %d
16 Fatal error: Uncaught Error: Cannot use "parent" when current class scope has no parent in %s:%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);
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 Derrmsg_031.phpt2 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 Dinvalid_parent_const_ref_leak.phpt2 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 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']);
/PHP-7.4/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 …]
H A DDOMNode_replaceChild_basic.phpt16 $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-7.4/ext/standard/tests/dir/
H A Ddir_variation7.phpt20 * 1) remove write & execute permission from the 1st parent and test dir()
21 * 2) remove execute permission from 2nd parent and test dir()
27 dir_variation7 ( parent )
28 |-> sub_dir ( sub parent )
45 // remove the write and execute permisson from sub parent
47 echo "-- After restricting 1st level parent directory --\n";
53 chmod($parent_dir_path, 0666); // restricting parent directory
54 echo "-- After restricting parent directory --\n";
77 *** Testing dir() : remove execute permission from the parent dir ***
78 -- After restricting 1st level parent directory --
[all …]
H A Dopendir_variation5.phpt18 * remove the execute permission from the parent dir and test opendir() on child dir
19 * 1) remove write & execute permission from the 1st parent and test opendir()
20 * 2) remove execute permission from 2nd parent and test opendir()
26 * opendir_variation5 ( parent )
27 * |-> sub_dir ( sub parent )
44 // remove the write and execute permisson from sub parent
47 echo "\n-- After restricting 1st level parent directory --\n";
53 chmod($parent_dir_path, 0666); // restricting parent directory
55 echo "\n-- After restricting parent directory --\n";
85 -- After restricting 1st level parent directory --
[all …]
H A Dscandir_variation5.phpt18 * remove the execute permission from the parent dir and test scandir() on child dir
19 * 1. remove write & execute permission from the 1st parent and test scandir()
20 * 2. remove execute permission from 2nd parent and test scandir()
27 * scandir_variation5 ( parent )
28 * |-> sub_dir ( sub parent )
45 // remove the write and execute permisson from sub parent
48 echo "\n-- After restricting 1st level parent directory --\n";
53 chmod($parent_dir_path, 0666); // restricting parent directory
55 echo "\n-- After restricting parent directory --\n";
77 -- After restricting 1st level parent directory --
[all …]
/PHP-7.4/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'));
84 parent|who
86 C|parent::who
88 B|parent::who
90 E|parent::who
99 parent|who
[all …]
/PHP-7.4/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 proteced instance method of parent object through "self::" to parent method';
105 Access public instance method of parent object through parent:: OK
113 Subclass closure over parent class protected method OK
114 Subclass closure over parent class static protected method OK
115 Access public instance method of parent object through "parent::" OK
117 Access public instance method of parent object through "self::" to parent method OK
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Darray_map_object3.phpt12 * 1) child class method using parent object
13 * 2) parent class method using child object
14 * 3) child class method using parent class
15 * 4) parent class method using child class
50 echo "-- accessing parent method from child class --\n";
53 echo "-- accessing child method from parent class --\n";
56 echo "-- accessing parent method using child class object --\n";
66 -- accessing parent method from child class --
75 -- accessing child method from parent class --
79 -- accessing parent method using child class object --
[all …]
/PHP-7.4/ext/session/tests/
H A Dsession_set_save_handler_class_001.phpt27 return parent::open($path, $name);
33 return parent::create_sid();
38 return parent::read($key);
43 return parent::write($key, $data);
48 return parent::close();
56 return parent::create_sid();
63 // cannot call parent as follows.
64 // return parent::validateSid($key);
69 return parent::write($key, $data);
71 // cannot call parent as follows
[all …]

Completed in 25 milliseconds

12345678910>>...18