php_ftp.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Andrew Skalski <askalski@chek.com> |
  14. | Stefan Esser <sesser@php.net> (resume functions) |
  15. +----------------------------------------------------------------------+
  16. */
  17. #ifndef _INCLUDED_FTP_H
  18. #define _INCLUDED_FTP_H
  19. extern zend_module_entry php_ftp_module_entry;
  20. #define phpext_ftp_ptr &php_ftp_module_entry
  21. #include "php_version.h"
  22. #define PHP_FTP_VERSION PHP_VERSION
  23. #define PHP_FTP_OPT_TIMEOUT_SEC 0
  24. #define PHP_FTP_OPT_AUTOSEEK 1
  25. #define PHP_FTP_OPT_USEPASVADDRESS 2
  26. #define PHP_FTP_AUTORESUME -1
  27. PHP_MINIT_FUNCTION(ftp);
  28. PHP_MINFO_FUNCTION(ftp);
  29. #endif