Edit report at http://bugs.php.net/bug.php?id=49741&edit=1
ID: 49741 Comment by: kazemipouya at gmail dot com Reported by: admin at sulehosting dot co dot za Summary: I have a problem create a phar file on my system Status: Bogus Type: Bug Package: PHAR related Operating System: open suse 11.1 PHP Version: 5.3.0 Block user comment: N New Comment: After one year of reporting this bug, I got the same problem. I followed all comments but for me, the phar is not there!! $phar = new Phar('./test.phar', 0, 'test.phar'); $phar->startBuffering(); $phar['test.txt'] = 'phar is here'; $phar->setStub($phar->createDefaultStub('index-cli.php', 'index.php')); Previous Comments: ------------------------------------------------------------------------ [2009-10-06 11:21:10] sjo...@php.net Setting to "Bogus" because it seemed to work after all. ------------------------------------------------------------------------ [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] sjo...@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] f...@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 ------------------------------------------------------------------------ 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/bug.php?id=49741 -- Edit this bug report at http://bugs.php.net/bug.php?id=49741&edit=1