Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29808 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11944 invoked by uid 1010); 26 May 2007 15:17:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11928 invoked from network); 26 May 2007 15:17:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2007 15:17:11 -0000 Authentication-Results: pb1.pair.com header.from=lists@block-online.eu; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lists@block-online.eu; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain block-online.eu from 81.169.146.161 cause and error) X-PHP-List-Original-Sender: lists@block-online.eu X-Host-Fingerprint: 81.169.146.161 mo-p00-ob.rzone.de Solaris 10 (beta) Received: from [81.169.146.161] ([81.169.146.161:46994] helo=mo-p00-ob.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/25-61477-57F48564 for ; Sat, 26 May 2007 11:17:11 -0400 Received: from ollie.block.home (dslb-084-063-181-114.pools.arcor-ip.net [84.63.181.114]) by post.webmailer.de (klopstock mo34) (RZmta 6.8) with ESMTP id D0553dj4QEUf7p ; Sat, 26 May 2007 17:17:06 +0200 (MEST) To: Rasmus Lerdorf Date: Sat, 26 May 2007 17:15:40 +0200 User-Agent: KMail/1.7.1 Cc: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200705261715.41063.lists@block-online.eu> X-RZG-AUTH: jsAgD75E4FZRsMYse5W8COLJ40bV42cELvihCND/Uu2brXmKBiVojC8ZpUDp X-RZG-CLASS-ID: mo00 Subject: virtual_file_ex/filetype From: lists@block-online.eu (Oliver Block) 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