peachpie icon indicating copy to clipboard operation
peachpie copied to clipboard

object to string conversion should cause a fatal error

Open jakubmisek opened this issue 4 years ago • 0 comments

PHP objects not implementing __toString() should cause fatal error when converted to string

$o = new stdclass;
$s = (string)$o; // <-- should cause exception

jakubmisek avatar Apr 13 '21 13:04 jakubmisek