Bug #69196 [Asn]: PharData should extends Phar

From: Date: Sun, 29 Mar 2015 07:13:51 +0000
Subject: Bug #69196 [Asn]: PharData should extends Phar
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191683@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: mike@php.net Reported by: hywan@php.net Summary: PharData should extends Phar Status: Assigned Type: Bug Package: PHAR related PHP Version: 5.6Git-2015-03-06 (Git) Assigned To: reeze Block user comment: N Private report: N New Comment: Not sure it should really be this way (Phar extends PharData or PharData extends Phar). Not directly related: See also bug #52909 Previous Comments: ------------------------------------------------------------------------ [2015-03-29 07:12:15] mike@php.net Related To: Bug #52909 ------------------------------------------------------------------------ [2015-03-07 03:06:57] reeze@php.net I believe so. ------------------------------------------------------------------------ [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 (#191683) next »