Bug #53967 [NEW]: ReflectionClass::isCloneable reports false positives
| From: | whatthejeff at gmail dot com | Date: | Wed, 09 Feb 2011 03:30:46 +0000 |
| Subject: | Bug #53967 [NEW]: ReflectionClass::isCloneable reports false positives | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-158617@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: trunk-SVN-2011-02-09 (snap)
Package: Reflection related
Bug Type: Bug
Bug description:ReflectionClass::isCloneable reports false positives
Description:
------------
ReflectionClass::isCloneable returns true on some classes which are not
actually
cloneable.
Test script:
---------------
<?php
$reflection = new ReflectionClass('SplFileObject');
var_dump($reflection->isCloneable());
$reflection = new ReflectionClass('SplTempFileObject');
var_dump($reflection->isCloneable());
?>
Expected result:
----------------
bool(false)
bool(false)
Actual result:
--------------
bool(true)
bool(true)
--
Edit bug report at http://bugs.php.net/bug.php?id=53967&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53967&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53967&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53967&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53967&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53967&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53967&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53967&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53967&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53967&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53967&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53967&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53967&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53967&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53967&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53967&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53967&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53967&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53967&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53967&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53967&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53967&r=mysqlcfg