Re: svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c
trunk/ext/standard/basic_functions.c
| From: | Stas Malyshev | Date: | Sun, 07 Aug 2011 20:32:44 +0000 |
| Subject: | Re: svn: /php/php-src/ branches/PHP_5_3/ext/standard/basic_functions.c branches/PHP_5_4/ext/standard/basic_functions.c trunk/ext/standard/basic_functions.c |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-65763@lists.php.net to get a copy of this message | ||
Hi!
On 8/7/11 7:25 AM, Xinchen Hui wrote:
I'm not sure I understand this code. You first use opts as memset target and then check if for null. How that works? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227laruence Sun, 07 Aug 2011 14:25:30 +0000memset(opts, 0, count * sizeof(opt_struct)); + if (!opts) { + RETURN_FALSE; + } +