Home
last modified time | relevance | path

Searched refs:__get (Results 1 – 25 of 136) sorted by relevance

123456

/PHP-8.2/Zend/tests/
H A Dbug69180-backtrace.phpt80 string(8) "T::__get"
84 [1] => Model::__get
87 string(8) "Y::__get"
89 string(8) "T::__get"
94 [2] => Y::__get
97 string(8) "Z::__get"
100 string(8) "T::__get"
106 [3] => Z::__get
109 string(8) "P::__get"
112 string(8) "T::__get"
[all …]
H A Dbug74340.phpt2 Bug #74340: Magic function __get has different behavior in php 7.1.x
7 public function __get($var)
10 echo '__get '.$var.PHP_EOL;
25 __get test
28 __get test2
H A Dmagic_methods_inheritance_rules_non_trivial_01.phpt6 public function __get(string|array $name): mixed {} // valid
10 public function __get(string|array|object $name): int {} // also valid
14 public function __get(string|array $name): int {} // this is invalid
18 Fatal error: Declaration of C::__get(array|string $name): int must be compatible with B::__get(obje…
H A Dmagic_methods_inheritance_rules_non_trivial_02.phpt6 public function __get(string|array $name): mixed {} // valid
10 public function __get(string|array|object $name): int {} // also valid
14 public function __get(string|array|object $name): int|float {} // this is invalid
18 Fatal error: Declaration of C::__get(object|array|string $name): int|float must be compatible with …
H A Dbug71359.phpt11 public function &__get($name) {
12 echo "__get($name)\n";
48 __get(zero)
51 __get(zero)
53 __get(one)
57 __get(zero)
59 __get(one)
H A Dbug63462.phpt21 function __get($name) {
22 echo '__get ' . $name . "\n";
54 __get nonExisting
57 __get publicProperty
60 __get protectedProperty
63 __get privateProperty
H A Dmagic_methods_012.phpt2 __get first parameter should be a string when typed
6 function __get(int $name) {}
10 Fatal error: Foo::__get(): Parameter #1 ($name) must be of type string when declared in %s on line …
H A Dmagic_by_ref_003.phpt2 passing parameter of __get() by ref
7 function __get(&$name) { }
17 Fatal error: Method test::__get() cannot take arguments by reference in %s on line %d
H A Dbug28444.phpt30 function __get($prop)
64 Overloaded::__get(y)
71 Overloaded::__get(z)
73 Overloaded::__get(z)
75 Overloaded::__get(z)
H A Dbug48248.phpt2 Bug #48248 (SIGSEGV when access to private property via &__get)
8 public function & __get($name)
26 #0 %s(%d): A->__get('test')
H A Drope_with_exception.phpt7 function __get($x) {
43 #0 %s(%d): Obj->__get('x')
47 #0 %s(%d): Obj->__get('x')
51 #0 %s(%d): Obj->__get('x')
H A Dbug66609.phpt2 Bug #66609 (php crashes with __get() and ++ operator in some cases)
8 public function __get($x) {
15 public function __get($x) {
H A Dbug30889.phpt2 Bug #30889 (Conflict between __get/__set and ++ operator)
17 function __get($name)
24 $test->a++; // __get(), then __set()
H A Dbug38624.phpt2 Bug #38624 (Strange warning when incrementing an object property and exception is thrown from __get
17 public function __get( $name )
31 #0 %s(%d): impl->__get('counter')
H A Dmagic_get_destroy_object.phpt2 Destroy object in magic __get()
6 function __get($name) {
H A Dexception_during_by_reference_magic_get.phpt2 Exception thrown by __get() during =& assignment
8 public function &__get($name) {
/PHP-8.2/tests/classes/
H A D__set__get_005.phpt2 ZE2 __set() and __get()
9 function __get($name) {
30 function __get($name) {
52 AutoGen::__get
54 AutoGen::__get
62 AutoGen::__get
63 Test::__get
H A D__set__get_002.phpt2 ZE2 __get() signature check
6 function __get($x,$y) {
12 Fatal error: Method Test::__get() must take exactly 1 argument in %s__set__get_002.php on line %d
/PHP-8.2/Zend/tests/enum/
H A D__get.phpt2 Enum __get
9 public function __get(string $name)
11 return '__get';
17 Fatal error: Enum Foo cannot include magic method __get in %s on line %d
/PHP-8.2/ext/standard/tests/array/
H A Darray_column_property_visibility.phpt14 public function __get($name) {
15 return "__get($this->prop)";
26 string(13) "__get(foobar)"
/PHP-8.2/Zend/tests/type_declarations/
H A Dtyped_properties_030.phpt2 Test typed properties unset __get magical magic
8 public function __get($name) {
19 var_dump($foo->bar); # not okay, __get is nasty
H A Dtyped_properties_100.phpt2 Property type not enforced for __get if the property is not visible
9 public function __get($name) {
/PHP-8.2/ext/opcache/tests/jit/
H A Dfetch_obj_002.phpt18 public function __get($name) {
19 var_dump("__get");
41 string(5) "__get"
/PHP-8.2/Zend/tests/readonly_props/
H A Dunset.phpt29 public function __get($name) {
38 var_dump($test->prop); // Call __get.
39 var_dump($test->prop); // Don't call __get.
60 Test2::__get
/PHP-8.2/Zend/tests/return_types/
H A D043.phpt6 public function __get($name): bool {}
13 public function __get($name): string|array {}
20 public function __get($name): mixed {}

Completed in 30 milliseconds

123456