Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120874 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53108 invoked from network); 31 Jul 2023 20:13:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Jul 2023 20:13:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 37BEA1804BE for ; Mon, 31 Jul 2023 13:12:59 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (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 ; Mon, 31 Jul 2023 13:12:58 -0700 (PDT) Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-4866429924eso1429875e0c.2 for ; Mon, 31 Jul 2023 13:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690834378; x=1691439178; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Vpt0OLK92t88Ic06t9HlijaLby1Kwvqh60nUB75BIAQ=; b=L42sk0HoxVzQ4UgF7R70gnKfKP+XrnVCMqHXLK5qvKMWHdb+20yam1z6ab94YvJ3bl 5cF6TLRsyLKwMmDsWqayazUg8R2qZDw8B3piAAFNc5pBjJ+aCH4uw4gQlKvoOuSaZCsG DyUeZggfjRm2+mqY2VaJrRudjC5GveCpa0W8qivTwb5sXKGj0ePwFkwQAJnFja3gXkcM vCK9Qfgc5MATZWhL18Bz/yp8IpwAGGXc3okIDj6aNK74ax76tfMGCRHl4Nt0/zbKK8KQ K/yiNJNFXRJ3Nn5SwCnXdbfsSdWYK+hNNA7cOfHkzNVqGwDPTOVqvOjEBckbAGRM7jxx zXJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690834378; x=1691439178; h=content-transfer-encoding:cc: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=Vpt0OLK92t88Ic06t9HlijaLby1Kwvqh60nUB75BIAQ=; b=SXRrPiaelQRaoTuuDRTCp65smNPUsDblgMlKad24ebzZR8BY+goCtymp6CdaAtrgxS j5CzIE0L41QrAH7bKtnTUAt7eSeL/o/eDhCXYBaUImYIx49C+Y2/LOFxm41YLRPOJ0/5 JVW7zt5+G5/z22bVYxJ547IunsnzUeaaloLc1FiaweS6FwpL36Q5H+JBSo6xH34pDjjV hFPqHOyl46NHeuis4p5Mi0fASo6zgdPxO2B8+Bz9mRsJjXeiHi2wStxYFn6+FY/dBGae J0+Vl2LUrUjVxLKaZj0BwSlRTt8YsLUkM59aM3Zn7ipxXyE/VtwV6CXLyN/Qo64SvU/P Mezw== X-Gm-Message-State: ABy/qLafLsYlMNkxALImbEZuI8E3nvMCT39jJ4doygxRgc7FhOu4Y1Ly Q+jmmSm4DHwKrM63moPXsGcE1Y7FSV4wnGi4vD4= X-Google-Smtp-Source: APBJJlFZdDXDdNAKfuBszMdtzgx4hOxSpI1m3TmSAoJJ4lQeNTtvYjfap4t+go1/BRv5zWebgegazr4bNRwoQCyL1PY= X-Received: by 2002:a1f:ec02:0:b0:486:43d0:90db with SMTP id k2-20020a1fec02000000b0048643d090dbmr768714vkh.10.1690834377887; Mon, 31 Jul 2023 13:12:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 31 Jul 2023 13:12:46 -0700 Message-ID: To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: PHP Internals List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Arginfo Mismatch For Optional Parameters From: sutabi@gmail.com (Joseph Montanez) M=C3=A1t=C3=A9, Thanks! That was the issue :). All of the c code, including arginfo and stubs are auto generated on my end. I didn't know you could use stubs to generate the arg info, so will need to look into it later. Just for reference the following works: ZEND_BEGIN_ARG_INFO_EX(arginfo_vector3__construct, 0, 0, 0) ZEND_ARG_TYPE_MASK(0, x, MAY_BE_DOUBLE|MAY_BE_NULL, "0") ZEND_ARG_TYPE_MASK(0, y, MAY_BE_DOUBLE|MAY_BE_NULL, "0") ZEND_ARG_TYPE_MASK(0, z, MAY_BE_DOUBLE|MAY_BE_NULL, "0") ZEND_END_ARG_INFO() Thanks, Joseph Montanez On Mon, Jul 31, 2023 at 12:38=E2=80=AFPM M=C3=A1t=C3=A9 Kocsis wrote: > > Hi, > > The problem is that your arginfo declares parameters of type double, whil= e you accept the double|null type in ZPP. > > P.s. i'm not sure based on your message whether you use stubs for declari= ng symbols, but if that's not the case, then doing so is highly recommended= . You can find plenty of examples in php-src (*.stub.php files). > > Regards, > M=C3=A1t=C3=A9