/PHP-8.3/ext/reflection/tests/ |
H A D | ReflectionProperty_getDefaultValue.phpt | 28 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 D | ReflectionProperty_hasDefaultValue.phpt | 22 $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 D | ReflectionProperty_getModifiers.001.phpt | 9 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 D | ReflectionProperty_isDefault_basic.phpt | 6 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 D | ReflectionProperty_basic2.phpt | 8 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 D | ReflectionProperty_getValue_error.phpt | 9 static public $stat = "static property"; 21 echo "\nInstance without property:\n"; 24 echo "\nStatic property / too many args:\n"; 31 echo "\nProtected property:\n"; 52 Instance without property: 54 Static property / too many args: 57 Protected property: 62 Given object is not an instance of the class this property was declared in
|
/PHP-8.3/ext/date/tests/ |
H A D | DatePeriod_properties2.phpt | 19 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.3/tests/lang/ |
H A D | foreachLoopObjects.003.phpt | 137 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.3/Zend/tests/ |
H A D | bug37667.phpt | 8 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 D | bug75573.phpt | 13 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 D | bug76860.phpt | 2 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.3/ext/spl/tests/ |
H A D | bug45622.phpt | 7 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"
|
H A D | gh10248.phpt | 2 GH-10248 (Assertion `!(zval_get_type(&(*(property))) == 10)' failed.) 8 public ?int $property; 11 $a->property = &$b; 12 $a->property;
|
/PHP-8.3/tests/classes/ |
H A D | property_recreate_private.phpt | 22 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 D | assign_op_property_001.phpt | 2 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 D | property_recreate_protected.phpt | 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: 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 D | incdec_property_001.phpt | 2 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 D | incdec_property_003.phpt | 2 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 D | incdec_property_002.phpt | 2 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 D | incdec_property_004.phpt | 2 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.3/Zend/tests/readonly_props/ |
H A D | variation.phpt | 96 Init: 1, scope: 1, op: w: Cannot modify readonly property Test::$prop 97 Init: 1, scope: 1, op: rw: Cannot modify readonly property Test::$prop 98 Init: 1, scope: 1, op: im: Cannot modify readonly property Test::$prop 100 Init: 1, scope: 1, op: us: Cannot unset readonly property Test::$prop 102 Init: 1, scope: 0, op: w: Cannot modify readonly property Test::$prop 103 Init: 1, scope: 0, op: rw: Cannot modify readonly property Test::$prop 104 Init: 1, scope: 0, op: im: Cannot modify readonly property Test::$prop 106 Init: 1, scope: 0, op: us: Cannot unset readonly property Test::$prop 110 Init: 0, scope: 1, op: im: Cannot indirectly modify readonly property Test::$prop 116 Init: 0, scope: 0, op: im: Cannot indirectly modify readonly property Test::$prop [all …]
|
H A D | readonly_modification.phpt | 2 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 modify readonly property Test::$prop 77 Cannot modify readonly property Test::$prop 78 Cannot modify readonly property Test::$prop 81 Cannot modify readonly property Test::$prop2 82 Cannot modify readonly property Test::$prop2
|
/PHP-8.3/ext/standard/tests/strings/ |
H A D | str_replace_array_refs2.phpt | 17 $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.3/ext/tidy/tests/ |
H A D | 036.phpt | 67 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.3/Zend/tests/type_declarations/ |
H A D | typed_properties_046.phpt | 2 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
|