Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72737 invoked from network); 13 May 2008 13:57:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 May 2008 13:57:16 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:59270] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/F5-56987-B3E99284 for ; Tue, 13 May 2008 09:57:15 -0400 Received: from dhcp-172-28-202-207.zrh.corp.google.com (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 9E38811DB42; Tue, 13 May 2008 15:57:12 +0200 (CEST) Date: Tue, 13 May 2008 15:57:12 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <18456476.20080513155712@marcus-boerger.de> To: Ionut Gabriel Stan CC: internals@lists.php.net In-Reply-To: <482274.73919.qm@web36403.mail.mud.yahoo.com> References: <482274.73919.qm@web36403.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] SplFileObject with include_path From: helly@php.net (Marcus Boerger) Hello Ionut, file as bug please. marcus Tuesday, May 13, 2008, 12:37:45 PM, you wrote: > Hi, > I'm working on a SOAP project and as part of the > checks I make are the existence and readability of the > WSDL file. > As far as I saw, SoapClient doesn't check include_path > for the WSDL file, so I thought I could use fopen to > check this and then find the real path which would be > finally passed to the SoapClient constructor. The > problem with fopen is that I don't know how to find > the real path if the file does exist in the > include_path. So I took a look at SplFileObject, whose > constructor accepts the same parameters as fopen. > Here's my issue. If I instantiate SplFileObject like: > $file = new SplFileObject($filename, 'r', true); > and $filename is found somewhere on the include_path, > wouldn't be useful if a call to > SplFileObject::getRealPath() would return the actual > real path and not false? Because at this point it doesn't. > Best regards, Marcus