Home
last modified time | relevance | path

Searched refs:protected (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/PHP-7.4/ext/standard/tests/serialize/
H A Dbug49649_1.phpt2 Bug #49649 (unserialize() doesn't handle changes in property visibility) - to protected
11 * protected $protected = 2;
26 protected $public = null;
28 protected $protected = null;
30 protected $private = null;
37 ["public":protected]=>
39 ["protected":protected]=>
41 ["private":protected]=>
/PHP-7.4/ext/fileinfo/libmagic/
H A Dfile.h103 #ifndef protected
108 #ifndef protected
109 #define protected macro
455 protected struct magic_set *file_ms_alloc(int);
456 protected void file_ms_free(struct magic_set *);
461 protected int file_separator(struct magic_set *);
488 protected void file_badread(struct magic_set *);
489 protected void file_badseek(struct magic_set *);
495 protected size_t file_mbswidth(const char *);
511 protected void buffer_fini(struct buffer *);
[all …]
/PHP-7.4/Zend/tests/
H A Dbug21888.phpt2 Bug #21888 (protected property and protected method of the same name)
7 protected $prot = "protected property\n";
9 protected function prot() {
10 print "protected method\n";
31 protected method
32 protected property
H A Dbug45862.phpt2 Bug #45862 (get_class_vars is inconsistent with 'protected' and 'private' variables)
14 static protected $prot = "protected var";
34 string(13) "protected var"
36 string(13) "protected var"
41 string(13) "protected var"
H A Doverloaded_prop_assign_op_refs.phpt7 protected $a = 0;
8 protected $b = 0;
9 protected $c = 0;
41 ["a":protected]=>
43 ["b":protected]=>
45 ["c":protected]=>
H A Dbug37632.phpt8 protected function test()
25 protected function test()
36 static protected function test()
53 static protected function test()
61 /* Right now Ctor's cannot be made protected when defined in a ctor. That is
72 protected function __construct()
89 protected function __construct()
101 protected function __construct()
118 protected function __construct()
135 Fatal error: Uncaught Error: Call to protected C4::__construct() from context 'B4' in %sbug37632.ph…
H A Dbug26010.phpt2 Bug #26010 (private / protected variables get exposed by get_object_vars())
7 protected $protected = 'protected';
H A Dbug37212.phpt2 Bug #37212 (Access to protected property of common base class)
8 protected $value;
15 protected function getValue()
44 ["value":protected]=>
48 ["value":protected]=>
52 ["value":protected]=>
/PHP-7.4/ext/reflection/tests/
H A DReflectionProperty_setAccessible.phpt6 protected $protected = 'a';
15 $protected = new ReflectionProperty($a, 'protected');
21 var_dump($protected->getValue($a));
52 $protected->setAccessible(TRUE);
57 var_dump($protected->getValue($a));
62 $protected->setValue($a, 'e');
67 var_dump($protected->getValue($a));
74 $protected = new ReflectionProperty($b, 'protected');
102 $protected->setAccessible(TRUE);
106 var_dump($protected->getValue($b));
[all …]
H A DReflectionMethod_setAccessible.phpt8 protected function aProtected($a) { print __METHOD__ . "\n"; }
9 protected static function aProtectedStatic($a) { print __METHOD__ . "\n"; }
14 $protected = new ReflectionMethod('A', 'aProtected');
50 $protected->invoke(new A, NULL);
58 $protected->invokeArgs(new A, array(NULL));
83 $protected->setAccessible(TRUE);
90 $protected->invoke(new A, NULL);
91 $protected->invokeArgs(new A, array(NULL));
100 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod"
101 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod"
[all …]
/PHP-7.4/ext/spl/tests/
H A Dbug65328.phpt14 protected $head;
85 protected $children = [];
90 protected $parent;
95 protected $data;
100 protected $uid;
105 protected $index = 0;
110 protected $assureUnique;
331 [uid:protected] => 1
340 [data:protected] => value2
341 [uid:protected] => 2
[all …]
H A Darray_003.phpt6 // This test also needs to exclude the protected and private variables
13 protected $pro = "protected";
43 [pro:protected] => protected
53 [pro:protected] => protected
H A Dobserver_005.phpt10 protected $pro = 26;
29 protected $pro = 26;
84 ["pro":protected]=>
94 ["pro":protected]=>
104 ["pro":protected]=>
118 ["pro":protected]=>
134 ["pro":protected]=>
152 ["pro":protected]=>
162 ["pro":protected]=>
172 ["pro":protected]=>
[all …]
H A Darray_007.phpt6 // This test also needs to exclude the protected and private variables
13 protected $pro = "protected";
47 [pro:protected] => protected
59 [pro:protected] => protected
/PHP-7.4/tests/classes/
H A Dproperty_recreate_protected.phpt2 Unsetting and recreating protected properties.
6 protected $p = 'test';
22 echo "Unset and recreate a protected property from property's declaring class scope:\n";
27 echo "\nUnset and recreate a protected property from subclass:\n";
33 echo "\nUnset a protected property, and attempt to recreate it outside of scope (expected failure):…
39 Unset and recreate a protected property from property's declaring class scope:
41 ["p":protected]=>
45 Unset and recreate a protected property from subclass:
47 ["p":protected]=>
51 Unset a protected property, and attempt to recreate it outside of scope (expected failure):
[all …]
H A Darray_conversion_keys.phpt8 protected $protected = 'protected';
16 '' . "\0" . '*' . "\0" . 'protected' => 'protected',
H A Dprivate_members_serialization.phpt8 protected $protected = 'protected';
16 return array("\0foo\0private", 'protected', 'public');
23 string(114) "O:3:"bar":3:{s:12:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected"…
H A Dbug26737.phpt8 protected $protected = 'protected';
13 return array('private', 'protected', 'public', 'no_such');
22 string(130) "O:3:"foo":4:{s:12:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected"…
/PHP-7.4/ext/standard/tests/general_functions/
H A Dprint_r.phpt150 protected $protected_var1 = "string_1";
151 protected $protected_var2;
163 protected function foo2() {
182 protected $class_object4;
967 [protected_var1:protected] => string_1
968 [protected_var2:protected] => string_2
978 [protected_var1:protected] => string_1
979 [protected_var2:protected] => string_2
989 [protected_var1:protected] => string_1
990 [protected_var2:protected] => string_2
[all …]
H A Dprint_r_64bit.phpt154 protected $protected_var1 = "string_1";
155 protected $protected_var2;
167 protected function foo2() {
186 protected $class_object4;
971 [protected_var1:protected] => string_1
972 [protected_var2:protected] => string_2
982 [protected_var1:protected] => string_1
983 [protected_var2:protected] => string_2
993 [protected_var1:protected] => string_1
994 [protected_var2:protected] => string_2
[all …]
/PHP-7.4/Zend/tests/type_declarations/
H A Dtyped_properties_101.phpt8 protected float $protected;
25 ["protected":protected]=>
33 ["protected":protected]=>
/PHP-7.4/ext/standard/tests/class_object/
H A Dget_class_vars_variation2.phpt23 protected $prot = "protected var";
27 static protected $prots = "protected static var";
94 string(13) "protected var"
100 string(20) "protected static var"
110 string(13) "protected var"
116 string(20) "protected static var"
126 string(13) "protected var"
130 string(20) "protected static var"
138 string(13) "protected var"
150 string(13) "protected var"
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Drsort_object2.phpt21 protected $protected_class_value;
37 protected $protected_class_value;
107 ["protected_class_value":protected]=>
116 ["protected_class_value":protected]=>
125 ["protected_class_value":protected]=>
134 ["protected_class_value":protected]=>
146 ["protected_class_value":protected]=>
155 ["protected_class_value":protected]=>
164 ["protected_class_value":protected]=>
173 ["protected_class_value":protected]=>
[all …]
H A Dasort_object2.phpt24 protected $protected_class_value;
39 protected $protected_class_value;
103 ["protected_class_value":protected]=>
112 ["protected_class_value":protected]=>
121 ["protected_class_value":protected]=>
130 ["protected_class_value":protected]=>
142 ["protected_class_value":protected]=>
151 ["protected_class_value":protected]=>
160 ["protected_class_value":protected]=>
169 ["protected_class_value":protected]=>
[all …]
/PHP-7.4/ext/pdo/tests/
H A Dpdo_005.phpt27 protected $val;
33 protected $row;
87 ["val":protected]=>
96 ["val":protected]=>
105 ["val":protected]=>
117 ["row":protected]=>
121 ["val":protected]=>
130 ["row":protected]=>
134 ["val":protected]=>
143 ["row":protected]=>
[all …]

Completed in 79 milliseconds

12345678910>>...16