Home
last modified time | relevance | path

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

12345678910>>...39

/PHP-8.4/ext/reflection/tests/
H A DReflectionProperty_getDefaultValue.phpt28 var_dump($property->getDefaultValue());
31 var_dump($property->getDefaultValue());
34 var_dump($property->getDefaultValue());
37 var_dump($property->getDefaultValue());
40 var_dump($property->getDefaultValue());
43 var_dump($property->getDefaultValue());
46 var_dump($property->getDefaultValue());
49 var_dump($property->getDefaultValue());
52 var_dump($property->getDefaultValue());
55 var_dump($property->getDefaultValue());
[all …]
H A DReflectionProperty_hasDefaultValue.phpt22 $property = new ReflectionProperty(TestClass::class, 'foo');
23 var_dump($property->hasDefaultValue());
26 var_dump($property->hasDefaultValue());
29 var_dump($property->hasDefaultValue());
32 var_dump($property->hasDefaultValue());
35 var_dump($property->hasDefaultValue());
38 var_dump($property->hasDefaultValue());
41 var_dump($property->hasDefaultValue());
44 var_dump($property->hasDefaultValue());
48 $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_isDynamic_basic.phpt6 function reflectProperty($classOrObj, $property, $className = null) {
8 $propInfo = new ReflectionProperty($classOrObj, $property);
10 echo "Reflecting on property $className::$property\n\n";
19 static public $stat = "static property";
36 Reflecting on property TestClass::pub
43 Reflecting on property TestClass::stat
50 Reflecting on property TestClass::prot
57 Reflecting on property TestClass::priv
64 Reflecting on property TestClass::dyn
H A DReflectionProperty_basic2.phpt8 function reflectProperty($classOrObj, $property, $className = null) {
10 $propInfo = new ReflectionProperty($classOrObj, $property);
12 echo "Reflecting on property $className::$property\n\n";
29 static public $stat = "static property";
31 * This property has a comment.
49 Reflecting on property TestClass::pub
67 Reflecting on property TestClass::stat
85 Reflecting on property TestClass::prot
100 * This property has a comment.
105 Reflecting on property TestClass::priv
[all …]
/PHP-8.4/ext/date/tests/
H A DDatePeriod_properties2.phpt19 foreach ($properties as $property) {
21 $period->$property = "new";
27 $period->$property[] = "extra";
45 Error: Cannot modify readonly property DatePeriod::$start
46 Error: Cannot modify readonly property DatePeriod::$start
47 Error: Cannot modify readonly property DatePeriod::$current
48 Error: Cannot modify readonly property DatePeriod::$current
49 Error: Cannot modify readonly property DatePeriod::$end
50 Error: Cannot modify readonly property DatePeriod::$end
51 Error: Cannot modify readonly property DatePeriod::$interval
[all …]
/PHP-8.4/tests/lang/
H A DforeachLoopObjects.003.phpt137 string(16) "Added property 0"
138 string(16) "Added property 1"
139 string(16) "Added property 2"
140 string(16) "Added property 3"
141 string(16) "Added property 4"
142 string(16) "Added property 5"
143 string(16) "Added property 6"
144 string(16) "Added property 7"
187 string(16) "Added property 0"
188 string(16) "Added property 1"
[all …]
/PHP-8.4/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
/PHP-8.4/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.4/Zend/tests/new_without_parentheses/
H A Dnew_with_ctor_arguments_parentheses.phpt9 public $property = 'property' . PHP_EOL;
10 public static $staticProperty = 'static property' . PHP_EOL;
55 echo new A()->property;
56 echo new $class()->property;
57 echo new (trim(' A '))()->property;
91 property
92 property
93 property
94 static property
95 static property
[all …]
/PHP-8.4/tests/classes/
H A Dproperty_recreate_private.phpt22 echo "Unset and recreate a superclass's private property:\n";
28 echo "\nUnset superclass's private property, and recreate it as public in subclass:\n";
37 $d->p = 'this will create a public property';
41 echo "\n\nUnset and recreate a private property:\n";
55 Unset and recreate a superclass's private property:
61 Unset superclass's private property, and recreate it as public in subclass:
67 Unset superclass's private property, and recreate it as public at global scope:
70 string(34) "this will create a public property"
74 Unset and recreate a private property:
80 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 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
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") {
/PHP-8.4/Zend/tests/readonly_props/
H A Dreadonly_modification.phpt2 Modifying a readonly property
72 Cannot modify readonly property Test::$prop
73 Cannot modify readonly property Test::$prop
74 Cannot modify readonly property Test::$prop
75 Cannot modify readonly property Test::$prop
76 Cannot indirectly modify readonly property Test::$prop
77 Cannot indirectly modify readonly property Test::$prop
78 Cannot indirectly modify readonly property Test::$prop
81 Cannot indirectly modify readonly property Test::$prop2
82 Cannot indirectly modify readonly property Test::$prop2
H A Dvariation.phpt108 Init: 1, scope: 1, op: w: Cannot modify readonly property Test::$prop
109 Init: 1, scope: 1, op: rw: Cannot modify readonly property Test::$prop
110 Init: 1, scope: 1, op: im: Cannot indirectly modify readonly property Test::$prop
112 Init: 1, scope: 1, op: us: Cannot unset readonly property Test::$prop
113 Init: 1, scope: 1, op: us_dim: Cannot indirectly modify readonly property Test::$array
115 Init: 1, scope: 0, op: w: Cannot modify readonly property Test::$prop
116 Init: 1, scope: 0, op: rw: Cannot modify readonly property Test::$prop
117 Init: 1, scope: 0, op: im: Cannot indirectly modify readonly property Test::$prop
119 Init: 1, scope: 0, op: us: Cannot unset readonly property Test::$prop
124 Init: 0, scope: 1, op: im: Cannot indirectly modify readonly property Test::$prop
[all …]
/PHP-8.4/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.4/ext/tidy/tests/
H A D036.phpt67 Cannot modify readonly property tidyNode::$value
68 Cannot modify readonly property tidyNode::$name
69 Cannot modify readonly property tidyNode::$type
70 Cannot modify readonly property tidyNode::$line
71 Cannot modify readonly property tidyNode::$column
72 Cannot modify readonly property tidyNode::$proprietary
73 Cannot modify readonly property tidyNode::$id
74 Cannot modify readonly property tidyNode::$attribute
75 Cannot modify readonly property tidyNode::$child
/PHP-8.4/ext/dom/tests/bug79701/
H A Dset_attr_value.phpt7 foreach (["value", "nodeValue"] as $property) {
8 echo "--- Testing property \$$property ---\n";
22 $test1->getAttributeNode('xml:id')->$property = "y";
26 $test2->getAttributeNode('xml:id')->$property = "x";
32 --- Testing property $value ---
39 --- Testing property $nodeValue ---

Completed in 28 milliseconds

12345678910>>...39