Home
last modified time | relevance | path

Searched refs:property (Results 1 – 25 of 535) sorted by relevance

12345678910>>...22

/PHP-8.0/ext/reflection/tests/
H A DReflectionProperty_getDefaultValue.phpt27 var_dump($property->getDefaultValue());
30 var_dump($property->getDefaultValue());
33 var_dump($property->getDefaultValue());
36 var_dump($property->getDefaultValue());
39 var_dump($property->getDefaultValue());
42 var_dump($property->getDefaultValue());
45 var_dump($property->getDefaultValue());
48 var_dump($property->getDefaultValue());
51 var_dump($property->getDefaultValue());
54 var_dump($property->getDefaultValue());
[all …]
H A DReflectionProperty_hasDefaultValue.phpt21 $property = new ReflectionProperty(TestClass::class, 'foo');
22 var_dump($property->hasDefaultValue());
25 var_dump($property->hasDefaultValue());
28 var_dump($property->hasDefaultValue());
31 var_dump($property->hasDefaultValue());
34 var_dump($property->hasDefaultValue());
37 var_dump($property->hasDefaultValue());
40 var_dump($property->hasDefaultValue());
43 var_dump($property->hasDefaultValue());
47 $property = new ReflectionProperty($test, 'dynamic');
[all …]
H A DReflectionProperty_getModifiers.001.phpt9 function reflectProperty($class, $property) {
10 $propInfo = new ReflectionProperty($class, $property);
13 echo "Reflecting on property $class::$property\n\n";
24 static public $stat = "static property";
26 * This property has a comment.
40 Reflecting on property TestClass::pub
47 Reflecting on property TestClass::stat
54 Reflecting on property TestClass::prot
61 Reflecting on property TestClass::priv
H A DReflectionProperty_isDefault_basic.phpt6 function reflectProperty($class, $property) {
7 $propInfo = new ReflectionProperty($class, $property);
9 echo "Reflecting on property $class::$property\n\n";
17 static public $stat = "static property";
30 Reflecting on property TestClass::pub
37 Reflecting on property TestClass::stat
44 Reflecting on property TestClass::prot
51 Reflecting on property TestClass::priv
H A DReflectionProperty_basic2.phpt8 function reflectProperty($class, $property) {
9 $propInfo = new ReflectionProperty($class, $property);
11 echo "Reflecting on property $class::$property\n\n";
25 static public $stat = "static property";
27 * This property has a comment.
41 Reflecting on property TestClass::pub
57 Reflecting on property TestClass::stat
73 Reflecting on property TestClass::prot
86 * This property has a comment.
91 Reflecting on property TestClass::priv
H A DReflectionProperty_getValue_error.phpt9 static public $stat = "static property";
21 echo "\nInstance without property:\n";
24 echo "\nStatic property / too many args:\n";
31 echo "\nProtected property:\n";
57 Instance without property:
59 Static property / too many args:
62 Protected property:
63 Cannot access non-public property TestClass::$prot
66 Given object is not an instance of the class this property was declared in
H A DReflectionProperty_setValue_error.phpt9 static public $stat = "static property";
21 echo "\nProtected property:\n";
30 echo "\n\nInstance without property:\n";
36 Protected property:
37 Cannot access non-public property TestClass::$prot
39 Instance without property:
H A DReflectionProperty_basic1.phpt6 function reflectProperty($class, $property) {
7 $propInfo = new ReflectionProperty($class, $property);
9 echo "Reflecting on property $class::$property\n\n";
35 static public $stat = "static property";
48 Reflecting on property TestClass::pub
70 Reflecting on property TestClass::stat
73 string(53) "Property [ public static $stat = 'static property' ]
86 string(15) "static property"
92 Reflecting on property TestClass::prot
110 Reflecting on property TestClass::priv
/PHP-8.0/Zend/tests/
H A Dbug37667.phpt8 protected $property = array('foo' => 'bar');
12 return $this->property;
18 var_dump($obj->property['foo']);
19 var_dump($obj->property[2]);
23 $obj->property[] = 1;
24 $obj->property[] = 2;
35 ["property":protected]=>
42 Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.ph…
44 Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.ph…
46 ["property":protected]=>
H A Dbug75573.phpt13 function &__get($property)
15 if (isset($this->_stdObject->{$property})) {
16 $retval =& $this->_stdObject->{$property};
22 function &__set($property, $value)
24 return $this->_stdObject->{$property} = $value;
34 function &__get($property)
36 if (isset($this->settings) && isset($this->settings[$property])) {
37 $retval =& $this->settings[$property];
40 return parent::__get($property);
H A Dbug76860.phpt2 Bug #76860 (Missed "Accessing static property as non static" warning)
18 Notice: Accessing static property B::$a as non static in %sbug76860.php on line 7
20 Warning: Undefined property: B::$a in %s on line %d
22 Notice: Accessing static property B::$b as non static in %sbug76860.php on line 7
24 Warning: Undefined property: B::$b in %s on line %d
26 Notice: Accessing static property B::$c as non static in %sbug76860.php on line 7
28 Warning: Undefined property: B::$c in %s on line %d
H A Dbug77291.phpt8 public function __isset($property)
10 return property_exists($this, $property);
13 public function __get($property)
15 if (property_exists($this, $property)) {
16 return $this->$property;
H A Dbug76860_2.phpt2 Bug #76860 (Missed "Accessing static property as non static" warning)
21 Notice: Accessing static property B::$a as non static in %sbug76860_2.php on line 7
23 Warning: Undefined property: B::$a in %s on line %d
25 Notice: Accessing static property B::$b as non static in %sbug76860_2.php on line 7
27 Warning: Undefined property: B::$b in %s on line %d
29 Notice: Accessing static property B::$c as non static in %sbug76860_2.php on line 7
31 Warning: Undefined property: B::$c in %s on line %d
/PHP-8.0/tests/lang/
H A DforeachLoopObjects.003.phpt136 string(16) "Added property 0"
137 string(16) "Added property 1"
138 string(16) "Added property 2"
139 string(16) "Added property 3"
140 string(16) "Added property 4"
141 string(16) "Added property 5"
142 string(16) "Added property 6"
143 string(16) "Added property 7"
186 string(16) "Added property 0"
187 string(16) "Added property 1"
[all …]
H A Dengine_assignExecutionOrder_001.phpt25 echo "\n\nOrder with object property assignment:\n";
30 echo "\n\nOrder with nested object property assignment:\n";
37 echo "\n\nOrder with dim_list property assignment:\n";
48 echo "\n\nOrder with static property assignment:\n";
52 echo "\n\nOrder with static array property assignment:\n";
90 Order with object property assignment:
99 Order with nested object property assignment:
114 Order with dim_list property assignment:
126 Order with static property assignment:
132 Order with static array property assignment:
[all …]
/PHP-8.0/ext/spl/tests/
H A Dbug45622.phpt7 public $p = 'object property';
13 echo "\n--> Access the real property:\n";
17 echo "\n--> Remove the real property and access the array element:\n";
27 echo "\n--> Re-add the real property:\n";
28 $ao->p = 'object property';
33 --> Access the real property:
35 string(15) "object property"
37 --> Remove the real property and access the array element:
47 --> Re-add the real property:
49 string(15) "object property"
/PHP-8.0/tests/classes/
H A Dproperty_recreate_private.phpt21 echo "Unset and recreate a superclass's private property:\n";
27 echo "\nUnset superclass's private property, and recreate it as public in subclass:\n";
36 $d->p = 'this will create a public property';
40 echo "\n\nUnset and recreate a private property:\n";
54 Unset and recreate a superclass's private property:
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:
69 string(34) "this will create a public property"
73 Unset and recreate a private property:
79 Unset a private property, and attempt to recreate at global scope (expecting failure):
[all …]
H A Dassign_op_property_001.phpt2 ZE2 assign_op property of overloaded object
9 function __set($property, $value) {
10 if ($property == "a") {
15 function __get($property) {
16 if ($property == "a") {
H A Dincdec_property_001.phpt2 ZE2 post increment/decrement property of overloaded object
9 function __set($property, $value) {
10 if ($property == "a") {
15 function __get($property) {
16 if ($property == "a") {
H A Dincdec_property_003.phpt2 ZE2 pre increment/decrement property of overloaded object
9 function __set($property, $value) {
10 if ($property == "a") {
15 function __get($property) {
16 if ($property == "a") {
H A Dincdec_property_002.phpt2 ZE2 post increment/decrement property of overloaded object with assignment
9 function __set($property, $value) {
10 if ($property == "a") {
15 function __get($property) {
16 if ($property == "a") {
H A Dincdec_property_004.phpt2 ZE2 pre increment/decrement property of overloaded object with assignment
9 function __set($property, $value) {
10 if ($property == "a") {
15 function __get($property) {
16 if ($property == "a") {
H A Dproperty_recreate_protected.phpt22 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:
45 Unset and recreate a protected property from subclass:
51 Unset a protected property, and attempt to recreate it outside of scope (expected failure):
53 Fatal error: Uncaught Error: Cannot access protected property %s::$p in %s:32
/PHP-8.0/ext/standard/tests/strings/
H A Dstr_replace_array_refs2.phpt17 $obj->prop = ['x' => 'property'];
19 var_dump(str_replace(array_keys($obj->prop), $obj->prop, "x property"));
21 $array = ['x' => 'property'];
23 var_dump(str_replace(array_keys($array), $array, "x property"));
26 string(10) "a property"
27 string(10) "a property"
/PHP-8.0/Zend/tests/type_declarations/
H A Dtyped_properties_046.phpt2 Memory leaks on wrong assignment to typed property
26 Cannot assign string to property Foo::$bbb of type int
27 Cannot assign string to property Foo::$bbb of type int
28 Cannot assign string to property Foo::$bbb of type int
29 Cannot assign string to property Foo::$bbb of type int
30 Cannot assign string to property Foo::$bbb of type int

Completed in 27 milliseconds

12345678910>>...22