[PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-15 Thread 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 n

Re: [PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-15 Thread Chris Jiang
Thank you all for the reply. I guess I'll take a look at those document and samples, start playing around with it a bit. :D -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-16 Thread Chris Jiang
a look at Boost.PHP :) http://github.com/moriyoshi/boost.php/wikis Moriyoshi On Sun, Nov 16, 2008 at 12:11 AM, Chris Jiang <[EMAIL PROTECTED]> 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 li

[PHP-DEV] Can someone explain me why this happens please?

2008-11-16 Thread Chris Jiang
Hi all, since I started playing around with Zend API, I thought it would be better to start writing some small functions as practice. Then my entire weekend became nightmare. I've tried to add a function activated in dynamic module, and it gives a very strange result. This function is really s

Re: [PHP-DEV] Can someone explain me why this happens please?

2008-11-16 Thread Chris Jiang
u want to write "clean" code, of "fast" code (and your definition of both). I believe there are cleaner way to do what you are doing, but I'll let that to your curiosity. Mark Le dimanche 16 novembre 2008 à 21:15 +0800, Chris Jiang a écrit : Hi all, since I started playing

Re: [PHP-DEV] Can someone explain me why this happens please?

2008-11-16 Thread Chris Jiang
Well, it's a long way ahead, and I'd better get going now. Thanks again for the help, and I'll send more 'spam' if I've got problem with PHP and Zend in the future. :D M. Karpelès 写道: Le dimanche 16 novembre 2008 à 21:35 +0800, Chris Jiang a écrit : Still, this is

[PHP-DEV] Need some help about using Boost.PHP to make extensions

2008-11-18 Thread Chris Jiang
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 t

[PHP-DEV] Modify the ht of ZVAL?

2008-11-22 Thread Chris Jiang
Hi all, I'm moving onto zval part of my studying now. Just wondering, how a zval in another zval can modified. I've been reading the documents, and found that zval is normally forbidden from modifying if not passed by reference, and can be separated manually. Using hash* functions allows addin

[PHP-DEV] XSLT Bug?

2009-10-28 Thread Chris Jiang
Hi guys! I don't know if anybody ever encountered a strange problem as I did, but I've found a strange behavior of XSLT processor when I was working on my project. The case is simple, but weird, it just occasionally generates improper result with the XML and XSL data I've inputted. Even worse, it

[PHP-DEV] PHP socket automatically shuts down after ? hours of idling?

2009-10-28 Thread Chris Jiang
Hi all, here is another question that made me confused. I'm not sure if it's a bug or what, but I can't find an answer from the search engines. I've made a chat server using php socket features, and it works pretty well as I've expected. However, there is a weird thing happening: The server shuts

Re: [PHP-DEV] PHP socket automatically shuts down after ? hours of idling?

2009-11-01 Thread Chris Jiang
en, the server shuts down. I tried to log what happend during the operation, but didn't find anything useful. :( Any hint on this? Thanks! Chris Jiang 2009/10/28 Chris Jiang : Hi all, here is another question that made me confused. I'm not sure if it's a bug or what, but I c

Re: [PHP-DEV] PHP socket automatically shuts down after ? hours of idling?

2009-11-24 Thread Chris Jiang
? Thanks! mm w 写道: Hi what is your platform ?2. Provide a working, migth be a recent problem regarding x socket, can you observe and dump your tcp connexion? On Sunday, November 1, 2009, Chris Jiang wrote: Hi Hannes, It just shuts down the socket server without any error, warning or n

Re: [PHP-DEV] PHP socket automatically shuts down after ? hours of idling?

2009-11-25 Thread Chris Jiang
Hi all, after running a strace program, I've found the real issue with in it. It was a mysql connection timeout causing the PHP encountering a fatal error, and shuts down the server. Thank you all again for your time and help. :D Hi what is your platform ?2. Provide a working, migth be a r