Home
last modified time | relevance | path

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

12345678910>>...18

/PHP-7.2/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.2/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.2/ext/spl/examples/
H A Dclass_tree.php41 $parent = get_parent_class($cname);
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);
86 if ($parent)
88 $interfaces = array_diff(class_implements($result), class_implements($parent));
/PHP-7.2/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.2/Zend/tests/
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 Dbug63635.phpt6 public $parent = NULL;
9 function __construct(Node $parent=NULL) {
10 if ($parent) {
11 $parent->childs[] = $this;
/PHP-7.2/ext/standard/tests/dir/
H A Ddir_variation7.phpt28 * 1) remove write & execute permission from the 1st parent and test dir()
29 * 2) remove execute permission from 2nd parent and test dir()
35 dir_variation7 ( parent )
36 |-> sub_dir ( sub parent )
53 // remove the write and execute permisson from sub parent
55 echo "-- After restricting 1st level parent directory --\n";
61 chmod($parent_dir_path, 0666); // restricting parent directory
62 echo "-- After restricting parent directory --\n";
85 *** Testing dir() : remove execute permission from the parent dir ***
86 -- After restricting 1st level parent directory --
[all …]
H A Dopendir_variation5.phpt26 * remove the execute permission from the parent dir and test opendir() on child dir
27 * 1) remove write & execute permission from the 1st parent and test opendir()
28 * 2) remove execute permission from 2nd parent and test opendir()
34 * opendir_variation5 ( parent )
35 * |-> sub_dir ( sub parent )
52 // remove the write and execute permisson from sub parent
55 echo "\n-- After restricting 1st level parent directory --\n";
61 chmod($parent_dir_path, 0666); // restricting parent directory
63 echo "\n-- After restricting parent directory --\n";
93 -- After restricting 1st level parent directory --
[all …]
H A Dscandir_variation5.phpt26 * remove the execute permission from the parent dir and test scandir() on child dir
27 * 1. remove write & execute permission from the 1st parent and test scandir()
28 * 2. remove execute permission from 2nd parent and test scandir()
35 * scandir_variation5 ( parent )
36 * |-> sub_dir ( sub parent )
53 // remove the write and execute permisson from sub parent
56 echo "\n-- After restricting 1st level parent directory --\n";
61 chmod($parent_dir_path, 0666); // restricting parent directory
63 echo "\n-- After restricting parent directory --\n";
85 -- After restricting 1st level parent directory --
[all …]
/PHP-7.2/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.2/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.2/ext/spl/tests/
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 …]
H A Dbug74058.phpt10 parent::__construct($input, ArrayObject::ARRAY_AS_PROPS);
16 return parent::offsetSet($x, $v);
22 return parent::offsetGet($x);
30 parent::__construct($input);
36 return parent::offsetSet($x, $v);
42 return parent::offsetGet($x);
H A Diterator_041a.phpt23 parent::__construct(array(1, 2));
30 return parent::rewind();
36 return parent::valid();
42 return parent::current();
48 return parent::key();
54 return parent::next();
/PHP-7.2/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 …]
/PHP-7.2/ext/mysqlnd/
H A Dmysqlnd_commands.c32 struct st_mysqlnd_protocol_command parent; member
53 struct st_mysqlnd_protocol_command parent; member
165 struct st_mysqlnd_protocol_command parent; member
299 struct st_mysqlnd_protocol_command parent; member
369 struct st_mysqlnd_protocol_command parent; member
445 struct st_mysqlnd_protocol_command parent; member
508 struct st_mysqlnd_protocol_command parent; member
571 struct st_mysqlnd_protocol_command parent; member
624 struct st_mysqlnd_protocol_command parent; member
683 struct st_mysqlnd_protocol_command parent; member
[all …]
/PHP-7.2/Zend/tests/return_types/
H A D026.phpt2 Return type of parent is not allowed in function
6 function test(): parent {}
8 Fatal error: Cannot use "parent" when no class scope is active in %s on line %d

Completed in 33 milliseconds

12345678910>>...18