Re: [PHP-DEV] Grafts, Traits, horizontal reuse

2008-11-16 Thread Christopher Vogt
Hej, >> I really liked to see the Grafts proposal. > Well, I'm still in love with the more powerful (because they are > interweaveable(breakable)) Traits ;) I don't think there has to be a choice between Grafts and Traits. They serve different purposes and I don't see a reason they shouldn't co-e

Re: [PHP-DEV] Grafts, Traits, horizontal reuse

2008-11-16 Thread Stefan Marr
Hi, Christopher Vogt schrieb: Hej everybody, I really liked to see the Grafts proposal. Well, I'm still in love with the more powerful (because they are interweaveable(breakable)) Traits ;) The Grafts proposal, however, suffered a little from being born out of traits, I think. Something si

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

2008-11-16 Thread Chris Jiang
Ok, I see. Thank you all for replying. I guess there are a lot to be learned for me now. I'm actually trying to learn C and put it in use of writing PHP extensions. Because from years of working with PHP, I start to feel that PHP might be a bit weak for performance sensitive tasks. Well, it'

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

2008-11-16 Thread M.
Le dimanche 16 novembre 2008 à 21:35 +0800, Chris Jiang a écrit : > Still, this is a really strange experience. Where are those characters > come from? Shouldn't it be a clean array when I first created them? > Anything related to the zval structure? This is not PHP-related. When you *define* a

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

2008-11-16 Thread Uwe Schindler
This is per definition: In C local variables are not initialized with anything! The weird characters you see are content from prior memory usage leftover from calls to other functions. Its just garbage. In C, local variables must always be initialized. - Uwe Schindler [EMAIL PROTECTED] - ht

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

2008-11-16 Thread Chris Jiang
Ah, greet appreciation! The memset() way works perfectly, but the res[0] way didn't work. Beside, I think you are right. Although I'm just a beginner in C language, but from the experience of JS and PHP, also according to the document I've been searching all the time, there should be something

Re: [PHP-DEV] quick polls for 5.3 (sorry missed a couple votes, but they did not affect the results)

2008-11-16 Thread Lukas Kahwe Smith
Hello All, First up thanks for this every efficient thread! Really makes the life for Johannes and myself a lot easier when we can so easily get an overview of the opinions on internals. After having discussed the results, we want to publish our conclusions .. 1) ext/mhash in 5.3. ext/has

Re: [PHP-DEV] CVS Account Request: magicaltux

2008-11-16 Thread Pierre Joye
hi, On Sun, Nov 16, 2008 at 2:23 PM, Mark <[EMAIL PROTECTED]> wrote: > Hi, > ... this one. You replied to my second reminder for bug #46127 to the > internals mailing list with a promise to look at this patch later. This > is the only reply I got from you for bug I posted on internals (as far > a

Re: [PHP-DEV] CVS Account Request: magicaltux

2008-11-16 Thread Mark
Hi, > I replied to your mail to internals. I only have one reply from you which is... > > - The OpenSSL extension (http://bugs.php.net/46127 - a fix for one line > > missing in PHP 5.3) > > I replied you on this one earlier this week too. ... this one. You replied to my second reminder for bu

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

2008-11-16 Thread M.
Hi, Try initializing your "res" variable first. either: memset(&res, 0, sizeof(res)); Or: res[0] = 0; Both will work, it all depends if you 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

[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] quick polls for 5.3

2008-11-16 Thread Lukas Kahwe Smith
Hello All, First up thanks for this every efficient thread! Really makes the life for Johannes and myself a lot easier when we can so easily get an overview of the opinions on internals. After having discussed the results, we want to publish our conclusions .. 1) ext/mhash in 5.3. ext/has

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

2008-11-16 Thread 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

Re: [PHP-DEV] CVS Account Request: magicaltux

2008-11-16 Thread Pierre Joye
` On Sun, Nov 16, 2008 at 11:40 AM, Mark Karpeles <[EMAIL PROTECTED]> wrote: > As most my [PATCH] mails sent to the internals mailing list were ignored (as > of today, at least), I'm requesting an access to the PHP CVS, fully aware of > what this means. I replied to your mail to internals. > -

[PHP-DEV] CVS Account Request: magicaltux

2008-11-16 Thread Mark Karpeles
As most my [PATCH] mails sent to the internals mailing list were ignored (as of today, at least), I'm requesting an access to the PHP CVS, fully aware of what this means. My contributions (ordered by priority) would include: - The WDDX extension (http://bugs.php.net/46496) - The OpenSSL extensio

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

2008-11-16 Thread Moriyoshi Koizumi
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 <[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,