Home
last modified time | relevance | path

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

12345678910>>...18

/PHP-7.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;
36 ["property":protected]=>
43 Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.ph…
45 Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.ph…
47 ["property":protected]=>
H A Dbug75573.phpt9 function &__get($property)
11 if (isset($this->_stdObject->{$property})) {
12 $retval =& $this->_stdObject->{$property};
18 function &__set($property, $value)
20 return $this->_stdObject->{$property} = $value;
30 function &__get($property)
32 if (isset($this->settings) && isset($this->settings[$property])) {
33 $retval =& $this->settings[$property];
36 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 Notice: Undefined property: B::$a in %sbug76860.php on line 7
22 Notice: Accessing static property B::$b as non static in %sbug76860.php on line 7
24 Notice: Undefined property: B::$b in %sbug76860.php on line 7
26 Notice: Accessing static property B::$c as non static in %sbug76860.php on line 7
28 Notice: Undefined property: B::$c in %sbug76860.php on line 7
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 Notice: Undefined property: B::$a in %sbug76860_2.php on line 7
25 Notice: Accessing static property B::$b as non static in %sbug76860_2.php on line 7
27 Notice: Undefined property: B::$b in %sbug76860_2.php on line 7
29 Notice: Accessing static property B::$c as non static in %sbug76860_2.php on line 7
31 Notice: Undefined property: B::$c in %sbug76860_2.php on line 7
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 Dbug44660.phpt2 Bug #44660 (Indexed and reference assignment to property of non-object don't trigger warning)
31 Notice: Trying to get property 'p' of non-object in %sbug44660.php on line 6
34 Warning: Attempt to assign property 'p' of non-object in %sbug44660.php on line 9
37 Warning: Attempt to increment/decrement property 'p' of non-object in %sbug44660.php on line 12
40 Warning: Attempt to modify property 'p' of non-object in %sbug44660.php on line 15
43 Warning: Attempt to modify property 'p' of non-object in %sbug44660.php on line 18
46 Warning: Attempt to modify property 'p' of non-object in %sbug44660.php on line 21
/PHP-7.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 …]
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-7.4/ext/reflection/tests/
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";
34 Reflecting on property TestClass::pub
41 Reflecting on property TestClass::stat
48 Reflecting on property TestClass::prot
55 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";
30 echo "\nInstance without property:\n";
33 echo "\nStatic property / too many args:\n";
36 echo "\nStatic property / wrong type of arg:\n";
39 echo "\nProtected property:\n";
69 Instance without property:
71 Static property / too many args:
72 string(15) "static property"
74 Static property / wrong type of arg:
75 string(15) "static property"
[all …]
H A DReflectionProperty_setValue_error.phpt9 static public $stat = "static property";
32 echo "\nStatic property / too many args:\n";
35 echo "\nStatic property / too few args:\n";
41 echo "\nStatic property / wrong type of arg:\n";
45 echo "\nProtected property:\n";
54 echo "\n\nInstance without property:\n";
78 Static property / too many args:
83 Static property / too few args:
91 Static property / wrong type of arg:
95 Protected property:
[all …]
/PHP-7.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"
H A DarrayObject_setFlags_basic1.phpt6 public $p = 'object property';
22 echo "\n--> Access the real property:\n";
25 echo "\n--> Remove the real property and access the array element:\n";
34 --> Access the real property:
36 string(15) "object property"
37 string(23) "object property.changed"
39 --> Remove the real property and access the array element:
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_driver_reflection.phpt37 Inspecting property 'client_info'
45 Inspecting property 'client_version'
61 Inspecting property 'embedded'
69 Inspecting property 'reconnect'
77 Inspecting property 'report_mode'
84 Default property 'client_info'
85 Default property 'client_version'
86 Default property 'driver_version'
87 Default property 'embedded'
88 Default property 'reconnect'
[all …]
/PHP-7.4/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_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 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 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-7.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"));
25 string(10) "a property"
26 string(10) "a property"
/PHP-7.4/Zend/tests/type_declarations/
H A Dtyped_properties_046.phpt2 Memory leaks on wrong assignment to typed property
25 Typed property Foo::$bbb must be int, string used
26 Typed property Foo::$bbb must be int, string used
27 Typed property Foo::$bbb must be int, string used
28 Typed property Foo::$bbb must be int, string used
29 Typed property Foo::$bbb must be int, string used

Completed in 36 milliseconds

12345678910>>...18