Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37617 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26488 invoked from network); 13 May 2008 10:37:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 May 2008 10:37:48 -0000 Authentication-Results: pb1.pair.com header.from=ionut.stan@yahoo.com; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=ionut.stan@yahoo.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain yahoo.com from 209.191.91.195 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ionut.stan@yahoo.com X-Host-Fingerprint: 209.191.91.195 web36403.mail.mud.yahoo.com Received: from [209.191.91.195] ([209.191.91.195:35949] helo=web36403.mail.mud.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/EC-56987-B7F69284 for ; Tue, 13 May 2008 06:37:48 -0400 Received: (qmail 74143 invoked by uid 60001); 13 May 2008 10:37:45 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=hxgltw/D3dCgNh6WC5iSJJHP35BaoBlVV1xfRDDsP5WB8lJ1iOmrdHT3clXyIEHMZ5hohWIav+bagYkBinURhUtkDaG8zMRfthiepSzauVf14cKoK1LmFZvJk+E8hAu3d8gmhK8a6KZ2cwrGgyotbCPyRPTy+HbUtTncXpv0Htg=; X-YMail-OSG: nljuLv4VM1k5SIF0J05gw35CjNO4AU6EnC5fHLmcRPxjEKjoT6xZJj_uXfYtk4kUnkOG9V8lbd7QDlHsTr80cDMzzwa6uf078VFtsg-- Received: from [84.234.105.22] by web36403.mail.mud.yahoo.com via HTTP; Tue, 13 May 2008 03:37:45 PDT Date: Tue, 13 May 2008 03:37:45 -0700 (PDT) To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <482274.73919.qm@web36403.mail.mud.yahoo.com> Subject: SplFileObject with include_path From: ionut.stan@yahoo.com (Ionut Gabriel Stan) 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.