Home
last modified time | relevance | path

Searched refs:private (Results 1 – 25 of 823) sorted by relevance

12345678910>>...33

/PHP-8.1/ext/standard/tests/serialize/
H A Dbug49649_2.phpt2 Bug #49649 (unserialize() doesn't handle changes in property visibility) - to private
9 * private $private = 1;
26 private $public = null;
28 private $protected = null;
30 private $private = null;
38 ["public":"Foo":private]=>
40 ["protected":"Foo":private]=>
42 ["private":"Foo":private]=>
/PHP-8.1/ext/reflection/tests/
H A DReflectionProperty_setAccessible.phpt8 private $private = 'c';
17 $private = new ReflectionProperty($a, 'private');
22 var_dump($private->getValue($a));
27 $private->setValue($a, 'g');
32 var_dump($private->getValue($a));
37 $private->setAccessible(FALSE);
47 $private->setValue($a, 'k');
59 $private = new ReflectionProperty($a, 'private');
67 $private->setValue($b, 'g');
75 $private->setAccessible(FALSE);
[all …]
H A DReflectionProperty_constructor_variation1.phpt2 ReflectionProperty::__construct(): ensure inherited private props can't be accessed through Reflect…
7 private $p = 1;
30 echo "--> Reflect inherited private from global scope:\n";
38 echo "\n\n--> Reflect inherited private from declaring scope:\n";
41 echo "\n\n--> Reflect inherited private from declaring scope via subclass:\n";
44 echo "\n\n--> Reflect inherited private from subclass:\n";
48 --> Reflect inherited private from global scope:
51 --> Reflect inherited private from declaring scope:
54 --> Reflect inherited private from declaring scope via subclass:
57 --> Reflect inherited private from subclass:
H A Dbug37964.phpt2 Reflection Bug #37964 (Reflection shows private methods of parent class)
7 private function test2() {
11 private $foo = 1;
12 private function test() {
18 private function foobar() {
42 Method [ <user> private method foobar ] {
/PHP-8.1/Zend/tests/traits/
H A Dproperty008.phpt2 Handling of private fields with traits needs to have same semantics as with normal inheritance.
7 private $hello = 0;
12 private $hello = 0;
18 private $hello = 0;
45 ["hello":"BaseWithPropA":private]=>
47 ["hello":"SubclassClassicInheritance":private]=>
51 ["hello":"BaseWithPropA":private]=>
53 ["hello":"SubclassA":private]=>
57 ["hello":"BaseWithTPropB":private]=>
59 ["hello":"SubclassB":private]=>
/PHP-8.1/Zend/tests/
H A Dlsb_018.phpt7 static private $instances = array();
8 static private $nextInstanceId = 0;
9 private $instanceId = NULL;
59 ["instanceId":"Singleton":private]=>
63 ["instanceId":"Singleton":private]=>
67 ["instanceId":"Singleton":private]=>
71 ["instanceId":"Singleton":private]=>
75 ["instanceId":"Singleton":private]=>
79 ["instanceId":"Singleton":private]=>
83 ["instanceId":"Singleton":private]=>
[all …]
H A Dbug79862.phpt2 Bug #79862: Public non-static property in child should take priority over private static
7 private static $prop1;
8 private static $prop2;
9 private $prop3;
10 private $prop4;
11 private static $prop5;
12 private static $prop6;
48 ["prop3":"a":private]=>
50 ["prop4":"a":private]=>
H A Dbug60536_003.phpt7 private $hello = 0;
11 private $hello = 0;
35 ["hello":"BaseWithPropA":private]=>
37 ["hello":"SubclassA":private]=>
41 ["hello":"BaseWithTPropB":private]=>
43 ["hello":"SubclassB":private]=>
/PHP-8.1/ext/standard/tests/general_functions/
H A Dprint_r.phpt143 private $private_var1 = 20;
144 private $private_var2;
161 private function foo3() {
176 private $class_object3;
939 [private_var1:object_class:private] => 20
940 [private_var2:object_class:private] => 21
950 [private_var1:object_class:private] => 20
951 [private_var2:object_class:private] => 21
961 [private_var1:object_class:private] => 20
962 [private_var2:object_class:private] => 21
[all …]
H A Dprint_r_64bit.phpt147 private $private_var1 = 20;
148 private $private_var2;
165 private function foo3() {
180 private $class_object3;
943 [private_var1:object_class:private] => 20
944 [private_var2:object_class:private] => 21
954 [private_var1:object_class:private] => 20
955 [private_var2:object_class:private] => 21
965 [private_var1:object_class:private] => 20
966 [private_var2:object_class:private] => 21
[all …]
/PHP-8.1/tests/classes/
H A Dprivate_members_serialization.phpt2 Verifies that it is possible to return private member names of parent classes in __sleep
7 private $private = 'private';
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 Dproperty_recreate_private.phpt2 Unsetting and recreating private properties.
6 private $p = 'test';
21 echo "Unset and recreate a superclass's private property:\n";
40 echo "\n\nUnset and recreate a private property:\n";
54 Unset and recreate a superclass's private property:
56 ["p":"C":private]=>
60 Unset superclass's private property, and recreate it as public in subclass:
66 Unset superclass's private property, and recreate it as public at global scope:
73 Unset and recreate a private property:
75 ["p":"C":private]=>
[all …]
H A Dbug26737.phpt2 Bug #26737 (Protected and private variables are not saved on serialization when a user defined __sl…
7 private $private = 'private';
13 return array('private', 'protected', 'public', 'no_such');
22 string(114) "O:3:"foo":3:{s:12:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected"…
H A Darray_conversion_keys.phpt7 private $private = 'private';
15 '' . "\0" . 'foo' . "\0" . 'private' => 'private',
H A Dinheritance_008.phpt2 Ensure private methods with the same name are not checked for inheritance rules - static
6 static private function foo() { }
7 private function bar() {}
10 private function foo() {}
11 static private function bar() {}
/PHP-8.1/Zend/tests/type_declarations/
H A Dtyped_properties_101.phpt2 Dumping of uninitialized typed properties (including private ones)
9 private string $private;
27 ["private":"Test":private]=>
35 ["private":"Test":private]=>
/PHP-8.1/ext/spl/tests/
H A Darray_007.phpt6 // This test also needs to exclude the protected and private variables
14 private $pri = "private";
46 [pri:test:private] => private
52 [storage:ArrayIterator:private] => ArrayObject Object
54 [storage:ArrayObject:private] => test Object
58 [pri:test:private] => private
H A Darray_023.phpt10 private $foo = 'c';
26 private $foo = 'ccc';
45 ["foo":"Name":private]=>
47 ["storage":"ArrayObject":private]=>
57 ["foo":"Name":private]=>
59 ["storage":"ArrayObject":private]=>
69 ["foo":"Bla":private]=>
71 ["storage":"ArrayObject":private]=>
81 ["foo":"Bla":private]=>
83 ["storage":"ArrayObject":private]=>
H A Darray_003.phpt6 // This test also needs to exclude the protected and private variables
14 private $pri = "private";
42 [pri:test:private] => private
48 [storage:ArrayObject:private] => test Object
52 [pri:test:private] => private
H A Dbug78436.phpt14 ["flags":"SplPriorityQueue":private]=>
16 ["isCorrupted":"SplPriorityQueue":private]=>
18 ["heap":"SplPriorityQueue":private]=>
31 ["flags":"SplPriorityQueue":private]=>
33 ["isCorrupted":"SplPriorityQueue":private]=>
35 ["heap":"SplPriorityQueue":private]=>
H A Dobserver_005.phpt11 private $pri = 27;
30 private $pri = 27;
84 ["pri":"TestClass":private]=>
94 ["pri":"TestClass":private]=>
104 ["pri":"MyStorage":private]=>
118 ["pri":"TestClass":private]=>
134 ["pri":"TestClass":private]=>
152 ["pri":"TestClass":private]=>
162 ["pri":"TestClass":private]=>
172 ["pri":"MyStorage":private]=>
[all …]
H A DSplTempFileObject_constructor_basic.phpt9 ["pathName":"SplFileInfo":private]=>
11 ["fileName":"SplFileInfo":private]=>
13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>
H A DSplTempFileObject_constructor_memory_lt1_variation.phpt9 ["pathName":"SplFileInfo":private]=>
11 ["fileName":"SplFileInfo":private]=>
13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>
H A DSplDoublyLinkedList_serialization.phpt22 ["flags":"SplDoublyLinkedList":private]=>
24 ["dllist":"SplDoublyLinkedList":private]=>
34 ["flags":"SplDoublyLinkedList":private]=>
36 ["dllist":"SplDoublyLinkedList":private]=>
45 ["flags":"SplDoublyLinkedList":private]=>
47 ["dllist":"SplDoublyLinkedList":private]=>
57 ["flags":"SplDoublyLinkedList":private]=>
59 ["dllist":"SplDoublyLinkedList":private]=>
H A DSplTempFileObject_constructor_maxmemory_basic.phpt9 ["pathName":"SplFileInfo":private]=>
11 ["fileName":"SplFileInfo":private]=>
13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>

Completed in 33 milliseconds

12345678910>>...33