Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60310 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6426 invoked from network); 25 Apr 2012 04:44:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2012 04:44:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=yader.hernandez@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yader.hernandez@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: yader.hernandez@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:50701] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/39-54790-521879F4 for ; Wed, 25 Apr 2012 00:44:22 -0400 Received: by obbup16 with SMTP id up16so2090165obb.29 for ; Tue, 24 Apr 2012 21:44:18 -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=lAoxsw9gze0cRNac02wqrmrk+zRpt+wBS0SV5jhypbs=; b=t0hKcCj05x1+g9OcuEg3HQeKwcOMu2ek8H96ygZwjBUuF1MDL4lVWCHnsKazQkSJ06 oN8+B0dXlqQ2b2s5iNbRcEK3fBfCmCEG/4l80Z3vSQEHG7YuICIRA2MDqagFHn/2LoV6 6kxTnmS9Kg6yWff0pV7R/6QDCvW20q2jLHp94QDql0QxMKqLo2poDrCd9082d+k/XCwS 1Pzt3/XwHqTKtOM95oTpLI8NZYC1sR6aAuuvN13KFBSbpRFo0wCN/mXiFqUMVvj8/cEK JdzXqpJob8NmUXhcmmfAWwbOu/sYoWcrSM7UnCKNkS9+LGQUQrIgx6aPeMgKEcf9HXlG duIg== MIME-Version: 1.0 Received: by 10.60.19.106 with SMTP id d10mr1276789oee.40.1335329058837; Tue, 24 Apr 2012 21:44:18 -0700 (PDT) Received: by 10.60.147.199 with HTTP; Tue, 24 Apr 2012 21:44:18 -0700 (PDT) Date: Tue, 24 Apr 2012 21:44:18 -0700 Message-ID: To: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=e89a8ff1c4a835d51504be79866c Subject: Translating nNextFreeElement from user land From: yader.hernandez@gmail.com (Yader Hernandez) --e89a8ff1c4a835d51504be79866c Content-Type: text/plain; charset=ISO-8859-1 Hello, Originally I was managing the indexes of an internal array I have. But I ran into issues when calling zend_hash_rehash so I started relying on nNextFreeElement from HashTable. If a user gives me 12 as their index they would like to look up, how would I translate that into the real value needed for nNextFreeElement ? Basically index_from_user_land != nNextFreeElement thx --e89a8ff1c4a835d51504be79866c--