ID: 41660
Updated by: [EMAIL PROTECTED]
Reported By: uwe dot pries at digartis dot de
Status: Assigned
Bug Type: *Directory/Filesystem functions
Operating System: Linux 2.6 (ubuntu feisty-fawn)
PHP Version: 5CVS-2007-06-11 (CVS)
Assigned To: zoe
New Comment:
Hi Uwe
Could I get you to try a couple of simple tests for me?
Could you run the following PHP:
<?php
$name_prefix = dirname(__FILE__);
$filename = "$name_prefix/fred.tmp";
mkdir("$name_prefix/mary/", 0777, true);
// create a temp file
$file_handle = fopen($filename, "w");
fclose($file_handle);
$link_arr= array(
"$name_prefix/../$name_prefix/no_file.tmp"
);
var_dump( symlink($filename, $link_arr[0]) );
var_dump( readlink($link_arr[0]) );
var_dump( realpath($link_arr[0]) );
unlink("$name_prefix/fred.tmp");
rmdir("$name_prefix/mary/");
?>
When you run it please would you do it by giving the full path name of
the PHP executable? Probably something like this:
/home/uwe/php52/sapi/cli/php simpletest.php
Would you run a second test where you just type:
php simpletest.php
The reason for this is that I can reproduce your failure with an older
version of PHP (in fact the one that comes on Ubuntu as default), so I
suspect that you might be picking this up accidentally.
Please would you attach the output from both tests to this bugzilla?
Previous Comments:
------------------------------------------------------------------------
[2007-06-14 11:07:24] [EMAIL PROTECTED]
Hi again - thanks for that. I got a little further with this and will
probably send you a simplified testcase later on. I'm also trying to get
access to a system that uses exactly the same level of Ubuntu as you.
------------------------------------------------------------------------
[2007-06-14 10:06:31] uwe dot pries at digartis dot de
hello zoe,
johannes assisted me in cleanig and building php.
readlink() and realpath() are still in FAILED TEST SUMMARY
http://digger.homelinux.net:8080/php_tests/
my config file is there:
http://digger.homelinux.net:8080/config.nice
thanks and regards
uwe
------------------------------------------------------------------------
[2007-06-14 08:42:51] [EMAIL PROTECTED]
Hi Uwe
I can't reproduce the readlink/realpath failure on my system. On your
system the test is failing to resolve a path using realpath(). I'm
wondering if there were some temporary files left around after the
previous test failures when run as root which are causing a problem.
Would it be possible to do a clean checkuot and re-run the tests from a
normal ID? I'd like to be able to rule out the possibility - although I
admit that I can't see exactly how it causes the problem.
------------------------------------------------------------------------
[2007-06-13 21:09:39] uwe dot pries at digartis dot de
hello zoe,
sorry, my laptop was off last night.
it's now up and running again.
http://digger.homelinux.net:8080/php_tests/
thanks and regards
uwe
------------------------------------------------------------------------
[2007-06-13 07:05:12] [EMAIL PROTECTED]
Hi Uwe - I can't access the links, would it be possible to e-mail the
files? ([EMAIL PROTECTED])
------------------------------------------------------------------------
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/41660
--
Edit this bug report at http://bugs.php.net/?id=41660&edit=1