Bug #69196 [Opn]: PharData should extends Phar

From: Date: Sat, 07 Mar 2015 03:06:57 +0000
Subject: Bug #69196 [Opn]: PharData should extends Phar
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191227@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69196&edit=1 ID: 69196 Updated by: reeze@php.net Reported by: hywan@php.net -Summary: PharData extends Phar or not? +Summary: PharData should extends Phar Status: Open Type: Bug Package: PHAR related PHP Version: 5.6Git-2015-03-06 (Git) Block user comment: N Private report: N New Comment: I believe so. Previous Comments: ------------------------------------------------------------------------ [2015-03-06 11:00:48] hywan@php.net 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 this bug report at https://bugs.php.net/bug.php?id=69196&edit=1

« previous php.bugs (#191227) next »