Bug #28003
closedunit tests for filebackend fail with "The directory "vfs://Foo/Cache/Data/SomeCache/" is not writable."
0%
Description
I have those already since quite a while.
yum info php (fedora 15)
Name : php Arch : x86_64 Version : 5.3.6 Release : 2.fc15
phpunit from svn r49620 (last change r48987)
typo3 master as of today: 5ee2ea6a237ca01872e0c19c5401edc33c29de26
If I change lines 62-63:
\vfsStreamWrapper::register(); \vfsStreamWrapper::setRoot(new \vfsStreamDirectory('Foo'));
to
vfsStream::setup('Foo', 777);
I get the message:
The directory "vfs://Foo/Cache/Data/SomeCache/" can not be created.
Thats where I got stuck now :(
Files
Updated by Philipp Gampe almost 13 years ago
- Assignee set to Philipp Gampe
Ok, problem is somewhere else ... if skip the is_writable check in the file backend for streams, this just works. Seems to be a bug in vfsStream.
I will push a fix to gerrit.
Updated by Gerrit Code Review almost 13 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8974
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8974
Updated by Philipp Gampe over 12 years ago
- File phpinfo.html phpinfo.html added
- File localconf.php localconf.php added
My setup:
Fedora 16 x86_64, Kernel 3.3.5-2.fc16.x86_64
$ php --version PHP 5.3.11 (cli) (built: Apr 27 2012 15:09:58) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.1.4, Copyright (c) 2002-2012, by Derick Rethans
phpunit from svn r61685
TYPO3 master
Updated by Susanne Moog over 12 years ago
Philipp, do you have the PEAR package phpunit installed on your system or is the extension using it's own package? Can you try to find that out? I had some similar problems when phpunit was using the systems PEAR package and I had not updated that for quite some time.
Updated by Philipp Gampe over 12 years ago
I guess so, but AFAIK phpunit puts its shipped pear version first in include path. I will check that.
Updated by Oliver Klee over 12 years ago
BTW, the latest version of the phpunit extension does not bring its own complete PEAR, but just the parts needed for PHPUnit (PHPUnit, Mock etc.).
Updated by Philipp Gampe over 12 years ago
No change after removing the pear packages from my system.
Updated by Philipp Gampe over 12 years ago
Ok, by now I use Fedora 17 which ships with PHP 5.4.3.
This are the last remaining failing unit tests.
PhpUnit is from latest SVN as of today. I do not have pear phpunit installed.
The patch still works, only the commit message needs an update for the release line.
Updated by Philipp Gampe over 12 years ago
Here is the full guide to reproduce:
https://notes.typo3.org/p/bug-28003
Updated by Gerrit Code Review over 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8974
Updated by Philipp Gampe about 12 years ago
Can be closed: PHP on redhat systems need the php-process
.
Updated by Stefan Galinski over 11 years ago
- Status changed from Under Review to Closed
Updated by Ernesto Baschny over 10 years ago
- Is Regression set to No
Additional information if you reach this report and are using MacOS X with MacPorts and PHP 5.3 (and maybe later).
You will need to install "php53-posix" if you hit this bug. After that, the tests work. :)