Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41925 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98671 invoked from network); 15 Nov 2008 16:48:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2008 16:48:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.234 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.234 rv-out-0506.google.com Received: from [209.85.198.234] ([209.85.198.234:39183] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/00-32680-26DFE194 for ; Sat, 15 Nov 2008 11:48:35 -0500 Received: by rv-out-0506.google.com with SMTP id g37so1870188rvb.23 for ; Sat, 15 Nov 2008 08:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fFA/nZBgsTpTX1XWzQThAvwYK/1MkyPEZXxrN9FouYM=; b=cPcTE26bkRm4Fn1Ovx9I9pr20YuWBnj2fjOLud7f2zdkXxEaQf7KH2m7bVnkWKUod2 Pk4vapkE/IvFZBNDeRlanlX0AnVziMOXNA7h7BAIBS4lpbkLb5T6rUy7S5URKUE/X0fv chReSMgbQY54tYUF5K6Y7WTVX7Lv7dDOhxyBU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=GhTeaMWVGrEMP5DWvpyxzozn5POhvvol3J46GA4aQkQVYBF817pjgUH2kQz0Ma7LLI 9c9Qz05SnHJLkyCxTW1hPjYAqU4VnlshZn5MNA7VgZgGRq5BDM38sgmPHSJehxh2NLI8 HU9dtESEWeTh7LMbLQEdhXXyJ9DX3KlNloMqU= Received: by 10.141.115.20 with SMTP id s20mr1228342rvm.70.1226767328251; Sat, 15 Nov 2008 08:42:08 -0800 (PST) Received: by 10.140.165.15 with HTTP; Sat, 15 Nov 2008 08:42:08 -0800 (PST) Message-ID: Date: Sat, 15 Nov 2008 17:42:08 +0100 To: "Chris Jiang" Cc: internals@lists.php.net In-Reply-To: <26.62.61433.8B6EE194@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <26.62.61433.8B6EE194@pb1.pair.com> Subject: Re: [PHP-DEV] Extending PHP with C++ (Newbie Question) From: pierre.php@gmail.com ("Pierre Joye") hi, Take a look in pecl/rar for an example of a c++ based extension (or some other pecl extensions) On Sat, Nov 15, 2008 at 4:11 PM, Chris Jiang wrote: > Hi all, it's my first time posting in this mailing list. > > I've been trying to make a PHP extension for my project, and would really > like to use C++ instead of C to write the code. I've been searching for some > tutoral or manual for some time already, but not so lucky fining anything > useful for newbies like myself. > > Yes, I've searched quite carefully on the search engine and the achive of > this mailing list. End up finding a really old (posted in 2004) thread by > someone signed as 'J', directing to a link sort of like > http://tutorbuddy.com/software/phpcpp. I guess this might be what I need, > but the article seems already out of date. I've found a translated version > of this article, and made a testing extension following the instructions, > however it didn't work. > > The article was written for PHP 4.2.X, and the sample code is missing (the > link is broken). I'm currently working with PHP 5.2.5. Is it because PHP > 5.2.5 is really different with 4.X? Or the document was not properly > translated? > > Can someone be so kind to point me an URL of this original article? > > Thank you all! > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Pierre http://blog.thepimp.net | http://www.libgd.org