Doc #79173 [NEW]: Phar::decompress() return new instance of itself

From: Date: Mon, 27 Jan 2020 14:47:55 +0000
Subject: Doc #79173 [NEW]: Phar::decompress() return new instance of itself
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17226@lists.php.net to get a copy of this message
From: wcode404 at gmail dot com Operating system: Documentation PHP version: master-Git-2020-01-27 (Git) Package: PHP Language Specification Bug Type: Documentation Problem Bug description:Phar::decompress() return new instance of itself Description: ------------ In description saed that \Phar::decompress() return \Phar https://www.php.net/manual/en/phar.decompress.php#refsect1-phar.decompress-returnvalues But declared it as public Phar::decompress ([ string $extension ] ) : object Maybe need update the documentation for public Phar::decompress ([ string $extension ] ) : \Phar Test script: --------------- // gzipped tar archive with path "GeoLite2.mmdb" $encode = 'H4sIAAAAAAAAA3NPzffJLEk10svNTUlioA0wAAIzAwOs4lDAYGhsZmhsamZoZm4GEjc3MDRWwNRBA1BaXJJYxIDFdaNgFIyCUTC8AQCdCzBEAAYAAA=='; // make archive file $filename = sys_get_temp_dir().'/GeoLite2.tar.gz'; file_put_contents($filename, base64_decode($encode)); // extrac archive $zip = new \PharData($filename); $tar = $zip->decompress(); $tar->extractTo(sys_get_temp_dir()); assert(file_exists(sys_get_temp_dir().'/GeoLite2.mmdb')); Expected result: ---------------- all is good Actual result: -------------- all is good -- Edit bug report at https://bugs.php.net/bug.php?id=79173&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79173&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79173&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79173&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79173&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79173&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79173&r=support Expected behavior: https://bugs.php.net/fix.php?id=79173&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79173&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79173&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79173&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79173&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79173&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79173&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79173&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79173&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79173&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79173&r=mysqlcfg

« previous php.doc.bugs (#17226) next »