Explorar el Código

debug for php7

stanley-king hace 5 años
padre
commit
90562f2d81
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      fcgi.c

+ 6 - 2
fcgi.c

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