stanley-king 5 năm trước cách đây
mục cha
commit
bf206fc932
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  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);
     }