Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105973 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 30001 invoked from network); 18 Jun 2019 20:24:09 -0000 Received: from unknown (HELO mail-io1-f53.google.com) (209.85.166.53) by pb1.pair.com with SMTP; 18 Jun 2019 20:24:09 -0000 Received: by mail-io1-f53.google.com with SMTP id h6so31827066ioh.3 for ; Tue, 18 Jun 2019 10:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HkfJcS+rGTlu3LrrYjxkgRiTbZF0RGPgNaxDp3rJlLs=; b=srINofenNZCLOz7ZTbMlxnrlS6/KBsuSAGJZr+LYwUDABaqL1XO3jlx9idnXfBbh1H BjduQ70chFd6pSQfVgfXLl8OfVIou22CtrqR8eiRKFbZtI/Rrp/H6vCwcTGjVCR2Lo46 92+eh6lTo/BDAXEVn1C/E5ewbdvqTmXJdwbi1hTlxUu7C/YkK92fVyllA47XvxqxQkgy f8P1KiWk4Gmh8x6GJgzdjrFR8R4ngsrhjvvCzNK3aa/Uo4XElKx2ixyRq1uvv4BGmez2 ek9DM7uWeUEM6Ia9+Axm9AdzsvKHivZDa12xkDAdlW4GceGecoWN9cJmsptQN09s0dKg R8PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HkfJcS+rGTlu3LrrYjxkgRiTbZF0RGPgNaxDp3rJlLs=; b=lFfu1BkaV67+8j1E0WLWCtyQbgZBfpfRY2yUW/6GwFIyWS+ZYAkfMQnWyqd5ynuP8E ZF3VxVn+bUAQ2Yf6ojB9b+XMGFujcb/RoCchvTDziy00vssVA4oipemSo4EbhZjzSwcd 1WYWhQEaPbRPx3JWJXNurUS1CFkbpjfxw9ZHO5W9m1cBbkYj7HDs3lAsurNip5qCVvn3 WP98++nIg7W2DhLx5RfizH5Nk8UuL371UYtqdYEw+x2RK2XvaJaufT+2h3a5HYPIcbbq 172HfmqlY3vcERuj+nFPCWpxQDoIq+KO/XfLhBa5G3m29NVgk1SWosdqMUFwP9AOrbAF WTaA== X-Gm-Message-State: APjAAAXZBA6qK6+LI/9Tel9xh/vB24sRdhLmfmTJyFyXMBF6lOPufeuR 1E4tu+ZNgevWg2BX6CW81OK9PHYjoxafMtJI7/U= X-Google-Smtp-Source: APXvYqxQDYuNIfnfydZqxmw24jA8brTLP/VjBuxl9Cv0aE2OO3l6FGpmUIHLiUozvboBoJ3f8WKgdwrH7CyptajjxO0= X-Received: by 2002:a6b:b483:: with SMTP id d125mr10748820iof.1.1560879515512; Tue, 18 Jun 2019 10:38:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 18 Jun 2019 18:38:24 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000000f3307058b9c9527" Subject: Re: [PHP-DEV] Generating arginfo from stub files From: rowan.collins@gmail.com (Rowan Collins) --0000000000000f3307058b9c9527 Content-Type: text/plain; charset="UTF-8" Hi Nikita, On Tue, 18 Jun 2019 at 16:10, Nikita Popov wrote: > I've created a proof of concept implementation for this at > https://github.com/php/php-src/pull/4284. Function signatures are > specified > in a xyz.stub.php file from which xyz_arginfo.h is generated. This file can > then be included in the implementation. Nothing about the arginfo > implementation itself changes. > I notice on the PR there was discussion of stubs elsewhere (e.g. https://github.com/JetBrains/phpstorm-stubs) still being necessary because they contain additional documentation. However, has the opposite been considered: process an existing set of stubs to remove unsupported or irrelevant annotations, and import into php-src with this tool? That way, the manual effort for existing functions would be virtually zero. Regards, -- Rowan Collins [IMSoP] --0000000000000f3307058b9c9527--