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:
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 Previous Comments: ------------------------------------------------------------------------ [2007-06-14 15:08:56] uwe dot pries at digartis dot de hi zoe, your script: http://digger.homelinux.net:8080/php/simpletest.phps produces with: [EMAIL PROTECTED]:~/work/php5$ sapi/cli/php simpletest.php Warning: symlink(): No such file or directory in /home/up/work/php5/simpletest.php on line 14 bool(false) Warning: readlink(): No such file or directory in /home/up/work/php5/simpletest.php on line 15 bool(false) bool(false) and [EMAIL PROTECTED]:~/work/php5$ php simpletest.php Warning: symlink(): No such file or directory in /home/up/work/php5/simpletest.php on line 14 bool(false) Warning: readlink(): No such file or directory in /home/up/work/php5/simpletest.php on line 15 bool(false) bool(false) ------------------------------------------------------------------------ [2007-06-14 15:03:56] [EMAIL PROTECTED] PS - If what I think in the last update is correct you found a regression in PHP5 AND an error in our testcase which didn't detect the regression :-) ------------------------------------------------------------------------ [2007-06-14 14:56:17] [EMAIL PROTECTED] 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? ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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