stanley-king 5 年之前
父節點
當前提交
bf206fc932
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      fcgi.c

+ 1 - 5
fcgi.c

@@ -102,12 +102,8 @@ PHP_MINFO_FUNCTION(fcgi)
 PHP_FUNCTION(confirm_fcgi_compiled)
 {
 	zend_string     *arg;
-	char* ret = NULL;
-	int len = 0;
     if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &arg) == FAILURE) {
-        ret = "as this return char* data";
-        len = strlen(ret);
-        RETURN_STRING(ret,);
+        RETURN_STRING("as this return char* data");
     } else {
     	RETURN_STR(arg);
     }