|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-01-17 07:00 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-01-17 07:00 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
Description: ------------ $interfaceReflection->isCloneable() always returns false for interfaces. But they are, as all types are cloneable by default unless one explicitly makes __clone non public. Additionally, it returns false even if __clone is explicitly defined: interface Baz{ function __clone(); } $rc = new ReflectionClass(Baz::class); var_dump($rc->isCloneable()); // false thanks