#49741 [Opn->Bgs]: I have a problem create a phar file on my system
| From: | sjoerd@php.net | Date: | Tue, 06 Oct 2009 11:21:10 +0000 |
| Subject: | #49741 [Opn->Bgs]: 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-143309@lists.php.net to get a copy of this message | ||
ID: 49741
Updated by: sjoerd@php.net
Reported By: admin at sulehosting dot co dot za
-Status: Open
+Status: Bogus
Bug Type: PHAR related
Operating System: open suse 11.1
PHP Version: 5.3.0
New Comment:
Setting to "Bogus" because it seemed to work after all.
Previous Comments:
------------------------------------------------------------------------
[2009-10-05 21:17:48] admin at sulehosting dot co dot za
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.....
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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