Lines Matching refs:NULL

82 	stream->res = NULL;  in forget_persistent_resource_id_numbers()
86 stream->ctx = NULL; in forget_persistent_resource_id_numbers()
115 …le = zend_hash_str_find_ptr(&EG(persistent_list), persistent_id, strlen(persistent_id))) != NULL) { in php_stream_from_persistent_id()
118 zend_resource *regentry = NULL; in php_stream_from_persistent_id()
146 return NULL; in php_get_wrapper_errors_list()
216 php_error_docref1(NULL, tmp, E_WARNING, "%s: %s", caption, msg); in php_stream_display_wrapper_errors()
244 char *buffer = NULL; in php_stream_wrapper_log_error()
250 if (options & REPORT_ERRORS || wrapper == NULL) { in php_stream_wrapper_log_error()
251 php_error_docref(NULL, E_WARNING, "%s", buffer); in php_stream_wrapper_log_error()
254 zend_llist *list = NULL; in php_stream_wrapper_log_error()
257 zend_hash_init(FG(wrapper_errors), 8, NULL, wrapper_list_dtor, 0); in php_stream_wrapper_log_error()
308 …if (NULL == zend_register_persistent_resource(persistent_id, strlen(persistent_id), ret, le_pstrea… in _php_stream_alloc()
310 return NULL; in _php_stream_alloc()
317 ret->wrapper = NULL; in _php_stream_alloc()
318 ret->wrapperthis = NULL; in _php_stream_alloc()
320 ret->stdiocast = NULL; in _php_stream_alloc()
321 ret->orig_path = NULL; in _php_stream_alloc()
322 ret->ctx = NULL; in _php_stream_alloc()
323 ret->readbuf = NULL; in _php_stream_alloc()
324 ret->enclosing_stream = NULL; in _php_stream_alloc()
401 …= 1) && (close_options & PHP_STREAM_FREE_IGNORE_ENCLOSING) && (stream->enclosing_stream == NULL)) { in _php_stream_free()
415 (stream->enclosing_stream != NULL)) { in _php_stream_free()
417 stream->enclosing_stream = NULL; in _php_stream_free()
460 stream->res = NULL; in _php_stream_free()
478 stream->abstract = NULL; in _php_stream_free()
483 stream->stdiocast = NULL; in _php_stream_free()
490 if (stream->readfilters.head->res != NULL) { in _php_stream_free()
496 if (stream->writefilters.head->res != NULL) { in _php_stream_free()
504 stream->wrapper = NULL; in _php_stream_free()
514 stream->readbuf = NULL; in _php_stream_free()
524 stream->orig_path = NULL; in _php_stream_free()
547 php_stream_bucket_brigade brig_in = { NULL, NULL }, brig_out = { NULL, NULL }; in _php_stream_fill_read_buffer()
578 status = filter->fops->filter(stream, filter, brig_inp, brig_outp, NULL, flags); in _php_stream_fill_read_buffer()
769 return NULL; in php_stream_read_to_str()
791 0, NULL)) { in _php_stream_eof()
835 if (stream->wrapper && stream->wrapper->wops->stream_stat != NULL) { in _php_stream_stat()
843 if (stream->ops->stat == NULL) { in _php_stream_stat()
853 const char *cr, *lf, *eol = NULL; in php_stream_locate_eol()
901 if (buf == NULL) { in _php_stream_get_line()
904 return NULL; in _php_stream_get_line()
930 eol = php_stream_locate_eol(stream, NULL); in _php_stream_get_line()
993 assert(bufstart == NULL); in _php_stream_get_line()
995 return NULL; in _php_stream_get_line()
1020 return NULL; in _php_stream_search_delim()
1036 const char *found_delim = NULL; in php_stream_get_record()
1042 return NULL; in php_stream_get_record()
1098 return NULL; in php_stream_get_record()
1102 return NULL; in php_stream_get_record()
1169 php_stream_bucket_brigade brig_in = { NULL, NULL }, brig_out = { NULL, NULL }; in _php_stream_write_filtered()
1183 filter == stream->writefilters.head ? &consumed : NULL, flags); in _php_stream_write_filtered()
1234 …_php_stream_write_filtered(stream, NULL, 0, closing ? PSFS_FLAG_FLUSH_CLOSE : PSFS_FLAG_FLUSH_INC … in _php_stream_flush()
1254 ZEND_ASSERT(buf != NULL); in _php_stream_write()
1255 if (stream->ops->write == NULL) { in _php_stream_write()
1256 php_error_docref(NULL, E_NOTICE, "Stream is not writable"); in _php_stream_write()
1372 php_error_docref(NULL, E_WARNING, "stream does not support seeking"); in _php_stream_seek()
1495 result = NULL; in _php_stream_copy_to_mem()
1531 result = NULL; in _php_stream_copy_to_mem()
1697 FG(stream_wrappers) = NULL; in php_shutdown_stream_hashes()
1703 FG(stream_filters) = NULL; in php_shutdown_stream_hashes()
1709 FG(wrapper_errors) = NULL; in php_shutdown_stream_hashes()
1715 …le_stream = zend_register_list_destructors_ex(stream_resource_regular_dtor, NULL, "stream", module… in php_init_stream_wrappers()
1716 …le_pstream = zend_register_list_destructors_ex(NULL, stream_resource_persistent_dtor, "persistent … in php_init_stream_wrappers()
1719 le_stream_filter = zend_register_list_destructors_ex(NULL, NULL, "stream filter", module_number); in php_init_stream_wrappers()
1721 zend_hash_init(&url_stream_wrappers_hash, 8, NULL, NULL, 1); in php_init_stream_wrappers()
1722 zend_hash_init(php_get_stream_filters_hash_global(), 8, NULL, NULL, 1); in php_init_stream_wrappers()
1723 zend_hash_init(php_stream_xport_get_hash(), 8, NULL, NULL, 1); in php_init_stream_wrappers()
1789 …zend_hash_init(FG(stream_wrappers), zend_hash_num_elements(&url_stream_wrappers_hash), NULL, NULL,… in clone_wrapper_hash()
1790 zend_hash_copy(FG(stream_wrappers), &url_stream_wrappers_hash, NULL); in clone_wrapper_hash()
1821 php_stream_wrapper *wrapper = NULL;
1822 const char *p, *protocol = NULL;
1830 …return (php_stream_wrapper*)((options & STREAM_LOCATE_WRAPPERS_ONLY) ? NULL : &php_plain_files_wra…
1842 if (NULL == (wrapper = zend_hash_str_find_ptr(wrapper_hash, protocol, n))) {
1846 if (NULL == (wrapper = zend_hash_str_find_ptr(wrapper_hash, tmp, n))) {
1854 …php_error_docref(NULL, E_WARNING, "Unable to find the wrapper \"%s\" - did you forget to enable it…
1856 wrapper = NULL;
1857 protocol = NULL;
1880 php_error_docref(NULL, E_WARNING, "remote host file access not supported, %s", path);
1882 return NULL;
1902 return NULL;
1914 if ((wrapper = zend_hash_find_ex_ptr(wrapper_hash, ZSTR_KNOWN(ZEND_STR_FILE), 1)) != NULL) {
1919 php_error_docref(NULL, E_WARNING, "file:// wrapper is disabled in the server configuration");
1921 return NULL;
1935 …php_error_docref(NULL, E_WARNING, "%.*s:// wrapper is disabled in the server configuration by allo…
1937 …php_error_docref(NULL, E_WARNING, "%.*s:// wrapper is disabled in the server configuration by allo…
1940 return NULL;
1951 php_stream_wrapper *wrapper = NULL;
1953 wrapper = php_stream_locate_url_wrapper(path, NULL, 0);
1966 php_stream_wrapper *wrapper = NULL;
1968 wrapper = php_stream_locate_url_wrapper(path, NULL, 0);
1980 php_stream_wrapper *wrapper = NULL;
2032 php_stream *stream = NULL;
2033 php_stream_wrapper *wrapper = NULL;
2037 return NULL;
2046 path_to_open, "r", options ^ REPORT_ERRORS, NULL,
2056 if (stream == NULL && (options & REPORT_ERRORS)) {
2073 return NULL;
2081 php_stream *stream = NULL;
2082 php_stream_wrapper *wrapper = NULL;
2085 zend_string *resolved_path = NULL;
2086 char *copy_of_path = NULL;
2089 *opened_path = NULL;
2093 php_error_docref(NULL, E_WARNING, "Filename cannot be empty");
2094 return NULL;
2106 return NULL;
2114 php_error_docref(NULL, E_WARNING, "This function may only be used against URLs");
2118 return NULL;
2137 stream = NULL;
2148 resolved_path = NULL;
2161 if (stream != NULL && (options & STREAM_MUST_SEEK)) {
2183 stream = NULL;
2187 php_error_docref1(NULL, tmp, E_WARNING, "could not make seekable - %s",
2205 if (stream == NULL && (options & REPORT_ERRORS)) {
2209 *opened_path = NULL;
2214 if (stream == NULL && copy_of_path != NULL) {
2234 stream->ctx = NULL;
2258 context->notifier = NULL;
2268 context->notifier = NULL;
2293 …if (NULL == (wrapperhash = zend_hash_str_find(Z_ARRVAL(context->options), wrappername, strlen(wrap…
2294 return NULL;
2307 if (NULL == wrapperhash) {
2342 zend_string **vector = NULL;