Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73883 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22929 invoked from network); 5 May 2014 09:51:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 May 2014 09:51:47 -0000 Authentication-Results: pb1.pair.com header.from=the.warl0ck.1989@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=the.warl0ck.1989@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.174 as permitted sender) X-PHP-List-Original-Sender: the.warl0ck.1989@gmail.com X-Host-Fingerprint: 209.85.214.174 mail-ob0-f174.google.com Received: from [209.85.214.174] ([209.85.214.174:58332] helo=mail-ob0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/B3-01614-BE957635 for ; Mon, 05 May 2014 05:29:34 -0400 Received: by mail-ob0-f174.google.com with SMTP id uz6so1322218obc.19 for ; Mon, 05 May 2014 02:29:06 -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=72ugQFqmU+LQvGPQrqe9jC3DlTbxntAHxUwU/N7FB2A=; b=rGma3xw6xRiPOCqwJc7YPiLVZ2FzdWrs5jiWBX9udI+QTxpRVSqS/iGwa1zonVtKM0 E/HAj9a2H9chIEdRu6/OA75T3rzGTZj1iinyIAeeGWb/mvy2UXJ0SLq2jmKykr5MM0G0 xRz9+PS8Zkw+v54UR9MAWDZ/ispUEsCFY6W4K61+aueUe+K5bP1UZBjJFu9gJdzKn6bc T7Bf/LnLRQXt0Y6tncUpp1p03vKSSEdEedyTzvafzJqHjq1Y3LsEhprN/qT+W5mZm/5j heYiO7kPqkeCS1op2jGq6veCjTZxZWx19ropQGSEA9ik7nwewOo5LpvMpoNLWFKZJLIv UufA== MIME-Version: 1.0 X-Received: by 10.182.115.199 with SMTP id jq7mr774205obb.70.1399282146404; Mon, 05 May 2014 02:29:06 -0700 (PDT) Received: by 10.76.23.66 with HTTP; Mon, 5 May 2014 02:29:06 -0700 (PDT) Date: Mon, 5 May 2014 17:29:06 +0800 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Looking for an example of zend_hash_quick_add() or zend_hash_add() From: the.warl0ck.1989@gmail.com (Aaron Lewis) Yes I can find examples in existing source code, zend_hash_quick_add(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zval*), (void**)&p); But I only know the HashTable, key, key length parameters, I'm not sure what to fill in for the rest Can anyone give me an example? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33