Re: Extending PHP with C++ (Newbie Question)
| From: | Chris Jiang | Date: | Sun, 16 Nov 2008 13:05:42 +0000 |
| Subject: | Re: Extending PHP with C++ (Newbie Question) | ||
| References: | 1 2 | Groups: | php.internals php.internals |
| Request: | Send a blank email to internals+get-41941@lists.php.net to get a copy of this message | ||
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 <jiangcat@gmail.com> 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