Bug #28003
closed
unit tests for filebackend fail with "The directory "vfs://Foo/Cache/Data/SomeCache/" is not writable."
Added by Philipp Gampe over 13 years ago.
Updated over 10 years ago.
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
- 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.
- Status changed from New to Under Review
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
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.
I guess so, but AFAIK phpunit puts its shipped pear version first in include path. I will check that.
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.).
No change after removing the pear packages from my system.
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.
Can be closed: PHP on redhat systems need the php-process
.
- Status changed from Under Review to Closed
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. :)
Also available in: Atom
PDF