#49741 [Opn]: I have a problem create a phar file on my system
| From: | fa@php.net | Date: | Sat, 03 Oct 2009 18:45:35 +0000 |
| Subject: | #49741 [Opn]: I have a problem create a phar file on my system | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143221@lists.php.net to get a copy of this message | ||
ID: 49741
Updated by: fa@php.net
Reported By: admin at sulehosting dot co dot za
Status: Open
Bug Type: PHAR related
Operating System: open suse 11.1
PHP Version: 5.3.0
New Comment:
Could you please verify that writing to /tmp works at all (for example
file_put_contents() in the same script) and also say if it's 32bit or
64bit
Previous Comments:
------------------------------------------------------------------------
[2009-10-02 11:59:35] admin at sulehosting dot co dot za
I tried setting phar.readonly to false, I no longer get the exception
but there is still no phar created on the specified directory.
------------------------------------------------------------------------
[2009-10-02 11:37:40] sjoerd@php.net
Thank you for your bug report.
Please try setting phar.readonly to false. Does this solve the problem?
------------------------------------------------------------------------
[2009-10-01 20:57:16] admin at sulehosting dot co dot za
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 this bug report at http://bugs.php.net/?id=49741&edit=1