Bug #69196 [NEW]: PharData extends Phar or not?
| From: | hywan@php.net | Date: | Fri, 06 Mar 2015 11:00:49 +0000 |
| Subject: | Bug #69196 [NEW]: PharData extends Phar or not? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-191206@lists.php.net to get a copy of this message | ||
From: hywan@php.net
Operating system:
PHP version: 5.6Git-2015-03-06 (Git)
Package: PHAR related
Bug Type: Bug
Bug description:PharData extends Phar or not?
Description:
------------
According to the documentation, the PharData class
(http://php.net/class.phardata) extends the Phar class. But when using
the reflection, we see that the PharData class extends the
RecursiveDirectoryIterator class.
It must extend the Phar class since it overrides some of their methods.
Test script:
---------------
$r = new ReflectionClass('PharData');
var_dump($r->getParentClass()->getName());
Expected result:
----------------
string(4) "Phar"
Actual result:
--------------
string(26) "RecursiveDirectoryIterator"
--
Edit bug report at https://bugs.php.net/bug.php?id=69196&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69196&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69196&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69196&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69196&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69196&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69196&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69196&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69196&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69196&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69196&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69196&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69196&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69196&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69196&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69196&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69196&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69196&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69196&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69196&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69196&r=mysqlcfg