Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105702 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65914 invoked from network); 14 May 2019 17:31:27 -0000 Received: from unknown (HELO mail-it1-f173.google.com) (209.85.166.173) by pb1.pair.com with SMTP; 14 May 2019 17:31:27 -0000 Received: by mail-it1-f173.google.com with SMTP id m140so2855364itg.2 for ; Tue, 14 May 2019 07:37:06 -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=PeGhPPUDFfxB8tFf0XQyIcRg3g3sSMr9fHVXd28Yx4U=; b=tAmnr1oZocfuDcPwc0d1gmE7gUtKsRjvPwyrRqRU4Ng06lYN7QMwI0l/OXBc+nyl6y NhemEp2uuqT6x/MDBCF1dt+rMsqRq3G1vqu6MJgAENCY6pTmtjgdOUXntt2rPGqNIpOP nISEYbtebSfP2URmwzKbfslmb8qYcs12NyPqTgceVo0twu2riu2d1/95bl0M2w6v0XbD 3olv8DEyGzMZqCRRebm6FpHEPUPnF7Biwc3yDWWyjI4ELBYTbVkY5qYFB3Oi2TtOw6ZI XziEGJpn1fTfN7+O2EreTiokMXkgRB0yrvVHOPi0Ey+rrCyLHWYnr+y1fQ2elNZOZYHR ObVg== 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=PeGhPPUDFfxB8tFf0XQyIcRg3g3sSMr9fHVXd28Yx4U=; b=QNPMH75vFTSaYzgKUBNW1Yqxii63zMK/faJvv5ycoL3z0ze64rcJlkCGr3NtrSZTdx PU7EHAXUvxKy43LBmKmhVHy+6GJ8Td8I8xtYRv+I0oUMF89ytjJedBP+JSJF+nBFLNyt /5oQRn4ndgdXM29Qn0xPMcILaqxzNzsJ+Ab62R5ebnta6NtAmGIfI1pVymRSCZQ+Uvdd +BziRR8OpN/xdiR4Y4kVJv+TT0meEkf805bRncYSNkU5RfNaD7B1CMikpZcE3cn2MBn5 q0wtWE3R/YzVsPZ5aNMP7m6+NsJUp7yR3QGBTWMqCtfcCzgQZIKQ3CPWuUllsDfaQX/1 63Jg== X-Gm-Message-State: APjAAAWfJetilCoqVWTRB/BUC6AuAfxQAqqEUa2p+zeQgm9FiLLCYdeL zv2nw/Akfo1b6WAwVNuwnzyUUfG9grxzyLrtsVaU7uC6Aj4= X-Google-Smtp-Source: APXvYqy7t4gEqrmFo/IbumDBTy4jPhgh2BnKNzthNoQU4vuaZXQhhpdLS7rgR1khm6V2xySfd8r6cJ1G6BQ3/Cwuf+w= X-Received: by 2002:a05:660c:4d0:: with SMTP id v16mr3674403itk.141.1557844626484; Tue, 14 May 2019 07:37:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 14 May 2019 16:36:54 +0200 Message-ID: To: Benjamin Morel Cc: Steven Wade , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="00000000000093b0b50588d9f7a7" Subject: Re: [PHP-DEV] Add get_mangled_object_properties() From: ocramius@gmail.com (Marco Pivetta) --00000000000093b0b50588d9f7a7 Content-Type: text/plain; charset="UTF-8" On Tue, May 14, 2019 at 4:29 PM Benjamin Morel wrote: > I like the explicitness of the proposal, but only if performance is as good > as (array) cast. One of the reasons we use casting to array in libraries is > not only to access all properties at once, but also because it's fast as > it's implemented as an opcode and not a function call. Would this function > come with its own opcode, like strlen() / gettype() / etc.? > > Ben > Indeed. Besides that, this is a good chance to have an explicit `object` parameter type. @Nikic is the return type also `array`, according to reflection? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --00000000000093b0b50588d9f7a7--