Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74343 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9229 invoked from network); 19 May 2014 03:14:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2014 03:14:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=the.warl0ck.1989@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=the.warl0ck.1989@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.179 as permitted sender) X-PHP-List-Original-Sender: the.warl0ck.1989@gmail.com X-Host-Fingerprint: 209.85.214.179 mail-ob0-f179.google.com Received: from [209.85.214.179] ([209.85.214.179:55285] helo=mail-ob0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/43-05762-E0779735 for ; Sun, 18 May 2014 23:14:23 -0400 Received: by mail-ob0-f179.google.com with SMTP id vb8so5503178obc.24 for ; Sun, 18 May 2014 20:14:19 -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=lXOqig0mmEtZZ+ajhJ6ck/gP7uCHhlIkHaQKZRR8Cic=; b=QiHtdmkT3M1GXGolrGw4Er/MGD5aRWZNcmet9thNdARBzpQ1kVjPRngBgfJYtoy6p5 PimJk7a2VNBn71lUZpR13IuPCJRc11Mb3f/LM/Gn8g2EB3jzlKwBShbaSmI/TTE0UbBQ 761D5ZeX8uyZTyXS6vlfwbCd52ARZATjAVnNWINc9gWpqAuIiNMJdc7hMTx4bsiSdXUM 0zoVcIWzY01pKV42dHKwo1aBG8uMykK2no8khw8y6HBgEGXYynVohTtdV8leeLnnRv0H kbdGobF0rcyUVcdBw3YFbJNjQ3BtI9uP0Ye5DYHTrzLwk2KL2KQhu6cTwyO+oGKV7vWN FK+w== MIME-Version: 1.0 X-Received: by 10.182.20.169 with SMTP id o9mr33176367obe.59.1400469259549; Sun, 18 May 2014 20:14:19 -0700 (PDT) Received: by 10.76.23.66 with HTTP; Sun, 18 May 2014 20:14:19 -0700 (PDT) Date: Mon, 19 May 2014 11:14:19 +0800 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Directly create a zval with values From: the.warl0ck.1989@gmail.com (Aaron Lewis) Hi, How can I create a zval with value directly? I'm kinda tired of writing: zval *value; MAKE_STD_ZVAL(value); ZVAL_STRING(value, "fakefake()", 1); -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33