Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125537 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id ABE5B1A00BD for ; Fri, 13 Sep 2024 18:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726252008; bh=7VjoKDvK/MVtloZxV1EoybvWvNRNW88mIyKrRlU3OJc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cwng8Ihnv3iKtICfGYZp/TL6eVEH6U7QBLDAhTZQDNHzVF4ot8v+lrTUxdC7FLhQf w35QUtK2XGaXem29WoLspQ8/1lICRbnR5fY7SDgOTZbYxisFPhFx8qs9xTUVT3oiCs uYnyDQ7yLiV5rmK1SlwOy26vEW9aS5tkK7oO4MmZnL8P7XG3h2CrEjFfspejZ5POVm DQ31+5NiUrpKWhjYw0jqDsG7V+uW4VvDeohRt4tSUKiyT6ap/7gIHtF0PCMj3ue2ij 3Es4KARr/fVOyBhXoLSgYIeTJtUFRVlnrGNGbVecdpF5lNgdmVptrAGj19ckjiA4wt S4SLRE5GFOBcQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B2A2B180076 for ; Fri, 13 Sep 2024 18:26:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 13 Sep 2024 18:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1726251880; x=1726856680; i=cmbecker69@gmx.de; bh=DMP9Eq6n2rhdk2fmdt8XIzBHMOwJZfgHHP8okwTaua8=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=fum4mNrrPIp726TlE+TH++pO6MN8uQRfjsRgndwwz8aDDpoBlS4rC+tY6jGVdgls j+PXeRF+JQAYmE6b8TKX8V3YMIenqhlLFbZ1yrcepcFUo4xL1Mhg/KPpdvZKOJ9Rb eL2LVD6MaRidynSEJ6qFwO1FbT2aI0ELe2m3nNiiOdCtq2+EMaa7IFa07TLq2OQCM 7yHasDIUubZvBHEPO/6WWcSFgtK8f2EkgrB+bhHMwVhXo2Lw1swQp5FK4GOrU24NW HdgAT5mlrBv7O5YfZLwM9U6etsyAZz58XdfQGJi7CRzMGplsf2YUJbVb8fs1no2bf 3WuCV3aiVJlpQr7qSQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MAwbp-1sitQv0CCH-00BOQB; Fri, 13 Sep 2024 20:24:40 +0200 Message-ID: <10361349-e4af-469f-9fb7-87a569521d35@gmx.de> Date: Fri, 13 Sep 2024 20:24:38 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Proposal: Add support for interactive console application on Windows Content-Language: de-DE To: Sara Golemon , =?UTF-8?B?UGF0cmlrIFBhc3RlcsSNw61r?= Cc: internals@lists.php.net References: <2CM.F7Wx.3pPEkL6u{51.1bA8ON@seznam.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:DTj3vtZpL37OIZLQ9kH235OpFLZ1/ESXv3QTRsWxxVexzMpEtXM vcebyfSL/EI9zoBLunvb/zGc3PtPfep/3syK4Qr9dUwAKyhIy6TwtxxYRdQByMChpyy/4jQ Fg0J17Thdyr6I90Rk1qUz/hCHBZNM5629JAnxbb4T+wQQChUyO0DYyTLMElYAfsqPMTW4qQ iCs8FQw+8Diy72sgoN9SA== UI-OutboundReport: notjunk:1;M01:P0:gbqPDhgKLm4=;3OcSahQYGuZAf+NeNrzVyrfQYRl i7SwWJrC8sKbws16co9rYLiulw+X5I4xdmc3wa5aHvG1+kyslC1WSYs5c1aQxDr2zI90uoqpX JeBnaKc8j2vkER4MCwo1EBBPUmstEYZCe/chQd41ICWkQvZFR3NY2LCI+lSZ3COP4lpOh7Yh5 hPYoMqF7J3ReGqJNeZMqSAV5+C1jDnCl1i0FcwxAKYQ0Jlbot3+6yQK4pO4ro9edjFTsy6cjZ oxst+m/xVsGVHRaUaXVko2phdzCpFrX0D8xzFwZ5m3IcAlYK0uV/zSPj6jYbB2qqCr9ZDWVgK zVDXA4VtBwwAUS4lce6hAaxpB3EhRnXyz3BAuNEtb+Q8CJm3V/Dz9ePk37NaNawt/zIe3ozce wN66lEqHZkkVNq2twBTHk5rvr+R92zjyAPDio0RKNN43v9GtLwOuVMcIY+KZ6sJt+OooO6mZf BSSUahLi0ERZTYJ42zfc02jpJSV2gWM1VxF7PM3Y7S3GvY8JAqi2TnDJ5wdvnHMZnaRWC4Nmu fQ44CNecRQw0MCVLSHj4bVt9m6VyljjJ5Y2Zosr4qnUpwkmJyYMWQPoi3rNTFztxbNbMtE9kJ FnfSWNDgkZHNYTbYUeWVgNpVRXgC4kSV12DYBmLoe3FGB0c2xPNGLXjGkr7Pvdzy0aO9Erzi+ xRKGA7cCdqUvajYv/tvHhBiK9cwE1YCnqBbOFqM8pM4qwwx1sGKlmrlDeak+G/ZqwS5WaSxQE skq9IUUHIQMPGdrfgQx6Y8IgtSvRwbQW0xE2WToLGVZhkck9bwv8G/nRlrFPp/519gop34oh3 owknVlqNl4G8B+luK0UD4N4Q== From: cmbecker69@gmx.de ("Christoph M. Becker") On 13.09.2024 at 16:07, Sara Golemon wrote: > On Thu, Oct 12, 2023 at 6:50=E2=80=AFPM Patrik Paster=C4=8D=C3=ADk wrote: > >> An analysis of other solutions, a detailed description of the problems >> and a proof of concept is in the proposal in the issue here: >> https://github.com/php/php-src/issues/12227 > > Resurrecting this message from last October... I think this is a > completely reasonable ask, the only bikeshedding I would have is about h= ow > we set ourselves up for future success. Specifically, I think there's a > space (a small one) for OS-specific functionality. This sort of thing o= n > Windows, exposing CoreFoundation framework utilities on macOS, and proba= bly > a whole host of Linux specific toys (oh hey look, we have a posix extens= ion > with exactly those things -- yes, I know macOS and windows are posix-ish= , > don't at me). > > My point is, I think we should consider `ext/win` (potentially starting = in > PECL and only later promoting to build-by-default) and use a deliberatel= y > chosen prefix namespace like `win_*()`. Note that there are already a couple of related extensions on PECL[1]; of these only win32service is still maintained, though. Still, having a look at these extensions might make sense. Also note that there are a couple of Windows specific functions in core, prefixed as sapi_win32_ (not sure why the sapi_ prefix had been chosen), and these already allow dealing with some console specifics (codepages, some events and vt100). Maybe these should be moved in an own extension, but unbundling these is likely an issue (even renaming would be) for BC reasons. [1] Christoph