/PHP-8.1/ext/reflection/tests/ |
H A D | ReflectionProperty_getDefaultValue.phpt | 27 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 D | ReflectionProperty_hasDefaultValue.phpt | 21 $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 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
|
H A D | ReflectionProperty_basic1.phpt | 6 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.1/tests/lang/ |
H A D | foreachLoopObjects.003.phpt | 136 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 …]
|
/PHP-8.1/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.1/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.1/tests/classes/ |
H A D | property_recreate_private.phpt | 21 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 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.1/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.1/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.1/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
|
/PHP-8.1/ext/snmp/tests/ |
H A D | snmp-object-properties-error.phpt | 2 Test SNMP object property errors 77 Cannot write read-only property SNMP::$info 78 Cannot write read-only property SNMP::$info 79 Cannot assign array to property SNMP::$max_oids of type ?int 81 Cannot assign array to property SNMP::$valueretrieval of type int 82 Cannot assign array to property SNMP::$quick_print of type bool 83 Cannot assign array to property SNMP::$enum_print of type bool 84 Cannot assign array to property SNMP::$oid_output_format of type int 85 Cannot assign array to property SNMP::$oid_increasing_check of type bool 86 Cannot assign array to property SNMP::$exceptions_enabled of type int
|