Home
last modified time | relevance | path

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

123456

/php-src/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 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 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')
/php-src/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-src/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-src/Zend/tests/magic_methods/
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 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 Dmagic_get_destroy_object.phpt2 Destroy object in magic __get()
6 function __get($name) {
/php-src/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
22 Fatal error: Uncaught TypeError: Value of type string returned from Foo::__get() must be compatible…
H A Dtyped_properties_040.phpt2 Test __get on unset typed property must fail properly
10 public function __get($name) {
23 Fatal error: Uncaught TypeError: Value of type null returned from Foo::__get() must be compatible w…
H A Dtyped_properties_074.phpt2 Typed property must be compatible when returned via &__get()
10 public function &__get($name) {
35 Value of type string returned from Test::__get() must be compatible with unset property Test::$val …
/php-src/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-src/ext/opcache/tests/jit/
H A Dfetch_obj_002.phpt17 public function __get($name) {
18 var_dump("__get");
40 string(5) "__get"
/php-src/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-src/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 22 milliseconds

123456