Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17551 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78971 invoked by uid 1010); 5 Aug 2005 20:42:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78956 invoked from network); 5 Aug 2005 20:42:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2005 20:42:29 -0000 X-Host-Fingerprint: 216.117.147.250 unknown Linux 2.4/2.6 Received: from ([216.117.147.250:44552] helo=ctindustries.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 78/CB-04646-43FC3F24 for ; Fri, 05 Aug 2005 16:42:28 -0400 Received: from [127.0.0.1] (dsta-aa203.pivot.net [66.186.171.203]) (authenticated bits=0) by ctindustries.net (8.12.8/8.12.8) with ESMTP id j75JXBtI018580 for ; Fri, 5 Aug 2005 15:33:14 -0400 Message-ID: <42F3D095.8010604@ctindustries.net> Date: Fri, 05 Aug 2005 16:48:21 -0400 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.86.2/1003/Thu Aug 4 10:43:24 2005 on ctindustries.net X-Virus-Status: Clean Subject: Questions on stream From: rrichards@ctindustries.net (Rob Richards) I was wondering if the following are bugs or expected behavior/wont change. Take the following code: Under linux the file is deleted and the result is Wrote Data (even though the last fwrite didnt do anything). Under windows, the unlink() call results in a permissions denied error. Shouldn't linux not allow the file to be deleted with an open stream as well? Next, URI escpaing: Stream URIs need to be escaped, but this isn't true with the filesystem. $test = file_get_contents("t%20e"); // results in error $test = file_get_contents("t e"); // reads the file "t e" (same results using full URI file://....) Why don't filesystem paths have to be escaped but other protocols do? This is against the RFC as spaces should be escaped. Behvavior is same on linux and win so not an OS issue. Rob