ID: 41660
Updated by: [EMAIL PROTECTED]
Reported By: uwe dot pries at digartis dot de
-Status: Assigned
+Status: Closed
Bug Type: *Directory/Filesystem functions
Operating System: Linux 2.6 (ubuntu feisty-fawn)
PHP Version: 5CVS-2007-06-11 (CVS)
Assigned To: johannes
New Comment:
closing then.
Previous Comments:
------------------------------------------------------------------------
[2007-06-18 12:44:26] uwe dot pries at digartis dot de
hey zoe,
after dmitry updated ext/standard/tests/file/readlink_realpath_basic.*
the test runs through now.
thanks again to all
regards
uwe
------------------------------------------------------------------------
[2007-06-15 13:45:08] [EMAIL PROTECTED]
Thanks Uwe.
I don't think that anyone can close the bug till someone fixes or
agrees to fix the defect in the engine :-)
When I fix the test case it will pass for you but will fail for
everyone else until the engine bug is fixed.
------------------------------------------------------------------------
[2007-06-15 13:01:33] uwe dot pries at digartis dot de
Hello Zoe,
glad to hear you found the problem :-)
I hope I did not keep you from working on other important issues tho
;)=
Please tell me when you commit the new test. I will run it then and
tell you about the state.
Who will close this issue/bug?
[ ] The developer (zoe)
[ ] The assigner (chinstrap)
[ ] The reporter (uwe)
Thanks & regards
Uwe
------------------------------------------------------------------------
[2007-06-15 11:58:47] [EMAIL PROTECTED]
Hi Uwe
I now understand this as far as it's possible for me, the next step is
to get someone more expert to look at it - so I'm summarising and
assigning back to Johannes.
Summary
=======
There are two parts to this defect - first the problem with tests being
run as root. I have fixed those test cases.
The second part is with the failing readlink_realpath_variation.phpt
test. This test is failing on Uwe's sytem because he has used the
configure option --enable-maintainer-zts.
There are two problems with readlink_realpath_variation.phpt. First the
test case has been coded incorrectly, it should *pass* with
--enable-maintainer-zts and should *fail* without it. Secondly, there is
a bug in PHP which needs someone fairly expert to look at it.
I will change the test case so that it fails properly instead of
testing for, and passing, incorrect behaviour.
Here is a simple reproduce test case for the failure:
--TEST--
Dump failure result of trying to create non-existant link followed by
realpath() on non-existant link
--FILE--
<?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);
$no_such_link = "$name_prefix/../$name_prefix/no_file.tmp";
//******************************************//
var_dump( symlink($filename, $no_such_link) );
var_dump( realpath($no_such_link ));
//******************************************//
unlink("$name_prefix/fred.tmp");
rmdir("$name_prefix/mary/");
?>
--EXPECTF--
Warning: symlink(): No such file or directory in %s on line %d
bool(false)
bool(false)
The two important lines are marked by ***. Both of these work correctly
on their own - but not together.
------------------------------------------------------------------------
[2007-06-15 09:43:58] [EMAIL PROTECTED]
Hi - don't worry about rebuilding, it's one of 4 options on the
configure command that is making the difference. I can reproduce your
failure.
Zoe
------------------------------------------------------------------------
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