Lines Matching refs:NULL

139 			0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE);  in ftp_open()
151 php_error_docref(NULL, E_WARNING, "getsockname failed: %s (%d)", strerror(errno), errno); in ftp_open()
166 return NULL; in ftp_open()
175 if (ftp == NULL) { in ftp_close()
176 return NULL; in ftp_close()
195 return NULL; in ftp_close()
204 if (ftp == NULL) { in ftp_gc()
209 ftp->pwd = NULL; in ftp_gc()
213 ftp->syst = NULL; in ftp_gc()
223 if (ftp == NULL) { in ftp_quit()
227 if (!ftp_putcmd(ftp, "QUIT", NULL)) { in ftp_quit()
236 ftp->pwd = NULL; in ftp_quit()
249 SSL_CTX *ctx = NULL; in ftp_login()
254 if (ftp == NULL) { in ftp_login()
284 if (ctx == NULL) { in ftp_login()
285 php_error_docref(NULL, E_WARNING, "failed to create the SSL context"); in ftp_login()
298 if (ftp->ssl_handle == NULL) { in ftp_login()
299 php_error_docref(NULL, E_WARNING, "failed to create the SSL handle"); in ftp_login()
337 php_error_docref(NULL, E_WARNING, "SSL/TLS handshake failed"); in ftp_login()
396 if (ftp == NULL) { in ftp_reinit()
404 if (!ftp_putcmd(ftp, "REIN", NULL)) { in ftp_reinit()
422 if (ftp == NULL) { in ftp_syst()
423 return NULL; in ftp_syst()
430 if (!ftp_putcmd(ftp, "SYST", NULL)) { in ftp_syst()
431 return NULL; in ftp_syst()
434 return NULL; in ftp_syst()
458 if (ftp == NULL) { in ftp_pwd()
459 return NULL; in ftp_pwd()
466 if (!ftp_putcmd(ftp, "PWD", NULL)) { in ftp_pwd()
467 return NULL; in ftp_pwd()
470 return NULL; in ftp_pwd()
473 if ((pwd = strchr(ftp->inbuf, '"')) == NULL) { in ftp_pwd()
474 return NULL; in ftp_pwd()
476 if ((end = strrchr(++pwd, '"')) == NULL) { in ftp_pwd()
477 return NULL; in ftp_pwd()
490 if (ftp == NULL) { in ftp_exec()
509 if (ftp == NULL || cmd == NULL) { in ftp_raw()
512 if (!ftp_putcmd(ftp, cmd, NULL)) { in ftp_raw()
530 if (ftp == NULL) { in ftp_chdir()
536 ftp->pwd = NULL; in ftp_chdir()
554 if (ftp == NULL) { in ftp_cdup()
560 ftp->pwd = NULL; in ftp_cdup()
563 if (!ftp_putcmd(ftp, "CDUP", NULL)) { in ftp_cdup()
581 if (ftp == NULL) { in ftp_mkdir()
582 return NULL; in ftp_mkdir()
585 return NULL; in ftp_mkdir()
588 return NULL; in ftp_mkdir()
591 if ((mkd = strchr(ftp->inbuf, '"')) == NULL) { in ftp_mkdir()
594 if ((end = strrchr(++mkd, '"')) == NULL) { in ftp_mkdir()
595 return NULL; in ftp_mkdir()
610 if (ftp == NULL) { in ftp_rmdir()
630 if (ftp == NULL || filename_len <= 0) { in ftp_chmod()
658 if (ftp == NULL || size <= 0) { in ftp_alloc()
709 if (ftp == NULL) { in ftp_type()
746 if (ftp == NULL) { in ftp_pasv()
770 if (!ftp_putcmd(ftp, "EPSV", NULL)) { in ftp_pasv()
801 if (!ftp_putcmd(ftp, "PASV", NULL)) { in ftp_pasv()
833 databuf_t *data = NULL; in ftp_get()
837 if (ftp == NULL) { in ftp_get()
844 if ((data = ftp_getdata(ftp)) == NULL) { in ftp_get()
867 if ((data = data_accept(data, ftp)) == NULL) { in ftp_get()
925 databuf_t *data = NULL; in ftp_put()
931 if (ftp == NULL) { in ftp_put()
937 if ((data = ftp_getdata(ftp)) == NULL) { in ftp_put()
958 if ((data = data_accept(data, ftp)) == NULL) { in ftp_put()
1003 if (ftp == NULL) { in ftp_size()
1030 if (ftp == NULL) { in ftp_mdtm()
1050 stamp = time(NULL); in ftp_mdtm()
1072 if (ftp == NULL) { in ftp_delete()
1091 if (ftp == NULL) { in ftp_rename()
1115 if (ftp == NULL) { in ftp_site()
1163 ftp->extra = NULL; in ftp_putcmd()
1201 ftp->extra = NULL; in ftp_readline()
1208 ftp->extra = NULL; in ftp_readline()
1229 if (ftp == NULL) { in ftp_getresp()
1272 SSL *handle = NULL; in my_send()
1334 php_error_docref(NULL, E_WARNING, "SSL write failed"); in my_send()
1365 SSL *handle = NULL; in my_recv()
1423 php_error_docref(NULL, E_WARNING, "SSL read failed"); in my_recv()
1528 return NULL; in ftp_getdata()
1539 php_error_docref(NULL, E_WARNING, "socket() failed: %s (%d)", strerror(errno), errno); in ftp_getdata()
1554 php_error_docref(NULL, E_WARNING, "php_connect_nonb() failed: %s (%d)", strerror(errno), errno); in ftp_getdata()
1572 php_error_docref(NULL, E_WARNING, "bind() failed: %s (%d)", strerror(errno), errno); in ftp_getdata()
1577 php_error_docref(NULL, E_WARNING, "getsockname() failed: %s (%d)", strerror(errno), errno); in ftp_getdata()
1582 php_error_docref(NULL, E_WARNING, "listen() failed: %s (%d)", strerror(errno), errno); in ftp_getdata()
1629 return NULL; in ftp_getdata()
1658 return NULL; in data_accept()
1667 if (ctx == NULL) { in data_accept()
1668 php_error_docref(NULL, E_WARNING, "data_accept: failed to retreive the existing SSL context"); in data_accept()
1673 if (data->ssl_handle == NULL) { in data_accept()
1674 php_error_docref(NULL, E_WARNING, "data_accept: failed to create the SSL handle"); in data_accept()
1686 if (session == NULL) { in data_accept()
1687 php_error_docref(NULL, E_WARNING, "data_accept: failed to retreive the existing SSL session"); in data_accept()
1695 php_error_docref(NULL, E_WARNING, "data_accept: failed to set the existing SSL session"); in data_accept()
1730 php_error_docref(NULL, E_WARNING, "data_accept: SSL/TLS handshake failed"); in data_accept()
1754 if (data == NULL) { in data_close()
1755 return NULL; in data_close()
1780 ftp->data = NULL; in data_close()
1783 return NULL; in data_close()
1792 php_stream *tmpstream = NULL; in ftp_genlist()
1793 databuf_t *data = NULL; in ftp_genlist()
1798 char **ret = NULL; in ftp_genlist()
1803 if ((tmpstream = php_stream_fopen_tmpfile()) == NULL) { in ftp_genlist()
1804 …php_error_docref(NULL, E_WARNING, "Unable to create temporary file. Check permissions in temporar… in ftp_genlist()
1805 return NULL; in ftp_genlist()
1812 if ((data = ftp_getdata(ftp)) == NULL) { in ftp_genlist()
1832 if ((data = data_accept(data, ftp)) == NULL) { in ftp_genlist()
1873 *entry = NULL; in ftp_genlist()
1879 return NULL; in ftp_genlist()
1888 return NULL; in ftp_genlist()
1897 databuf_t *data = NULL; in ftp_nb_get()
1900 if (ftp == NULL) { in ftp_nb_get()
1908 if ((data = ftp_getdata(ftp)) == NULL) { in ftp_nb_get()
1929 if ((data = data_accept(data, ftp)) == NULL) { in ftp_nb_get()
1951 databuf_t *data = NULL; in ftp_nb_continue_read()
2014 databuf_t *data = NULL; in ftp_nb_put()
2017 if (ftp == NULL) { in ftp_nb_put()
2023 if ((data = ftp_getdata(ftp)) == NULL) { in ftp_nb_put()
2042 if ((data = data_accept(data, ftp)) == NULL) { in ftp_nb_put()