### Description The following code: ```php <?php $exception = new Exception('2312'); try { // throw new Exception('2312'); // this line works OK. throw new $exception; } catch (Exception $e){ var_dump(spl_object_id($e)); echo 'Message: '.$e->getMessage(); } ``` Resulted in this output: ``` int(2) Message: ``` But I expected this output instead: ``` int(1) Message: 2312 ``` PHP Seems to clone $exception and not copy message (tested only message) ### PHP Version ```plain 5.6 to 8.4.10 ``` ### Operating System All