Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88546 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85679 invoked from network); 29 Sep 2015 14:47:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2015 14:47:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=codekestrel@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=codekestrel@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: codekestrel@googlemail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:33162] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/00-20099-964AA065 for ; Tue, 29 Sep 2015 10:47:05 -0400 Received: by wiclk2 with SMTP id lk2so154851928wic.0 for ; Tue, 29 Sep 2015 07:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ak1pEoXC98MgJ8ScwbgGH8H01rdRMQ+l/KLejZUT2I8=; b=e0+ss0Scztnlr9XJzAIb2rMyC6pQeOLfD+JVoDJ57xVnb+IHJ3+CFZJhycwwZHrWOu +qSZkoI2mVvZryuPx26BUur8d+sZQVKE/F/1eO9CQrH4+uvmiuzKknRB8ZM7znD8zUhx +p+djX2MBPRtI9333c9A23+VLsIkJN8uZEYUI1QqwHf4GfoDGmApiB563mFdBvZyb7Dx kTYGV2h7/KvL5z/3KrHxwb79F8br5fQznkt+JmWTNoJWFxRRNSHhCuHbmk/fsPxvabsq N2svqVJnVBHRx2Sb3eHJd4sIh2uJ/lHYCaAsqGoXPAAx2wdwJllo/mOk3XLZvF4Mtris owhg== MIME-Version: 1.0 X-Received: by 10.180.219.106 with SMTP id pn10mr27203172wic.56.1443538022290; Tue, 29 Sep 2015 07:47:02 -0700 (PDT) Received: by 10.27.104.197 with HTTP; Tue, 29 Sep 2015 07:47:02 -0700 (PDT) Received: by 10.27.104.197 with HTTP; Tue, 29 Sep 2015 07:47:02 -0700 (PDT) Date: Tue, 29 Sep 2015 15:47:02 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11346a7009dca10520e3e3bf Subject: Injecting structure to ZEND_NEW From: codekestrel@googlemail.com (Dominic Grostate) --001a11346a7009dca10520e3e3bf Content-Type: text/plain; charset=UTF-8 I'm trying to pass a new structure into the ZEND_NEW handler which will be used to change the behaviour of zend_fetch_class_by_name. The issue I'm having though is the operands won't support the new type unless I compile it to zval, but I can't use zend_execute_data to reference that in a pre-handler since that appears to deal exclusively with function calls. op2 is taken on ZEND_NEW for the ctor skip, which is why I can't pass a new zval directly to it. Is there another means I can pass the structure in? Dominic --001a11346a7009dca10520e3e3bf--