Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41921 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84723 invoked from network); 15 Nov 2008 15:15:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2008 15:15:26 -0000 Received: from [127.0.0.1] ([127.0.0.1:20222]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 64/82-61433-E87EE194 for ; Sat, 15 Nov 2008 10:15:26 -0500 X-Host-Fingerprint: 61.50.134.238 unknown Received: from [61.50.134.238] ([61.50.134.238:11936] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/62-61433-8B6EE194 for ; Sat, 15 Nov 2008 10:11:53 -0500 Message-ID: <26.62.61433.8B6EE194@pb1.pair.com> To: internals@lists.php.net Date: Sat, 15 Nov 2008 23:11:40 +0800 User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 61.50.134.238 Subject: Extending PHP with C++ (Newbie Question) From: jiangcat@gmail.com (Chris Jiang) 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!