Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41999 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40540 invoked from network); 19 Nov 2008 19:29:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2008 19:29:09 -0000 Authentication-Results: pb1.pair.com header.from=mozo@mozo.jp; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=mozo@mozo.jp; spf=permerror; sender-id=permerror Received-SPF: error (pb1.pair.com: domain mozo.jp from 74.125.92.27 cause and error) X-PHP-List-Original-Sender: mozo@mozo.jp X-Host-Fingerprint: 74.125.92.27 qw-out-2122.google.com Received: from [74.125.92.27] ([74.125.92.27:3895] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/31-06451-30964294 for ; Wed, 19 Nov 2008 14:29:09 -0500 Received: by qw-out-2122.google.com with SMTP id 8so24349qwh.59 for ; Wed, 19 Nov 2008 11:29:04 -0800 (PST) Received: by 10.214.81.16 with SMTP id e16mr1520930qab.254.1227122944556; Wed, 19 Nov 2008 11:29:04 -0800 (PST) Received: by 10.215.101.9 with HTTP; Wed, 19 Nov 2008 11:29:04 -0800 (PST) Message-ID: Date: Thu, 20 Nov 2008 04:29:04 +0900 To: "Chris Jiang" Cc: internals@lists.php.net In-Reply-To: <89.EA.32341.9C7F2294@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <89.EA.32341.9C7F2294@pb1.pair.com> Subject: Re: [PHP-DEV] Need some help about using Boost.PHP to make extensions From: mozo@mozo.jp ("Moriyoshi Koizumi") Please redirect your question to me. Boost.PHP is not an official part of the PHP project. Moriyoshi On Wed, Nov 19, 2008 at 2:13 AM, Chris Jiang wrote: > Hi all, it's been a while since my last thread. I've been playing around > with Boost.PHP these days, and find it pretty much satisfactory. Now, I need > some help on how Boost.PHP treat with PHP arrays. Not complaining, but there > isn't much document I can learn from the official website. > > And if this thread is NOT totally about PHP, I'm sorry about this. This > mailing list is the only place possibly I can find answers about it. I can't > find a suitable C/C++ forum to ask this question since they don't work with > PHP though. :( > > I'm trying to get an array('key'=>'val') (associative array) as argument, > and return a std::string of 'key:val' back to PHP. Now, I can get the keys > but not the arrays. I thought there might be something wrong with how I was > using php::array::const_reference. > > Can anyone be so kind to explain how it works? Or perhaps a piece of working > code that I can learn about? > > Thank you! > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >