Description
The following code:
<?php
var_dump(clone(ZendTestIntEnum::Foo) === ZendTestIntEnum::Foo);
Resulted in this output:
But I expected this output instead:
Uncaught Error: Trying to clone an uncloneable object of class ZendTestIntEnum
This is because we don't override the default object handlers in zend_register_internal_enum().
PHP Version
Operating System
No response