virtual_file_ex/filetype

From: Date: Sat, 26 May 2007 15:15:40 +0000
Subject: virtual_file_ex/filetype
Groups: php.internals 
Request: Send a blank email to internals+get-29808@lists.php.net to get a copy of this message
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

« previous php.internals (#29808) next »