Hello,

the function virtual_file_ex (TSRM/tsrm_virtual_cwd.c:1011) resolves links to 
its link target. This may lead to problems when using filtype() on php 
compiled with --enable-maintainer-zts. 

You can see the arguments passed to virual_lstat as follows:

Breakpoint 1, virtual_lstat (path=0xb7931574 "/tmp/link-test", buf=0xbfc973b4,
    tsrm_ls=0x87b8018) 
at /usr/local/src/php-5.2.2/TSRM/tsrm_virtual_cwd.c:1011

1012            if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {

The following is a print of the variable 'new_state':
    
(gdb) p new_state
$8 = {cwd = 0x891dc80 "/tmp/pear", cwd_length = 9}

This is at least an explanation for the behavior on my computer.

Hope I could help.

Best Regards,

Oliver

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to