***** Test the 'known' property *****
__isset() results should be false ✅
bool(false)
__get() results should be an object with prop1 and prop2 ✅
object(stdClass)#3 (2) {
["prop1"]=>
string(3) "foo"
["prop2"]=>
string(3) "bar"
}
__isset() after __get() results should be true ❌
bool(false)
__unset() + __get() results should be re-init the object with prop1 and prop2 ✅
object(stdClass)#3 (2) {
["prop1"]=>
string(3) "foo"
["prop2"]=>
string(3) "bar"
}
***** Unknown, unexpected dynamic property *****
__isset() results should be false ✅
bool(false)
__get() results should be null ✅
NULL
__isset() after __get() results should be false ✅
bool(false)
__unset() + __get() results should be null ✅
NULL
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.