--TEST-- GH-10709: Recursive class constant evaluation with outer call failing --FILE-- --EXPECTF-- object(B)#3 (1) { ["prop"]=> string(2) "AS" } Fatal error: Uncaught Exception: Thrown from S in %s:%d Stack trace: #0 %s(%d): [constant expression]() #1 %s(%d): S->__toString() #2 {main} thrown in %s on line %d