function_entry curl_functions[] = {
PHP_FE (curl_init, NULL)
+ PHP_FE (curl_version, NULL)
PHP_FE (curl_setopt, NULL)
PHP_FE (curl_exec, NULL)
PHP_FE (curl_close, NULL)
return SUCCESS;
}
+/* {{{ proto string curl_version ()
+ Return the CURL version string. */
+PHP_FUNCTION (curl_version)
+{
+ RETURN_STRING(curl_version(),1);
+}
+/* }}} */
+
/* {{{ proto int curl_init ([string url])
Initialize a CURL session */
PHP_FUNCTION (curl_init)
}
/* }}} */
-#endif
\ No newline at end of file
+#endif
PHP_MINIT_FUNCTION (curl);
PHP_MINFO_FUNCTION (curl);
+PHP_FUNCTION (curl_version);
PHP_FUNCTION (curl_init);
PHP_FUNCTION (curl_setopt);
PHP_FUNCTION (curl_exec);
#define curl_module_ptr NULL
#endif /* HAVE_CURL */
#define phpext_curl_ptr curl_module_ptr
-#endif /* _PHP_CURL_H */
\ No newline at end of file
+#endif /* _PHP_CURL_H */