Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29139 invoked from network); 3 Aug 2013 18:16:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2013 18:16:46 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.52 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.52 mail-oa0-f52.google.com Received: from [209.85.219.52] ([209.85.219.52:34108] helo=mail-oa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/70-26272-D094DF15 for ; Sat, 03 Aug 2013 14:16:45 -0400 Received: by mail-oa0-f52.google.com with SMTP id n12so3614673oag.11 for ; Sat, 03 Aug 2013 11:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=vjFXPWCs2k37nVp9GuPIg5L94L6IQqBgTWuKymhW53o=; b=0ASrZxm574cGDS22fpKh13FFRcFtL0oQ+gUJZEIQCvUZCQGFqvlZfaDgjI/4dNpQF0 bIdnKu0GVC/8Y/Ij/EC3mmHUst/slV3tnilBHJFHvSxS+wCurAlE0TP5K1ZGBbtw3/aC 3/Eq1szxhCG8k8inAJBx9cQgqeavnEdq6DhCy1Dz//4T0OAICPLVGsVGzCo5zjvhZnvn kAVY9Re6/sc5HPw0EHjaBBlVIZu7Fn7mGlC+HdEGj5LK7DBmDERJVLWBdIn2e1MV1D1G YJPpCXM7PF3EquzUA2J54zbwUMBEiAEIS0pvVNo8eCLRRmudzgoubvEGJY6Np0TJBjbc iDBQ== MIME-Version: 1.0 X-Received: by 10.182.101.198 with SMTP id fi6mr9342216obb.79.1375553802205; Sat, 03 Aug 2013 11:16:42 -0700 (PDT) Received: by 10.182.89.170 with HTTP; Sat, 3 Aug 2013 11:16:42 -0700 (PDT) Date: Sat, 3 Aug 2013 20:16:42 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=e89a8ff1ceb6c0020904e30f13e0 Subject: Always set return_value_ptr? From: nikita.ppv@gmail.com (Nikita Popov) --e89a8ff1ceb6c0020904e30f13e0 Content-Type: text/plain; charset=ISO-8859-1 Hi internals! Is there any particular reason why we only pass return_value_ptr to internal functions if they have the ACC_RETURN_REFERENCE flag set? Why can't we always provide the retval ptr, even for functions that don't return by reference? This would allow returning zvals without having to copy them first (what RETVAL_ZVAL does). Motivation for this is the following SO question: http://stackoverflow.com/q/17844379/385378 Thanks, Nikita --e89a8ff1ceb6c0020904e30f13e0--