Lines Matching refs:NULL

174 	self->file = NULL;  in _php_stream_fopen_from_fd_int()
178 self->temp_name = NULL; in _php_stream_fopen_from_fd_int()
197 self->temp_name = NULL; in _php_stream_fopen_from_file_int()
208 zend_string *opened_path = NULL; in _php_stream_fopen_temporary_file()
219 stream = php_stream_fopen_from_fd_int_rel(fd, "r+b", NULL); in _php_stream_fopen_temporary_file()
232 php_error_docref(NULL, E_WARNING, "unable to allocate stream"); in _php_stream_fopen_temporary_file()
234 return NULL; in _php_stream_fopen_temporary_file()
236 return NULL; in _php_stream_fopen_temporary_file()
241 return php_stream_fopen_temporary_file(NULL, "php", NULL); in _php_stream_fopen_tmpfile()
327 self->temp_name = NULL; in _php_stream_fopen_from_pipe()
341 assert(data != NULL); in php_stdiop_write()
373 assert(data != NULL); in php_stdiop_read()
388 if (!PeekNamedPipe(ph, NULL, 0, NULL, &avail_read, NULL)) { in php_stdiop_read()
434 assert(data != NULL); in php_stdiop_close()
439 data->last_mapped_addr = NULL; in php_stdiop_close()
444 data->last_mapped_addr = NULL; in php_stdiop_close()
448 data->file_mapping = NULL; in php_stdiop_close()
465 data->file = NULL; in php_stdiop_close()
477 data->temp_name = NULL; in php_stdiop_close()
481 data->file = NULL; in php_stdiop_close()
494 assert(data != NULL); in php_stdiop_flush()
512 assert(data != NULL); in php_stdiop_seek()
515 php_error_docref(NULL, E_WARNING, "cannot seek on a pipe"); in php_stdiop_seek()
541 assert(data != NULL); in php_stdiop_cast()
550 if (data->file == NULL) { in php_stdiop_cast()
556 if (data->file == NULL) { in php_stdiop_cast()
599 assert(data != NULL); in php_stdiop_stat()
641 if (data->file == NULL) { in php_stdiop_set_option()
652 return setvbuf(data->file, NULL, _IONBF, 0); in php_stdiop_set_option()
655 return setvbuf(data->file, NULL, _IOLBF, size); in php_stdiop_set_option()
658 return setvbuf(data->file, NULL, _IOFBF, size); in php_stdiop_set_option()
726 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
728 range->mapped = NULL; in php_stdiop_set_option()
739 data->last_mapped_addr = NULL; in php_stdiop_set_option()
781 data->file_mapping = CreateFileMapping(hfile, NULL, prot, 0, 0, NULL); in php_stdiop_set_option()
783 if (data->file_mapping == NULL) { in php_stdiop_set_option()
787 size = GetFileSize(hfile, NULL); in php_stdiop_set_option()
819 data->file_mapping = NULL; in php_stdiop_set_option()
826 data->last_mapped_addr = NULL; in php_stdiop_set_option()
828 data->file_mapping = NULL; in php_stdiop_set_option()
921 NULL, php_plain_files_dirstream_read,
922 php_plain_files_dirstream_close, NULL,
925 NULL, /* cast */
926 NULL, /* stat */
927 NULL /* set_option */
933 DIR *dir = NULL; in php_plain_files_dir_opener()
934 php_stream *stream = NULL; in php_plain_files_dir_opener()
943 return NULL; in php_plain_files_dir_opener()
955 dir = NULL; in php_plain_files_dir_opener()
960 if (stream == NULL) in php_plain_files_dir_opener()
976 char *persistent_id = NULL; in _php_stream_fopen()
980 php_error_docref(NULL, E_WARNING, "`%s' is not a valid mode for fopen", mode); in _php_stream_fopen()
982 return NULL; in _php_stream_fopen()
988 if (expand_filepath(filename, realpath) == NULL) { in _php_stream_fopen()
989 return NULL; in _php_stream_fopen()
1040 *opened_path = NULL; in _php_stream_fopen()
1043 return NULL; in _php_stream_fopen()
1060 return NULL; in _php_stream_fopen()
1069 return NULL; in php_plain_files_stream_opener()
1114 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1120 php_clear_stat_cache(1, NULL, 0); in php_plain_files_unlink()
1168 php_error_docref2(NULL, url_from, url_to, E_WARNING, "%s", strerror(errno)); in php_plain_files_rename()
1172 php_error_docref2(NULL, url_from, url_to, E_WARNING, "%s", strerror(errno)); in php_plain_files_rename()
1177 php_error_docref2(NULL, url_from, url_to, E_WARNING, "%s", strerror(errno)); in php_plain_files_rename()
1181 php_error_docref2(NULL, url_from, url_to, E_WARNING, "%s", strerror(errno)); in php_plain_files_rename()
1189 php_error_docref2(NULL, url_from, url_to, E_WARNING, "%s", strerror(errno)); in php_plain_files_rename()
1198 php_error_docref2(NULL, url_from, url_to, E_WARNING, "%s", strerror(errno)); in php_plain_files_rename()
1204 php_clear_stat_cache(1, NULL, 0); in php_plain_files_rename()
1228 if (!expand_filepath_with_mode(dir, buf, NULL, 0, CWD_EXPAND )) { in php_plain_files_mkdir()
1229 php_error_docref(NULL, E_WARNING, "Invalid path"); in php_plain_files_mkdir()
1278 php_error_docref(NULL, E_WARNING, "%s", strerror(errno)); in php_plain_files_mkdir()
1307 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1313 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1318 php_clear_stat_cache(1, NULL, 0); in php_plain_files_rmdir()
1338 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1356 if (file == NULL) { in php_plain_files_metadata()
1357 …php_error_docref1(NULL, url, E_WARNING, "Unable to create file %s because %s", url, strerror(errno… in php_plain_files_metadata()
1370 php_error_docref1(NULL, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1382 php_error_docref1(NULL, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1396 php_error_docref1(NULL, url, E_WARNING, "Unknown option %d for stream_metadata", option); in php_plain_files_metadata()
1400 php_error_docref1(NULL, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()
1403 php_clear_stat_cache(0, NULL, 0); in php_plain_files_metadata()
1410 NULL,
1411 NULL,
1424 NULL,
1440 *opened_path = NULL; in _php_stream_fopen_with_path()
1444 return NULL; in _php_stream_fopen_with_path()
1465 return NULL; in _php_stream_fopen_with_path()
1477 return NULL; in _php_stream_fopen_with_path()
1492 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN); in _php_stream_fopen_with_path()
1498 return NULL; in _php_stream_fopen_with_path()
1514 (exec_filename = zend_get_executed_filename_ex()) != NULL) { in _php_stream_fopen_with_path()
1539 if (end != NULL) { in _php_stream_fopen_with_path()
1547 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN); in _php_stream_fopen_with_path()
1564 return NULL; in _php_stream_fopen_with_path()