/PHP-8.0/Zend/tests/ |
H A D | bug28442.phpt | 8 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 D | incdec_ref_property.phpt | 7 $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 D | property_access_errors_for_guarded_properties.phpt | 7 $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.0/ext/spl/tests/ |
H A D | arrayObject___construct_basic2.phpt | 6 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 D | arrayObject___construct_basic4.phpt | 6 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 D | arrayObject___construct_basic5.phpt | 6 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 D | arrayObject___construct_basic3.phpt | 6 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 D | bug54323.phpt | 6 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.0/ext/pcre/pcre2lib/ |
H A D | pcre2_xclass.c | 136 const ucd_record *prop = GET_UCD(c); in PRIV() local 146 if ((prop->chartype == ucp_Lu || prop->chartype == ucp_Ll || in PRIV() 164 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_L || in PRIV() 190 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_L || in PRIV() 223 if ((PRIV(ucp_gentype)[prop->chartype] != ucp_Z && in PRIV() 224 (PRIV(ucp_gentype)[prop->chartype] != ucp_C || in PRIV() 225 (prop->chartype == ucp_Cf && in PRIV() 235 if ((prop->chartype != ucp_Zl && in PRIV() 236 prop->chartype != ucp_Zp && in PRIV() 238 (prop->chartype == ucp_Cf && in PRIV() [all …]
|
/PHP-8.0/Zend/tests/type_declarations/ |
H A D | typed_properties_089.phpt | 7 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"]=>
|
H A D | typed_properties_074.phpt | 7 public $prop = "x"; 11 return $this->prop; 16 $dummyRef = &$test->prop; 24 $test->prop = "y"; 25 var_dump($test->prop); 30 ["prop"]=> 37 ["prop"]=>
|
H A D | typed_properties_096.phpt | 7 public Foobar $prop; 15 $test->prop =& $ref; 22 public ?Foobar $prop; 29 $test->prop =& $ref; 34 Cannot assign int to property Test1::$prop of type Foobar 36 ["prop"]=> 42 ["prop"]=>
|
H A D | typed_properties_failed_assign_is_not_init.phpt | 7 public int $prop; 17 $test->prop; 22 $test->prop = "foo"; 27 $test->prop; 34 Typed property Test::$prop must not be accessed before initialization 35 Cannot assign string to property Test::$prop of type int 36 Typed property Test::$prop must not be accessed before initialization
|
H A D | typed_properties_088.phpt | 7 public int $prop; 10 public $prop; 14 $obj->prop = "42"; 24 ["prop"]=> 28 ["prop"]=>
|
H A D | typed_properties_073.phpt | 7 public $prop = "42"; 11 return $this->prop; 21 $test->prop = "x"; 27 ["prop"]=> 34 ["prop"]=> 40 ["prop"]=>
|
H A D | typed_properties_cache_slot_opt.phpt | 7 public int $prop; 11 $this->prop = 1; 13 $this->prop = "foobar"; 17 var_dump($this->prop); 27 Cannot assign string to property Test::$prop of type int 29 Cannot assign string to property Test::$prop of type int
|
/PHP-8.0/Zend/tests/type_declarations/union_types/ |
H A D | incdec_prop.phpt | 15 $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 D | multiple_classes.phpt | 7 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.0/ext/opcache/tests/jit/ |
H A D | assign_obj_op_002.phpt | 11 public string $prop = "222"; 17 $a->prop .= $a->prop . "leak"; 23 $prop = &$a->prop; 24 $a->prop = new B; 29 ["prop"]=>
|
H A D | inc_023.phpt | 12 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 D | fetch_obj_008.phpt | 11 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
|
/PHP-8.0/ext/standard/tests/serialize/ |
H A D | typed_property_ref_overwrite2.phpt | 7 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"]=>
|
/PHP-8.0/tests/classes/ |
H A D | this.phpt | 15 print $this->prop; 16 print $other->prop; 24 print $result->prop; 25 print $this->prop; 36 $object->prop = "Hello\n"; 39 $other->prop = "World\n"; 44 print $object->prop; // still shows 'Hello' 47 print $other->prop; // shows 'Hello'
|
/PHP-8.0/ext/reflection/tests/ |
H A D | bug75231.phpt | 7 public $prop; 10 $this->prop = 'prop'; 21 print_r((new ReflectionProperty(B::class, 'prop'))->getValue(new A()).PHP_EOL); 25 prop
|
/PHP-8.0/ext/standard/tests/strings/ |
H A D | str_replace_array_refs2.phpt | 14 class SomeClass { public $prop; } 17 $obj->prop = ['x' => 'property']; 18 $obj->prop = $closure($obj->prop, ['x'], 'a'); 19 var_dump(str_replace(array_keys($obj->prop), $obj->prop, "x property"));
|