Re: cvs: php-src /ext/standard basic_functions.c
| From: | Antony Dovgal | Date: | Thu, 21 Aug 2008 07:24:10 +0000 |
| Subject: | Re: cvs: php-src /ext/standard basic_functions.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-52542@lists.php.net to get a copy of this message | ||
On 20.08.2008 22:09, Stanislav Malyshev wrote:
Hi!I was just fixing the warning, I have no idea why this code looks so weird. -- Wbr, Antony Dovgalstatic int add_config_entry_cb(zval *entry TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key) { - zval *retval = (zval *) va_arg(args, int); + zval *retval = (zval *)(long)va_arg(args, int);Any reason why you fetch int if you need zval *? Also, zval * doesn't have to fit into int.