#49741 [Fbk->Opn]: I have a problem create a phar file on my system

From: Date: Mon, 05 Oct 2009 21:17:48 +0000
Subject: #49741 [Fbk->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-143300@lists.php.net to get a copy of this message
ID: 49741 User updated by: admin at sulehosting dot co dot za Reported By: admin at sulehosting dot co dot za -Status: Feedback +Status: Open Bug Type: PHAR related Operating System: open suse 11.1 PHP Version: 5.3.0 New Comment: It works, the phar file gets created. Thanks a lot. I am trying to go through the changes to see what caused it to work..... Previous Comments: ------------------------------------------------------------------------ [2009-10-05 11:24:38] sjoerd@php.net Could you please to run your example script again, with error reporting enabled and check whether it works? If it does not, please provide an strace, like this: strace php -f foo.php 2> strace.txt Please provide an URL to the strace here (you can use a pastebin). Thank you. ------------------------------------------------------------------------ [2009-10-05 08:45:33] admin at sulehosting dot co dot za 1)file_put_contents (works!) $strFile = '/tmp/myFile.txt'; $strData = 'hello world'; $res = file_put_contents($strFile, $strData); if($res): print 'it works'; else: print 'it failed'; endif; 2)uname -a Linux pegasus 2.6.27.29-0.1-pae #1 SMP 2009-08-15 17:53:59 +0200 i686 i686 i386 GNU/Linux ------------------------------------------------------------------------ [2009-10-03 18:45:34] fa@php.net 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 ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/49741 -- Edit this bug report at http://bugs.php.net/?id=49741&edit=1

« previous php.bugs (#143300) next »