php-ext: remove compile warning

pull/37/head
YuQing 2018-11-19 18:50:34 +08:00
parent b7d21b57b2
commit 2d8a30b735
1 changed files with 3 additions and 1 deletions

View File

@ -714,7 +714,7 @@ ZEND_FUNCTION(fastcommon_id_generator_destroy)
{
int argc;
zval *zhandle;
PHPIDGContext *php_idg_context;
//PHPIDGContext *php_idg_context;
argc = ZEND_NUM_ARGS();
if (argc > 1) {
@ -733,8 +733,10 @@ ZEND_FUNCTION(fastcommon_id_generator_destroy)
}
if (zhandle != NULL && !ZVAL_IS_NULL(zhandle)) {
/*
ZEND_FETCH_RESOURCE(php_idg_context, PHPIDGContext *, &zhandle, -1,
PHP_IDG_RESOURCE_NAME, le_consumer);
*/
} else {
if (last_idg_context == NULL) {
logError("file: "__FILE__", line: %d, "