From: admin at sulehosting dot co dot za Operating system: open suse 11.1 PHP version: 5.3.0 PHP Bug Type: PHAR related Bug description: I have a problem create a phar file on my system
Description: ------------ I am trying to create a phar file, following examples from the php.net http://us.php.net/manual/en/phar.using.object.php Reproduce code: --------------- <?php $phar = new Phar("/tmp/first.phar",0,"first.phar"); $phar['hello.txt'] = 'hello world'; ?> and <?php $phar = new Phar("/tmp/first.phar"); $phar['hello.txt'] = 'hello world'; ?> Expected result: ---------------- I expect a phar file to be created in the tmp directory, Actual result: -------------- UnexpectedValueException: creating archive "/tmp/first.phar" disabled by INI setting in /srv/www/htdocs/PHAR/test_phar.php on line 2 Call Stack: 0.0003 323772 1. {main}() /srv/www/htdocs/PHAR/test_phar.php:0 0.0003 328724 2. Phar->__construct() /srv/www/htdocs/PHAR/test_phar.php:2 php --ri Phar Phar Phar: PHP Archive support => enabled Phar EXT version => 2.0.0-dev Phar API version => 1.1.1 CVS revision => $Revision: 1.370.2.62 $ Phar-based phar archives => enabled Tar-based phar archives => enabled ZIP-based phar archives => enabled gzip compression => enabled bzip2 compression => enabled OpenSSL support => enabled Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. Directive => Local Value => Master Value phar.readonly => On => On phar.require_hash => On => On phar.cache_list => no value => no value -- Edit bug report at http://bugs.php.net/?id=49741&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49741&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49741&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49741&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49741&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49741&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49741&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49741&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49741&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49741&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49741&r=support Expected behavior: http://bugs.php.net/fix.php?id=49741&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49741&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49741&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49741&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49741&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49741&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49741&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49741&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49741&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49741&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49741&r=mysqlcfg