Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122013 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 14383 invoked from network); 19 Dec 2023 02:35:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Dec 2023 02:35:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E8816180040 for ; Mon, 18 Dec 2023 18:35:28 -0800 (PST) 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.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, 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 mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 18 Dec 2023 18:35:28 -0800 (PST) Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-4258e0a0dc1so26905261cf.2 for ; Mon, 18 Dec 2023 18:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702953307; x=1703558107; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dMGcwU9aEBWcY8jiTy/ikXEsm2f5esuroHVGI00Mayc=; b=hGKb6JQZiSP+69M2u9Fd03zWJFt/Y64WiffdBnqVC6Tf0Y5J1Tc9yCwwmKKchWeWmY UI3wdfyOop3xzL9IPqpowJ6Fb3dRGm15oxHFBfaucO5DW4xdMVEUPElFAsoBPI592Nx6 X5Jrjz7y29k094TneO05xGBtK2gIwYFgLqfk9/i/UBbHgdU9J5VoOOM1FIxTPjA1Zmge 3KLSRz6ekMpie8ZoyhcLoevGsdWi/cfhbGtryJ0Ram/UESp20/9kVh76nM+rUT1nUjID wqHvtkJ2+HpDBIGipvaF1Q5o0cLHaX1dAq9i2enWdJ4KqTuDe/SYsRVwbv6VSPK4yAiY +whg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702953307; x=1703558107; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dMGcwU9aEBWcY8jiTy/ikXEsm2f5esuroHVGI00Mayc=; b=nTFCc+5v7xWw3nCTCrTcAwAqGsphJUN2EpKDFxpRhU9tDar47pAC+J8aPR+lCy0uDC z27Zljh3Sn1QpDZW4Gu4bxZxw2WThPWBM7DsfSZqsTnoqfbVVBXIPH8AlUatl9hubUjK yJlu7TcKqDczPmYdG0BthrMlX5pggSdrzUfmQv0IxX4UU+Wo1SiD3Zqj1Szzw+06sq/2 zGe1od+ytyRHe1hi/uNgTTI2I2BA9aWhFGtiDQgPWxA1p7Q/sDs5xL76r7/HP+LpzabD YXxyxNuomNISGVJ5UZfAm6pA8Bea2vv/kC2CSUeEhoTyJDFj3Vyukt4hjW94KtmVQZRw 1T6w== X-Gm-Message-State: AOJu0YwxumlH7lo75XA8eKUd6VtEdTzlhUpq8IlCvdwEmjuSEiNDnRjN IDgvtaG4Ep/nrnmHt9PgBBKncXxmR7nh2774UYzWCJWXNQU= X-Google-Smtp-Source: AGHT+IElGAc9OWJltAxRbScPnWF6dz1ZW0qVyOoxJmKmKVHLW0AiaTU1M9xZeMo0kQYg9iBBW/anL/mBIacL01+K4LU= X-Received: by 2002:a05:622a:1352:b0:423:d64f:5d79 with SMTP id w18-20020a05622a135200b00423d64f5d79mr22067924qtk.11.1702953306709; Mon, 18 Dec 2023 18:35:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 18 Dec 2023 23:34:58 -0300 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] FFI in PHAR files From: carlosv775@gmail.com (Vinicius Dias) > > I suppose it'd be possible to improve FFI to call the PHP VFS layer to = resolve a path, which would handle the phar:// scheme and other schemes. Bu= t, I would be worried about potential other downstream impacts - esp. secur= ity implications - as this is a novel (to me at least) scenario. I just realized I never explained the reason for me to wanna use this feature. My bad. I have a CLI project that uses FFI and it would be awesome if I could share it using the micro sfx API[1]. If FFI was supported inside PHARs, we could even create Desktop applications using tools such as php-tkui[2] and make them available via the aforementioned SAPI. Anyway, I just wanted to explain the motive behind my original question. :-= D [1]: https://github.com/crazywhalecc/static-php-cli/blob/main/README.md#use= -micro [2]: https://github.com/skoro/php-tkui