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: johannes New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2007-06-15 09:23:14] [EMAIL PROTECTED] Hi Uwe I have run the test on an Ubuntu Feisty system and still can't reproduce your failure. Looking at the phpinfo() output there are two main differences between your and my set up. The first one (you are using php-ini.dist and I was not using any ini file) I have checked and ruled out. The second one is your ./configure command. I have just re-built php with ./configure --with-pcre-regex --disable-all and I still get the same results. Please would you re-build with this configure command and rerun the sample code then post the results? I'll try and get as close as I can to your configure command but may not be able to reproduce it exactly. Thanks - Zoe ------------------------------------------------------------------------ [2007-06-14 16:25:42] [EMAIL PROTECTED] Oh - bother - that's really annoying I was hoping to see different results - your output is not the same as my PHP52 download from today but it is the same as I get with the standard php installation on Ubuntu. I'll get access to a feisty installation tomorrow, in the meantime please would you attach the output from <?php phpinfo() ?> ? Just in case I can get anything additional from that? Thanks ------------------------------------------------------------------------ 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