Re: Can someone explain me why this happens please?

From: Date: Sun, 16 Nov 2008 13:51:12 +0000
Subject: Re: Can someone explain me why this happens please?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-41951@lists.php.net to get a copy of this message
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 variable, it has no content, you have to initialize it. The characters you got are from the uninitialized space you used in the stack. C won't initialize variables for you as it would be a waste of time in the case you already initialize it with a non-NULL value. Anyway as this is not PHP-related, I suggest this discussion to be continued outside of the PHP internals mailing list, if you have any question, I can probably give you some pointers to good documentation, just need to understand what you are trying to do. Best regards, Mark

« previous php.internals (#41951) next »