Doc #76084 [NEW]: Phar::isCompressed always returning False
From: bonnevillessei67 at hotmail dot com
Operating system: Windows 10
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Phar::isCompressed always returning False
Description:
------------
Running:
Windows 10
WAMP 3.0.8
PHP 7.0.10
Apache 2.4.23
After compression of Phar file, method Phar::isCompressed() always
returns FALSE.
Searched and scoured all previous bug reports. This is a new bug.
Test script:
---------------
$phar1 = new Phar('myphar.zip.phar');
var_dump($phar1->isCompressed());
$phar2 = new Phar('myuncompressed.tar.phar');
$phar2['x.txt']='my x';
var_dump($phar2->isCompressed());
$phar2->compress(Phar::GZ);
var_dump($phar2->isCompressed() == Phar::GZ);
Expected result:
----------------
bool(false)
bool(false)
bool(true)
Actual result:
--------------
bool(false)
bool(false)
bool(false)
--
Edit bug report at https://bugs.php.net/bug.php?id=76084&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76084&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76084&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76084&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76084&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76084&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76084&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76084&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76084&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76084&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76084&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76084&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76084&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76084&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76084&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76084&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76084&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76084&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76084&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76084&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76084&r=mysqlcfg
Thread (2 messages)
- bonnevillessei67 at hotmail dot com