Hello Stanislav,

  a global struct is filled up with NULL/0's while a local struct is not
initialized at all. The patch simply provides more correct code and even
adds a few consts. I think we should apply this to 5.3 and HEAD. Meaning we
need it for both versions.

marcus

Tuesday, November 27, 2007, 9:53:12 AM, you wrote:

>> I've been working on making PHP build under more stringent error
>> checking, specifically -Wextra under GCC.  This patch cleans up dozens
>> of struct initializations that are valid C, but could hide future
>> problems.

> Doesn't C standard mandate filling up uninitialized fields with 0?
> -- 
> Stanislav Malyshev, Zend Software Architect
> [EMAIL PROTECTED]   http://www.zend.com/
> (408)253-8829   MSN: [EMAIL PROTECTED]




Best regards,
 Marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to