Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41940 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16810 invoked from network); 16 Nov 2008 13:06:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2008 13:06:02 -0000 X-Host-Fingerprint: 61.50.134.238 unknown Received: from [61.50.134.238] ([61.50.134.238:14455] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/60-13764-6BA10294 for ; Sun, 16 Nov 2008 08:05:58 -0500 To: internals@lists.php.net,Moriyoshi Koizumi Message-ID: <49201AA6.8030205@gmail.com> Date: Sun, 16 Nov 2008 21:05:42 +0800 User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 CC: internals@lists.php.net References: <26.62.61433.8B6EE194@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 61.50.134.238 Subject: Re: [PHP-DEV] Extending PHP with C++ (Newbie Question) From: jiangcat@gmail.com (Chris Jiang) Hey! That totally rocks! Thank you very much for this info. I'm really having nightmare with C in Zend Style during the entire weekend. A function works fine in pure GCC compiling mode but returns weird result in Zend Style. Moriyoshi Koizumi wrote: > Hey, > > Don't forget to have a look at Boost.PHP :) > > http://github.com/moriyoshi/boost.php/wikis > > Moriyoshi > > On Sun, Nov 16, 2008 at 12:11 AM, 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 >> >>