Home
last modified time | relevance | path

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

12345678910>>...17

/PHP-7.0/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-7.0/ext/dom/tests/
H A Dbug28721.phpt124 parent: NULL
156 parent: NULL
190 parent: NULL
222 parent: NULL
255 parent: NULL
287 parent: NULL
314 parent: NULL
366 parent: NULL
373 parent: NULL
406 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.0/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.0/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.0/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;
H A Derrmsg_029.phpt2 errmsg: cannot use 'parent' as class name
6 class parent {
12 Fatal error: Cannot use 'parent' as class name as it is reserved in %s on line %d
H A Derrmsg_036.phpt2 errmsg: cannot use 'parent' as interface name
6 class test implements parent {
12 Fatal error: Cannot use 'parent' as interface name as it is reserved in %s on line %d
/PHP-7.0/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";
94 -- 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.0/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.0/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 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.0/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.0/sapi/phpdbg/
H A Dphpdbg_watch.c185 watch->parent = parent; in phpdbg_create_refcounted_watchpoint()
186 watch->str = parent->str; in phpdbg_create_refcounted_watchpoint()
292 ref->parent = watch; in phpdbg_create_reference_watch()
306 parent = parent->parent; in phpdbg_get_refcount_watch()
307 if (!parent) { in phpdbg_get_refcount_watch()
366 if (watch->parent && watch->parent->type == WATCH_ON_HASHTABLE) { in phpdbg_create_watchpoint()
375 …if (watch->parent && watch->parent->type == WATCH_ON_ZVAL && Z_REFCOUNTED_P(watch->parent->addr.zv… in phpdbg_create_watchpoint()
419 watch->parent = zv_watch; in phpdbg_create_array_watchpoint()
524 phpdbg_watchpoint_t *parent = watch->parent; in phpdbg_delete_implicit_parents() local
525 if (!parent) { in phpdbg_delete_implicit_parents()
[all …]
/PHP-7.0/Zend/tests/return_types/
H A D026.phpt2 Return type of parent is not allowed in function
6 function test(): parent {}
9 Fatal error: Cannot use "parent" when no class scope is active in %s on line %d

Completed in 56 milliseconds

12345678910>>...17