PageRenderTime 33ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/runtime/ext_zend_compat/ftp/ext_ftp.php

https://gitlab.com/iranjith4/hhvm
PHP | 265 lines | 129 code | 34 blank | 102 comment | 0 complexity | f4217dae8e6e0ae516ebafb5d260c948 MD5 | raw file
  1. <?hh
  2. // generated by idl-to-hni.php
  3. /* Sends an ALLO command to the remote FTP server to allocate space for a file
  4. * to be uploaded. Many FTP servers do not support this command. These
  5. * servers may return a failure code (FALSE) indicating the command is not
  6. * supported or a success code (TRUE) to indicate that pre-allocation is not
  7. * necessary and the client should continue as though the operation were
  8. * successful. Because of this, it may be best to reserve this function for
  9. * servers which explicitly require preallocation.
  10. */
  11. <<__Native("ZendCompat")>>
  12. function ftp_alloc(mixed $ftp_stream,
  13. mixed $filesize,
  14. mixed &$result): mixed;
  15. /* Changes to the parent directory.
  16. */
  17. <<__Native("ZendCompat")>>
  18. function ftp_cdup(mixed $ftp_stream): mixed;
  19. /* Changes the current directory to the specified one.
  20. */
  21. <<__Native("ZendCompat")>>
  22. function ftp_chdir(mixed $ftp_stream,
  23. mixed $directory): mixed;
  24. /* Sets the permissions on the specified remote file to mode.
  25. */
  26. <<__Native("ZendCompat")>>
  27. function ftp_chmod(mixed $ftp_stream,
  28. mixed $mode,
  29. mixed $filename): mixed;
  30. /* ftp_close() closes the given link identifier and releases the resource.
  31. * After calling this function, you can no longer use the FTP connection and
  32. * must create a new one with ftp_connect().
  33. */
  34. <<__Native("ZendCompat")>>
  35. function ftp_close(mixed $ftp_stream): mixed;
  36. /* ftp_connect() opens an FTP connection to the specified host.
  37. */
  38. <<__Native("ZendCompat")>>
  39. function ftp_connect(mixed $host,
  40. mixed $port,
  41. mixed $timeout): mixed;
  42. /* ftp_delete() deletes the file specified by path from the FTP server.
  43. */
  44. <<__Native("ZendCompat")>>
  45. function ftp_delete(mixed $ftp_stream,
  46. mixed $path): mixed;
  47. /* Sends a SITE EXEC command request to the FTP server.
  48. */
  49. <<__Native("ZendCompat")>>
  50. function ftp_exec(mixed $ftp_stream,
  51. mixed $command): mixed;
  52. /* ftp_fget() retrieves remote_file from the FTP server, and writes it to the
  53. * given file pointer.
  54. */
  55. <<__Native("ZendCompat")>>
  56. function ftp_fget(mixed $ftp_stream,
  57. mixed $handle,
  58. mixed $remote_file,
  59. mixed $mode,
  60. mixed $resumepos): mixed;
  61. /* ftp_fput() uploads the data from a file pointer to a remote file on the FTP
  62. * server.
  63. */
  64. <<__Native("ZendCompat")>>
  65. function ftp_fput(mixed $ftp_stream,
  66. mixed $remote_file,
  67. mixed $handle,
  68. mixed $mode,
  69. mixed $startpos): mixed;
  70. /* This function returns the value for the requested option from the specified
  71. * FTP connection.
  72. */
  73. <<__Native("ZendCompat")>>
  74. function ftp_get_option(mixed $ftp_stream,
  75. mixed $option): mixed;
  76. /* ftp_get() retrieves a remote file from the FTP server, and saves it into a
  77. * local file.
  78. */
  79. <<__Native("ZendCompat")>>
  80. function ftp_get(mixed $ftp_stream,
  81. mixed $local_file,
  82. mixed $remote_file,
  83. mixed $mode,
  84. mixed $resumepos): mixed;
  85. /* Logs in to the given FTP stream.
  86. */
  87. <<__Native("ZendCompat")>>
  88. function ftp_login(mixed $ftp_stream,
  89. mixed $username,
  90. mixed $password): mixed;
  91. /* ftp_mdtm() gets the last modified time for a remote file. Not all servers
  92. * support this feature! ftp_mdtm() does not work with directories.
  93. */
  94. <<__Native("ZendCompat")>>
  95. function ftp_mdtm(mixed $ftp_stream,
  96. mixed $remote_file): mixed;
  97. /* Creates the specified directory on the FTP server.
  98. */
  99. <<__Native("ZendCompat")>>
  100. function ftp_mkdir(mixed $ftp_stream,
  101. mixed $directory): mixed;
  102. /* Continues retrieving/sending a file non-blocking.
  103. */
  104. <<__Native("ZendCompat")>>
  105. function ftp_nb_continue(mixed $ftp_stream): mixed;
  106. /* ftp_nb_fget() retrieves a remote file from the FTP server. The difference
  107. * between this function and ftp_fget() is that this function retrieves the
  108. * file asynchronously, so your program can perform other operations while the
  109. * file is being downloaded.
  110. */
  111. <<__Native("ZendCompat")>>
  112. function ftp_nb_fget(mixed $ftp_stream,
  113. mixed $handle,
  114. mixed $remote_file,
  115. mixed $mode,
  116. mixed $resumepos): mixed;
  117. /* ftp_nb_fput() uploads the data from a file pointer to a remote file on the
  118. * FTP server. The difference between this function and the ftp_fput() is
  119. * that this function uploads the file asynchronously, so your program can
  120. * perform other operations while the file is being uploaded.
  121. */
  122. <<__Native("ZendCompat")>>
  123. function ftp_nb_fput(mixed $ftp_stream,
  124. mixed $remote_file,
  125. mixed $handle,
  126. mixed $mode,
  127. mixed $startpos): mixed;
  128. /* ftp_nb_get() retrieves a remote file from the FTP server, and saves it into
  129. * a local file. The difference between this function and ftp_get() is that
  130. * this function retrieves the file asynchronously, so your program can
  131. * perform other operations while the file is being downloaded.
  132. */
  133. <<__Native("ZendCompat")>>
  134. function ftp_nb_get(mixed $ftp_stream,
  135. mixed $local_file,
  136. mixed $remote_file,
  137. mixed $mode,
  138. mixed $resumepos): mixed;
  139. /* ftp_nb_put() stores a local file on the FTP server. The difference between
  140. * this function and the ftp_put() is that this function uploads the file
  141. * asynchronously, so your program can perform other operations while the file
  142. * is being uploaded.
  143. */
  144. <<__Native("ZendCompat")>>
  145. function ftp_nb_put(mixed $ftp_stream,
  146. mixed $remote_file,
  147. mixed $local_file,
  148. mixed $mode,
  149. mixed $startpos): mixed;
  150. <<__Native("ZendCompat")>>
  151. function ftp_nlist(mixed $ftp_stream,
  152. mixed $directory): mixed;
  153. /* ftp_pasv() turns on or off passive mode. In passive mode, data connections
  154. * are initiated by the client, rather than by the server. It may be needed if
  155. * the client is behind firewall. Please note that ftp_pasv() can only be
  156. * called after a successfull login or otherwise it will fail.
  157. */
  158. <<__Native("ZendCompat")>>
  159. function ftp_pasv(mixed $ftp_stream,
  160. mixed $pasv): mixed;
  161. /* ftp_put() stores a local file on the FTP server.
  162. */
  163. <<__Native("ZendCompat")>>
  164. function ftp_put(mixed $ftp_stream,
  165. mixed $remote_file,
  166. mixed $local_file,
  167. mixed $mode,
  168. mixed $startpos): mixed;
  169. <<__Native("ZendCompat")>>
  170. function ftp_pwd(mixed $ftp_stream): mixed;
  171. <<__Native("ZendCompat")>>
  172. function ftp_quit(): mixed;
  173. /* Sends an arbitrary command to the FTP server.
  174. */
  175. <<__Native("ZendCompat")>>
  176. function ftp_raw(mixed $ftp_stream,
  177. mixed $command): mixed;
  178. /* ftp_rawlist() executes the FTP LIST command, and returns the result as an
  179. * array.
  180. */
  181. <<__Native("ZendCompat")>>
  182. function ftp_rawlist(mixed $ftp_stream,
  183. mixed $directory,
  184. mixed $recursive): mixed;
  185. /* ftp_rename() renames a file or a directory on the FTP server.
  186. */
  187. <<__Native("ZendCompat")>>
  188. function ftp_rename(mixed $ftp_stream,
  189. mixed $oldname,
  190. mixed $newname): mixed;
  191. /* Removes the specified directory on the FTP server.
  192. */
  193. <<__Native("ZendCompat")>>
  194. function ftp_rmdir(mixed $ftp_stream,
  195. mixed $directory): mixed;
  196. /* This function controls various runtime options for the specified FTP
  197. * stream.
  198. */
  199. <<__Native("ZendCompat")>>
  200. function ftp_set_option(mixed $ftp_stream,
  201. mixed $option,
  202. mixed $value): mixed;
  203. /* ftp_site() sends the given SITE command to the FTP server. SITE commands
  204. * are not standardized, and vary from server to server. They are useful for
  205. * handling such things as file permissions and group membership.
  206. */
  207. <<__Native("ZendCompat")>>
  208. function ftp_site(mixed $ftp_stream,
  209. mixed $command): mixed;
  210. /* ftp_size() returns the size of the given file in bytes. Not all servers
  211. * support this feature.
  212. */
  213. <<__Native("ZendCompat")>>
  214. function ftp_size(mixed $ftp_stream,
  215. mixed $remote_file): mixed;
  216. /* ftp_ssl_connect() opens an explicit SSL-FTP connection to the specified
  217. * host. Why this function may not exist ftp_ssl_connect() is only available
  218. * if both the ftp module and the OpenSSL support is built statically into
  219. * php, this means that on Windows this function will be undefined in the
  220. * official PHP builds. To make this function available on Windows you must
  221. * compile your own PHP binaries. ftp_ssl_connect() is not intended for use
  222. * with sFTP. To use sFTP with PHP, please see ssh2_sftp().
  223. */
  224. <<__Native("ZendCompat")>>
  225. function ftp_ssl_connect(mixed $host,
  226. mixed $port,
  227. mixed $timeout): mixed;
  228. /* Returns the system type identifier of the remote FTP server.
  229. */
  230. <<__Native("ZendCompat")>>
  231. function ftp_systype(mixed $ftp_stream): mixed;