Test: /ext/reflection/tests/bug79683.phpt - Version 7.4.3        

Bug #79683 Fake reflection scope affects __toString()
Submitted: 2020-06-09 11:46:07 Modified: 2020-06-09 13:49:23
From: smilimko Assigned:
Status: Closed Package: Reflection related
PHP Version: 7.4.6 OS: Ubuntu

There is 1 diff reported by users for this test.

Count Diff
9 (100%)
001+ Fatal error: Uncaught Error: Cannot access private property A::$prop1 in %s/bug79683.php:9 002+ Stack trace: 003+ #0 [internal function]: A->__toString() 004+ #1 %s/bug79683.php(23): ReflectionProperty->setValue(Object(B), Object(A)) 001- object(B)#1 (1) { 002- ["prop2":"B":private]=> 003- string(3) "123" 004- } 005+ #2 {main} 006+ thrown in %s/bug79683.php on line 9