X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DCE7A3858C20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cornell.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cornell.edu ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YscUWSASYM8+QQwaZuM5bRLg2pcavrGGhfljaL514vllCKbqLWIRhm8qx4jM2hBGSbKymvxvlNZuEmh2o0TkMpjDdJJEKUrAz0aoCW8wwaR9BtAaWLg2iCzkpEvATq8JnsHt89Gkc4tMuFG/KUXB10nvjATX6XnDnPz2k5O6iuSG/QJRitPBEF4pl/BruDirlrZnd4UhLaZ/hXKhhXzoCKV+iW3aWsFS/wg9nCRNdnMaDOu0dJnd61BTMAJaN40RLl3wFaDy2oB4Fv9hrIvFFv6wL14CTr+6tV6ecBY/KZ5aKngLDXdPFH2rZxyb/59Trz1HG7TE8mBGKfgVCCe/WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ConGciPexJIu4qoA9Hp61rXjWSWVyJdfX+/i8Bmp/R0=; b=g71ckaWc9HW+PMf5PPWuVDqa7FHaXlEAVmGBMQBsidTrrZGuTfuvitxyzj6nethEfGKaCwdQ3Q/1PqcC4DnqZcwIujWs7n7p09EASyZHKOa/NY84Iw9HRhTpFbudiE5MT3uqRpBwZvPT+eEZ25aj+AoTRYs2BBIbL9EE6jOoK3bRLMGZ0mPm09wHd/WCLz46bEsM5emw1hqLUO+PBHIJ6o99ThTOG1HYvU8EwnzCAdDEd7L3qwZO0KndmQc13xnmdwwRoXPy8WaIrACf8e4+zUXVSF7z0QNDJf4UxvPTYjDyC9ZxXIwfW0OxI2vz1uG3w1FAIXzAAly6DDEPeFLeeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ConGciPexJIu4qoA9Hp61rXjWSWVyJdfX+/i8Bmp/R0=; b=BN8h2Rw05666+GNg8XHnJJHkYLPqSzOQGsFTStfICfoUvLqDNANc2o2/EGqRFvQ8UoRqF0WRS87+ik5b0OajbMDNljy6v2vW8BEhzlwllOLhopP+UpF1BWlkgwobT7ThsonA2Y30yVulJRPkR2ZOo3Z+5B812KZ1egrw4Mj8GLY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornell.edu; Message-ID: <31835bd3-21f9-8db5-bb9b-cd7e324364fc@cornell.edu> Date: Sat, 1 Oct 2022 20:39:08 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: Cygwin 3.3.6: PHP's SplFileObject::fwrite seems broken Content-Language: en-US To: cygwin AT cygwin DOT com References: From: Ken Brown In-Reply-To: X-ClientProxiedBy: MN2PR22CA0014.namprd22.prod.outlook.com (2603:10b6:208:238::19) To SA0PR04MB7322.namprd04.prod.outlook.com (2603:10b6:806:e2::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA0PR04MB7322:EE_|MN2PR04MB6142:EE_ X-MS-Office365-Filtering-Correlation-Id: ff9e6e13-ac10-486c-36a2-08daa40e8601 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U29PFs85R6a4Lcn+Xy3h2lcgwa0ohYcCeqatpcKVLCCKiMtfyzgbqBR9xySVLnOQjBo/Xc5L24wWrGIFiocv5w83KKKZaZGcd7uyLQGCMaaNxxqqU2r8bLeD/BO4HkbS6Jx7J1fu5gwve403WygdPEBfhk6GphX+NPJBjJFPjDJT3eJMJxiORcjeX6NcA8Z39/0rai/J6a5gJ9fR12/YZQi3ZcJvYj0gsvDKJa2Q/VGgWTwJkRvmoyhQAGRMDewAXG86xrl6STLphdeTjmugnCgIpTm8ESfsulec87CaOkvr7U7QU8+JK3v2J+Re54tHeHHmNStOKYmLYVbJz7m54MrGBJSJZzhb4mLTNuiw3PKzlI86zpNSE0aaRXEgNF1wkpv0ttqFsUdFO/lCSxA57UiMJsy4J1TGFuJQ9iqi1ugNi8RHGgs6o6gq4wjqVWYnThuDHYSPh5wmYzB/d5F1AhoYYfcO3Q0u1ld33ZtKIpMAC9JcOoEK/Z5d/qXtn3VL6BXgWye4rOW3/wYtCokAOIQD9RGRBwDqJu0fu4S2oxRGg4haw8x7hIB/jrJXFpvYGZdbhvtskge7CQgYPsPt73glTw4ad/aBR/1enPRcv+VN0MrVstGOv2XNdcVSjeJdz7oiHSzolzWB7fAPvG5mxUzRVvWpZzvRGS3xAifqgUWzY09MCeLg9RrDjz8ztbVEFoySZocRlkGNnCx3wSKqoDKVbokLDbabYdR7UOU6dP68rLbf3ZGk6Xm+hzdBZK1yK8Etjg2GsDrv7VnFPrQ19eDOAjDAnHS3FNrA93XY82Y= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA0PR04MB7322.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(39860400002)(396003)(376002)(346002)(366004)(451199015)(6512007)(786003)(4744005)(86362001)(316002)(66476007)(36756003)(5660300002)(53546011)(66946007)(8936002)(6916009)(41300700001)(6666004)(6506007)(186003)(75432002)(8676002)(66556008)(2616005)(2906002)(31686004)(41320700001)(31696002)(6486002)(38100700002)(478600001)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TW41eEdBODVnSnRqTmViQlo3aWhZd0NUaXFXT0hSeVlPc1pYS25vN0xPaFN6?= =?utf-8?B?ek4zZGlGcFc5WW9MYzU1NUU5MTlMRjRtR2tTRENQYm5BNXg4VnkxNVg4Smd3?= =?utf-8?B?OE5ScDZnY0x2cEhrVU9sK0Foa0N4VVZkT0o2T3A2d1F5TWtNdWFqS0lONng3?= =?utf-8?B?eG1FQzBJM1A2eGZSc3ZIYi8wRWdDVi9vSlI0cUJFQ2x6RTZlUExjeSszeGZ0?= =?utf-8?B?Um9TVHRUQm9uVVg4a2lSYVFaaXdDRERRVFBUSmVqNU9WWHFTY0dKRkRHNkhE?= =?utf-8?B?NlVtcm0xb0d0Q2lESjlSSzM0dm9uZWkzL3JlTVRMbWpOSnIxdEF3SU0wRHFI?= =?utf-8?B?SG1nSmsvWG1YN1UyVFpQWm5aZjA5R1lSSitFazZiL2c2SWxCYU5rQTRRUEZh?= =?utf-8?B?UEQvMEsvU3RKQ0xkYTlHSVBsNVN2RWpVcU9tK09zQnJPY2NtQ2J0aE9jZkk0?= =?utf-8?B?ei9kejhTK3NjWFdVb21Gd0huaXpieCtPZ0VKQzV3VW9RajlBbDVsUjVsU0VW?= =?utf-8?B?YlpRVnZDNkplRzVWcnpCejIvMGlaTE95OS9GVFhtd3FCRHNjUVk5NHNmTFZI?= =?utf-8?B?MHdNTSs0eGxZTU1CSG84WmJNeDArNHg2aTV6cDdyY1VseWQySldZOHdwRVV3?= =?utf-8?B?ZnJ2ZGY5WHg1a1JKU0UxekN5VWVrU0w5V1prYkF3OU94cGFOU0JvTTlCTVVZ?= =?utf-8?B?b3RNRTN2WDJPZEUwZUJScnh6bzZ2ZVlBdTZlQS93S2V0ZTZ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RFblMwSWxSRnZQWEpHZWVGeVFaL3ZhZXRLdVVjSkdC?= =?utf-8?B?VWdQZFhRR1RFdCtMUElEZTJ1RmxiSkhTYm9hS1FMamtLWEtRREQxWmVSbUJT?= =?utf-8?B?L1RscElIMWt0bkRwb20xWCtlTy81MHIwZlBUVThSMHpldm0yUjkwbXFqd1Aw?= =?utf-8?B?M3UwVTdmWHNlRTFXQ1JtQlBtRk9nYjF2VFpEK1FrbXIrQ1dnb21KN2ZlbjY3?= =?utf-8?B?bWNKQnk2Ukpub1Q4blVKUjRiV2xwZkkvbFNteitoQlZxK2x1YmVnMUtoTVB3?= =?utf-8?B?VGpRZVRZRnl4RzBjMkV1eW9DSnAwL254MHhZZGhqUERtLzRiRWlSZGFNK2lZ?= =?utf-8?B?WTBkWnEvTEpWN0UvbXM5UW44VmdkMzVYVnUybUE1NU1BZ2E4akRCWmw3OTdO?= =?utf-8?B?YzJiVG94ZGJPODBFQzRHaUJTQmdSSzJ4LzZqS005MlAzSEhjSXRxLzh4VGkv?= =?utf-8?B?WHlmWWFsamtjaTl6Y3JEbHF2RGpDb2hHUEY2WHRPem9SWTErV0Z2d1BSM2pr?= =?utf-8?Q?TzOPwRJIhIKoqU9BTr2KkWiItC6qYmrOjP6JSRs8kHok?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: ff9e6e13-ac10-486c-36a2-08daa40e8601 X-MS-Exchange-CrossTenant-AuthSource: SA0PR04MB7322.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2022 00:39:11.3558 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3WONeXJ9Uov+2Rk8AZnc1+Grpw6ki8SDt27Qo7JLEb5C934bLsgVEAth4Qzk0mb1pERV5yVyxyLqrVIVSG7pNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6142 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 10/2/2022 1:16 AM, Hans Henrik Bergan wrote: > ... actually i forgot that the default fopen mode is "rb" [...] > changing the code to SplFileObject("bug.txt", "rb"); > makes the code work I don't think you wrote what you meant. You're not saying that explicitly specifying the default value changes the behavior, are you? Maybe you meant to say that the default mode is "r"? Ken -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple