Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121019 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 91554 invoked from network); 8 Sep 2023 18:33:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Sep 2023 18:33:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E4AB21804AC for ; Fri, 8 Sep 2023 11:33:22 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 8 Sep 2023 11:33:22 -0700 (PDT) Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-413636c6d6aso14759751cf.3 for ; Fri, 08 Sep 2023 11:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694198001; x=1694802801; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=1TBxJCwHev1KRTFpKxyXUu7/rroF2MX8tOYwigEpJuY=; b=iBr+ea7igzCESKc/JZsML5SDgBlnEU4EtikqE4dvvNuwvACPQj9LB4bNBJ5EFIb6AG 0ntw1/pMSMAmcFYuoC9VjSo9pbYDz2X2vMpF6Dcfo8tns0s72qdC7in3N08IoAEbb7GI KKTpx0CPE5nXEPnqK+uUUsU+zSU/eYti7tMpmNqUA3S8KqdGvkCPYS+WcHwGP+7rDg/q viFNNCbQp4pAtb7Rs5OTBFLhMtm+WR7Bl7pu3soahFtM0mXKdazVQP8Uz1vrbhga4cgH b5CjjodWveweG7Zb0o50wpmYh4j9/RYseJvHJcG3rbF/J8wKAS7yDLJ1vYx9YMFRejqH Bi7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694198001; x=1694802801; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1TBxJCwHev1KRTFpKxyXUu7/rroF2MX8tOYwigEpJuY=; b=FDWO+2njcl31ydreHFwXD6cDgYaIPM02W5tdtV3tTp6sYDStjknewGLKFbSeccuv9D anb1NvMF9WaX4FJIIcd5EaTJfhdxtH7p9YrxSD/T87JFaYZmBfMIpK1dxmdZMMwI/vmT hliodznrUtAyYa4o7b45aJmpq/Eyb8nomIPrqj9X63sHqEro+ZrgurGqpbQCnlQyqkKW 5j43edK8qC9pgbaMUf7Hfic54kYpm6gpkMrqzUNsMdR0vZNr318HffXVaMSpvxlEFonQ m0So1sjmIcxs1dUtUETtCUUqfZI5WPpguxe6fEYhmz0LAjuWHJgoWSZbufTzWCj0GrSS secg== X-Gm-Message-State: AOJu0YwhCUXkCmkl0VigDC5485Pj9Z1fjZzO+5N+j+MUp4jjyRN8wbRl lUplLr9X6YogHGvvnyr5xtPqCi5JRoiyiYj8lqJ4sTY2ksM= X-Google-Smtp-Source: AGHT+IEUiIASUhWzH/H8UHbnX29dI6hcx85zWYeOmVji19mOE4qGrY45I/i7lIKjTvdVIpcFpeH/wQayvytqu6YiB+E= X-Received: by 2002:a05:622a:1917:b0:40f:ffd3:6201 with SMTP id w23-20020a05622a191700b0040fffd36201mr4128853qtc.66.1694198001300; Fri, 08 Sep 2023 11:33:21 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 8 Sep 2023 15:33:10 -0300 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: FFI in PHAR files From: carlosv775@gmail.com (Vinicius Dias) I was playing around with some libraries using FFI and I wanted to share a .phar with the result, but to my surprise, it didn't work. Apparently we are not able to load shared libraries using FFI from within .phar files. Is that the expected behavior or is it a bug in the FFI extension? I have setup a dummy repo so the error could be easily reproduced: https://github.com/CViniciusSDias/ffi-phar-problem I am sorry if this is not the list to send this type of problem. I will gladly move the thread to the right one if someone points it out. Thanks, folks. Vinicius Dias, Zend Certified Engineer, iMasters PHP Certified Professional