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 - 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


Previous Comments:
------------------------------------------------------------------------

[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

------------------------------------------------------------------------

[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?


------------------------------------------------------------------------

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

Reply via email to