Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125312 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 08E6F1A00BD for ; Tue, 27 Aug 2024 11:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724759653; bh=UUOTYXXhQIDcYYMMM+9SonTDaYskju/RH1czMUB40bw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BEQJRs0fX9T4yo+/Dc0WsCAkzvnNUD2ukQGtafd1hinnGD7ZpeGiq8RiD2FFqzLA1 Ca8xEjtVLngc9AOBV0YM4KJ+ke2vNBZCI8wYWDnzbw41AMYt/cLDOwLxGN5vjftNeJ SjEK0QuK+sEIFcsafHLLi4A7pndAhUaepOnFt7wHTqiCW9JzdAXJtuuD67RJMKLDB4 //OZ7C68Ds+/SjhGPfVWe6Dxl32xYqMaYmu+AAU6t18oqRyzBd1ExMe6KczXB8N9qb BTR6p12e8eyppZvCnFiDypu++3nPgNeXSOvcA9vrrX0YkgLfVSmxGRAeRuc0wpGeDO SmxsDp4eNi3Mw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 69D3E18004A; Tue, 27 Aug 2024 11:54:12 +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; Tue, 27 Aug 2024 11:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1724759532; x=1725364332; i=cmbecker69@gmx.de; bh=eg/hXktWuf/zioBXOIjUZe5dwtjz+SOjWipAYGWormM=; 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=CcqV/x1p8lUNF3rydJWzvkD3KjKJJDt+o02Ib8Vj+EUV6D/KHQoXSEHZ/Tkq5LDr 14pRCiPdYsKiUrR0ke7DaTyRZ1UDYcFbsl6uGxl/hCLUkyL/5i01giZ6/knWY8lhD +FUIirBQS+Rt8jHFeE8NmK4PI8sE+8ofiCop06Adyy3a5zTtgPd2q/b0/iF1Bw3YC QWxq+yvayqHxhcjNqSn8N/eUdJ7OK31FsFs1EDNRzK1e0Htim5Z2O9tzrY3VXe2+O mZbRHtDQ+QbTp9TIfn35+JfX79aEUJ8+cYZZ42belt+7ZGd18doqIRpFPQODJ9gjU yMuSXARHZ9QtJYux9Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N5G9t-1rzQt7223p-016R3j; Tue, 27 Aug 2024 13:52:12 +0200 Message-ID: <24eca142-a44e-4b27-99bf-4dc4448ab4fe@gmx.de> Date: Tue, 27 Aug 2024 13:52:12 +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] Native SSL support in Phar extension Content-Language: de-DE To: Calvin Buckley , Peter Kokot Cc: Internals References: <8664467A-D602-48B6-96CA-D6FAD4488F14@cmpct.info> In-Reply-To: <8664467A-D602-48B6-96CA-D6FAD4488F14@cmpct.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:EGMKuECsjBzmweD7s8HagG45AJWzcki+aNs5TQEePdDjM80Xbk8 yVt9037UGVdpX3pUzHIFk8rbxwlbF80aT5MoK+3EDuH2Ur7G9R31JDwKnc8QDh5wkviSRKB 4GJCFkbNERambnPbEBbh4sHvyBsmrMSDWvsnreHNVM5wXeC5R/fJ9xZJrNpDbuv72RemDYE 0nUMeN3PgZ3FSGRfxJxYw== UI-OutboundReport: notjunk:1;M01:P0:rw2N6sOkhDc=;HdzFfZ/kxSInpTgMUUm5RdO3iqw h/JrWynk14Iqchh1aUBwmnOQqcxP4Oc+pq7I63g1xUG33+12uIXHEOy2q4RxUCwkOdS8s6fH5 rLExHwA2JOhlFcWi//zkaxKdJn1u0E4ZMdTbTOXIZrRsFy0eoLA3OQPosZ9xdz1iAaLZhr4hm JJjxrlctl/HVVoiC6j0mDaVgiqMjHVEmJGEC8QscsmKxvRjC7iRtOtT832+cXfZtlncVFtBkW ga8hMRUb8c8Sd4dlcbbDvmRf+v3Yv8vzhV6OpS617KFRYxMphLh50V0V1ZRdMhnOiRtQv85+u DNb16DtYmYQERHJ+bhGR1QyWqmJ3pJFypLoB3g3rkiudKRRbwoAoYuLzTtcP9HcUDhAsN+sYr LWhikE8DDVG9o6eokjJUQyod/7Ivrd8cAR+kMzdZ4JVt+RT4S6bcInnKT52N5K3kdLArIiYvq JoU4YfSXOJSyaOmdgaIAocKkhztfx6/iX7gDGIev4VJxLAzwnksjqKp9Sq9TwGP80GEmI5IGQ TOGDSxmpVfwUsC2PxWCzqQvUpkO1OF0604LPqhLSUZAqp5ayIUOj3PkDlofWOCJYBrZj9dQRr C3PdKvETS2MVwIbn9Gt1HJx3V4bJGZqTCNxQRPWr1Sq5lR7OmdTlfScAuMbJpmoiIZ1vQ3yNt YOLZ4oKGqjGWsy5xnY13d0lvbrI1ObccOMz1Dqp4lE314n2ZbNjvPsa7uD1MpCkgbkPqeJF5p 8/kFghS/T5v0AE7mvK3gkMfQ5tJ47IkM8VrSOBK6eZ9b3y/vCJACXF4x960IIV4QezWFagMS5 bVLjJkyV6sR5957JOktvhHLA== From: cmbecker69@gmx.de ("Christoph M. Becker") On 26.08.2024 at 20:05, Calvin Buckley wrote: > Dynamic linkers that pull from a general symbol slurry (your typical ld.so > for instance) don't have a problem with it, but some platforms have more > strict linkage, like Windows. IIRC, things like PDO are built into the PHP > executable/library for this reason. I know AIX can actually do it both ways; > I used to build the ld.so style way (they call it "runtime linking"), but it > turns out that causes problems with different versions of symbols (i.e. > OpenSSL 1.1 and 3.0 in same address space), so I had to switch to building it > with the other dynamic linking option, which means I have to make the same > build compromises as on Windows. Interesting! Just a the other day I (re-?)learned that there are usually no "import libraries" (Windows terminology) on Linux, which are *very* common on Windows. Such import libraries define stubs (i.e. wrappers) for all exported symbols; for functions, basically (pseudo-code): the_function(a, b, c) { module = dl_load("library.dll") proc = dl_fetch_symbol(module, "__imp_the_function") return proc(a, b, c) } Might roughly be similar on AIX with "the other dynamic linking option". > As such, it might be a bit tricky for people on Windows/AIX; the easiest > solution if PHAR is using the openssl extension's symbols would be to not > build the openssl extension as shared. Well, that is not an option for any binaries we build and ship, since the core is not supposed to rely on any external dependencies (that's the reason why we still bundle libpcre2 although it is supposed to be available almost everywhere). Christoph