Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/php-src/Zend/tests/property_hooks/
H A Dcache.phpt7 public $prop {
15 $test->prop;
42 Test::$prop::set
43 Test::$prop::get
44 Test::$prop::set
45 Test::$prop::get
46 Test::$prop::set
47 Test::$prop::set
48 Test::$prop::get
50 Test::$prop::get
[all …]
H A Dexplicit_set_value_parameter_type.phpt7 public string $prop {
8 set(string|array $prop) {
9 $this->prop = is_array($prop) ? join(', ', $prop) : $prop;
15 var_dump($test->prop = 'prop');
16 var_dump($test->prop = ['prop1', 'prop2']);
17 var_dump($test->prop);
21 string(4) "prop"
H A Dplain_to_hook.phpt7 public $prop;
11 public $prop {
13 return 'B::$prop::get()';
16 echo "B::\$prop::set($value)\n";
22 $a->prop = 42;
23 echo $a->prop, "\n";
26 $b->prop = 42;
27 echo $b->prop, "\n";
32 B::$prop::set(42)
33 B::$prop::get()
H A Ddefault_on_hooks.phpt7 public $prop = 42 {
10 return $this->prop;
14 $this->prop = $value;
21 var_dump($a->prop);
22 $a->prop = 43;
23 var_dump($a->prop);
28 ["prop"]=>
31 A::$prop::get
33 A::$prop::set
34 A::$prop::get
H A Doverride_by_plain_prop.phpt7 public $prop {
14 public $prop;
18 $a->prop = 43;
19 var_dump($a->prop);
22 $b->prop = 43;
23 var_dump($b->prop);
27 A::$prop::set
28 A::$prop::get
30 A::$prop::set
31 A::$prop::get
H A Dfield_guard.phpt2 $this->prop refers to backing store from either hook
7 public $prop {
10 $this->prop = 'prop';
14 var_dump($this->prop);
20 $test->prop;
21 $test->prop = 42;
27 string(4) "prop"
H A Doverride_add_get.phpt7 public $prop {
13 public $prop {
20 $a->prop = 1;
22 var_dump($a->prop);
28 $b->prop = 1;
29 var_dump($b->prop);
33 A::A::$prop::set
34 Property A::$prop is write-only
35 B::B::$prop::set
36 B::B::$prop::get
H A Dget_by_ref_virtual.phpt8 public $prop {
19 $test->prop = 42;
21 $prop = &$test->prop;
22 $prop++;
24 var_dump($test->prop);
25 unset($prop);
27 inc($test->prop);
29 var_dump($test->prop);
/php-src/Zend/tests/
H A Dbug28442.phpt8 static $prop;
13 static $prop;
21 ClassA::$prop = 'A';
22 ClassB::$prop = 'B';
23 ClassC::$prop = 'C';
24 var_dump(ClassA::$prop);
25 var_dump(ClassB::$prop);
26 var_dump(ClassC::$prop);
29 ClassA::$prop = 'A2';
35 ClassB::$prop = 'B2';
[all …]
/php-src/ext/spl/tests/
H A DarrayObject___construct_basic2.phpt6 public $prop = 'C::prop.orig';
10 public $prop = 'MyArrayObject::prop.orig';
30 @var_dump($ao->prop, $ao['prop']);
35 var_dump($ao->prop, $ao['prop']);
38 var_dump(isset($ao->prop), isset($ao['prop']));
41 unset($ao->prop);
42 unset($ao['prop']);
43 var_dump($ao->prop, $ao['prop']);
52 prop=>C::prop.orig
55 string(12) "C::prop.orig"
[all …]
H A DarrayObject___construct_basic3.phpt6 public $prop = 'C::prop.orig';
10 public $prop = 'MyArrayObject::prop.orig';
30 @var_dump($ao->prop, $ao['prop']);
35 var_dump($ao->prop, $ao['prop']);
38 var_dump(isset($ao->prop), isset($ao['prop']));
41 unset($ao->prop);
42 unset($ao['prop']);
43 var_dump($ao->prop, $ao['prop']);
52 prop=>C::prop.orig
55 string(12) "C::prop.orig"
[all …]
H A DarrayObject___construct_basic4.phpt6 public $prop = 'C::prop.orig';
10 public $prop = 'MyArrayObject::prop.orig';
30 @var_dump($ao->prop, $ao['prop']);
35 var_dump($ao->prop, $ao['prop']);
38 var_dump(isset($ao->prop), isset($ao['prop']));
41 unset($ao->prop);
42 unset($ao['prop']);
43 var_dump($ao->prop, $ao['prop']);
52 prop=>C::prop.orig
54 string(12) "C::prop.orig"
[all …]
H A DarrayObject___construct_basic5.phpt6 public $prop = 'C::prop.orig';
10 public $prop = 'MyArrayObject::prop.orig';
30 @var_dump($ao->prop, $ao['prop']);
35 var_dump($ao->prop, $ao['prop']);
38 var_dump(isset($ao->prop), isset($ao['prop']));
41 unset($ao->prop);
42 unset($ao['prop']);
43 var_dump($ao->prop, $ao['prop']);
52 prop=>C::prop.orig
54 string(12) "C::prop.orig"
[all …]
/php-src/Zend/tests/readonly_props/
H A Dreadonly_containing_object.phpt10 $this->prop = $prop;
15 $test->prop->foo = 1;
16 $test->prop->foo += 1;
17 $test->prop->foo++;
19 $test->prop += 1;
24 $test->prop++;
29 --$test->prop;
33 var_dump($test->prop);
36 $ref =& $test->prop;
41 $test->prop[] = [];
[all …]
H A Dunset.phpt7 public readonly int $prop;
9 public function __construct(int $prop) {
10 $this->prop = $prop;
16 unset($test->prop);
22 public readonly int $prop;
26 unset($this->prop); // Unset unset.
32 $this->prop = 1;
33 return $this->prop;
38 var_dump($test->prop); // Call __get.
47 public readonly int $prop;
[all …]
H A Dmagic_get_set.phpt7 public readonly int $prop;
10 unset($this->prop);
42 $test->prop = 1;
47 unset($test->prop);
55 var_dump($test->prop);
56 $test->prop = 2;
58 unset($test->prop);
69 Test::__isset(prop)
71 Test::__get(prop)
73 Test::__set(prop, 2)
[all …]
H A Dvariation_nested.phpt7 public int $prop = 1;
12 public readonly Inner $prop;
15 $this->prop = new Inner();
20 echo $test->prop->prop;
24 $test->prop->prop = 0;
29 $test->prop->prop += 1;
34 $test->prop->array[] = 1;
39 echo (int) isset($test->prop->prop);
43 unset($test->prop->prop);
48 unset($test->prop->array[0]);
[all …]
H A Dinitialization_scope.phpt7 public readonly int $prop;
10 $this->prop = 3;
15 $this->prop = 2;
21 $test->prop = 1;
30 var_dump($test->prop);
35 $this->prop = 1;
37 var_dump($test->prop);
45 var_dump($test->prop);
49 $this->prop = 1;
64 ["prop"]=>
[all …]
H A Dreadonly_modification.phpt7 readonly public int $prop;
12 $this->prop = 1;
20 var_dump($test->prop); // Read.
22 $test->prop = 2;
27 $test->prop += 1;
32 $test->prop++;
37 ++$test->prop;
42 $ref =& $test->prop;
47 $test->prop =& $ref;
52 byRef($test->prop);
[all …]
H A Dvariation.phpt7 public readonly int $prop;
11 $this->prop = 1;
16 echo $this->prop;
20 $this->prop = 1;
25 $this->prop += 1;
30 $this->prop[] = 1;
50 echo $test->prop;
54 $test->prop = 0;
59 $test->prop += 1;
64 $test->prop[] = 1;
[all …]
/php-src/Zend/tests/lazy_objects/
H A Dtyped_properties_003.phpt7 public int $prop = 0;
10 function op($obj, $prop) {
11 $obj->$prop += 1;
14 return ++$obj->$prop;
25 op($obj, 'prop');
26 op($obj, 'prop');
28 pre($obj, 'prop');
29 pre($obj, 'prop');
31 post($obj, 'prop');
32 post($obj, 'prop');
[all …]
/php-src/Zend/tests/in-de-crement/
H A Dincdec_ref_property.phpt7 $obj->prop = 1;
8 $ref =& $obj->prop;
9 var_dump(++$obj->prop);
10 var_dump($obj->prop);
11 var_dump($obj->prop++);
12 var_dump($obj->prop);
13 var_dump(--$obj->prop);
14 var_dump($obj->prop);
15 var_dump($obj->prop--);
16 var_dump($obj->prop);
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_089.phpt7 public string $prop = "";
13 $a->prop = "dont ";
14 $a->prop .= "leak ";
15 $a->prop .= "me!";
21 $a->prop = new B;
25 $prop = &$a->prop;
26 $a->prop = new B;
32 ["prop"]=>
36 ["prop"]=>
/php-src/Zend/tests/asymmetric_visibility/
H A Dvariation_nested.phpt7 public int $prop = 1;
12 public private(set) Inner $prop;
15 $this->prop = new Inner();
20 echo $test->prop->prop;
24 $test->prop->prop = 0;
29 $test->prop->prop += 1;
34 $test->prop->array[] = 1;
39 echo (int) isset($test->prop->prop);
43 unset($test->prop->prop);
48 unset($test->prop->array[0]);
[all …]
/php-src/Zend/tests/type_declarations/union_types/
H A Dincdec_prop.phpt15 $x = $test->prop++;
19 $x = ++$test->prop;
23 $x = $test->prop--;
27 $x = --$test->prop;
32 $r =& $test->prop;
33 $x = $test->prop++;
37 $x = ++$test->prop;
38 $r =& $test->prop;
42 $x = $test->prop--;
43 $r =& $test->prop;
[all …]

Completed in 15 milliseconds

12345678910>>...20