Home
last modified time | relevance | path

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

12345678910>>...12

/PHP-8.2/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 …]
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);
H A Dproperty_access_errors_for_guarded_properties.phpt7 $obj->prop = 42;
11 var_dump($obj->prop);
15 unset($obj->prop);
19 private $prop;
36 $test->prop = "bar";
41 var_dump($test->prop);
46 unset($test->prop);
53 Cannot access private property Test::$prop
54 Cannot access private property Test::$prop
55 Cannot access private property Test::$prop
/PHP-8.2/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 …]
H A Dbug54323.phpt6 public $prop = 'C::prop.orig';
16 unset($ao['prop']);
17 var_dump($c->prop, $ao['prop']);
21 Warning: Undefined property: C::$prop in %s on line %d
23 Warning: Undefined array key "prop" in %s on line %d
/PHP-8.2/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 Dvariation.phpt7 public readonly int $prop;
10 $this->prop = 1;
14 echo $this->prop;
18 $this->prop = 1;
23 $this->prop += 1;
28 $this->prop[] = 1;
43 echo $test->prop;
47 $test->prop = 0;
52 $test->prop += 1;
57 $test->prop[] = 1;
[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);
73 Init: 0, op: w: Cannot indirectly modify readonly property Test::$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 Dinitialization_scope.phpt7 public readonly int $prop;
10 $this->prop = 3;
15 $this->prop = 2;
21 $test->prop = 1;
32 var_dump($test->prop);
37 $this->prop = 1;
39 var_dump($test->prop);
42 public readonly int $prop;
47 var_dump($test->prop);
51 $this->prop = 1;
[all …]
H A Dserialization.phpt8 public readonly int $prop = 1,
17 var_dump(unserialize("O:4:\"Test\":1:{s:4:\"prop\";i:2;}"));
18 var_dump(unserialize("O:4:\"Test\":2:{s:4:\"prop\";i:2;s:4:\"prop\";i:3;}"));
22 string(30) "O:4:"Test":1:{s:4:"prop";i:1;}"
24 ["prop"]=>
28 ["prop"]=>
32 ["prop"]=>
/PHP-8.2/ext/pcre/pcre2lib/
H A Dpcre2_xclass.c136 const ucd_record *prop = GET_UCD(c); in PRIV() local
147 if ((prop->chartype == ucp_Lu || prop->chartype == ucp_Ll || in PRIV()
165 ok = (data[1] == prop->script || in PRIV()
171 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_L || in PRIV()
197 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_L || in PRIV()
224 UCD_BPROPS_PROP(prop), data[1]) != 0; in PRIV()
241 if ((PRIV(ucp_gentype)[prop->chartype] != ucp_Z && in PRIV()
243 (prop->chartype == ucp_Cf && in PRIV()
253 if ((prop->chartype != ucp_Zl && in PRIV()
254 prop->chartype != ucp_Zp && in PRIV()
[all …]
/PHP-8.2/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-8.2/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 …]
H A Dmultiple_classes.phpt7 public X|Y|Z|int $prop;
20 $test->prop = 42;
21 var_dump($test->prop);
24 $test->prop = "42";
25 var_dump($test->prop);
44 $test->prop = new X;
45 var_dump($test->prop);
52 $test->prop = new Z;
53 var_dump($test->prop);
60 $test->prop = new Y;
[all …]
/PHP-8.2/ext/opcache/tests/jit/
H A Dassign_obj_op_002.phpt11 public string $prop = "222";
17 $a->prop .= $a->prop . "leak";
23 $prop = &$a->prop;
24 $a->prop = new B;
29 ["prop"]=>
H A Dinc_023.phpt12 public string $prop;
16 $test->prop = "a";
17 ++$test->prop;
18 --$test->prop;
19 var_dump(++$test->prop);
20 var_dump(--$test->prop);
H A Dfetch_obj_008.phpt11 public string $prop = "";
17 $a->prop = "A $e B";
18 $a->prop->prop . $a->prop = "C";
24 $a->prop = new B;
30 Warning: Attempt to read property "prop" on string in %sfetch_obj_008.php on line 10
H A Dfetch_obj_007.phpt11 public ?C $prop = null;
14 $obj->prop->prop = null;
18 $obj->prop = new C;
26 ["prop"]=>
28 ["prop"]=>
/PHP-8.2/ext/standard/tests/serialize/
H A Dtyped_property_ref_overwrite2.phpt7 public ?Test $prop;
10 O:4:"Test":2:{s:4:"prop";N;s:4:"prop";O:4:"Test":1:{s:4:"prop";R:2;}}
17 ["prop"]=>
19 ["prop"]=>

Completed in 27 milliseconds

12345678910>>...12