Lines Matching refs:NULL
133 if (stream == NULL) { \
155 context->options = NULL; in ZEND_RSRC_DTOR_FUNC()
163 FG(user_stream_current_filename) = NULL; in file_globals_ctor()
165 FG(wrapper_errors) = NULL; in file_globals_ctor()
173 …STD_PHP_INI_ENTRY("user_agent", NULL, PHP_INI_ALL, OnUpdateString, user_agent, php_file_globals, f…
174 PHP_INI_ENTRY("from", NULL, PHP_INI_ALL, NULL)
181 …le_stream_context = zend_register_list_destructors_ex(file_context_dtor, NULL, "stream-context", m… in PHP_INI_END()
332 zval *arg1, *arg3 = NULL; in PHP_FUNCTION()
345 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal operation argument"); in PHP_FUNCTION()
378 char *name = NULL, *value = NULL, *temp = NULL; in PHP_FUNCTION()
396 NULL); in PHP_FUNCTION()
504 name = value = NULL; in PHP_FUNCTION()
518 md.token_data = NULL; in PHP_FUNCTION()
539 zval *zcontext = NULL; in PHP_FUNCTION()
540 php_stream_context *context = NULL; in PHP_FUNCTION()
552 php_error_docref(NULL TSRMLS_CC, E_WARNING, "length must be greater than or equal to zero"); in PHP_FUNCTION()
560 NULL, context); in PHP_FUNCTION()
566 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the stream", offset… in PHP_FUNCTION()
598 zval *zcontext = NULL; in PHP_FUNCTION()
599 php_stream_context *context = NULL; in PHP_FUNCTION()
600 php_stream *srcstream = NULL; in PHP_FUNCTION()
623 … php_error_docref(NULL TSRMLS_CC, E_WARNING, "Exclusive locks may only be set for regular files"); in PHP_FUNCTION()
631 …s & PHP_FILE_USE_INCLUDE_PATH) ? USE_PATH : 0) | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); in PHP_FUNCTION()
632 if (stream == NULL) { in PHP_FUNCTION()
638 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Exclusive locks are not supported for this stream"); in PHP_FUNCTION()
667 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only %d of %d bytes written, possibly out of free dis… in PHP_FUNCTION()
690 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to write %d bytes to %s", Z_STRLEN_PP(tmp), fi… in PHP_FUNCTION()
692 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only %d of %d bytes written, possibly out of free dis… in PHP_FUNCTION()
704 if (Z_OBJ_HT_P(data) != NULL) { in PHP_FUNCTION()
710 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only %d of %d bytes written, possibly out of free dis… in PHP_FUNCTION()
739 char *slashed, *target_buf=NULL, *p, *s, *e; in PHP_FUNCTION()
748 zval *zcontext = NULL; in PHP_FUNCTION()
749 php_stream_context *context = NULL; in PHP_FUNCTION()
761 php_error_docref(NULL TSRMLS_CC, E_WARNING, "'%ld' flag is not supported", flags); in PHP_FUNCTION()
771 …ename, "rb", (use_include_path ? USE_PATH : 0) | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); in PHP_FUNCTION()
865 if (PG(safe_mode) &&(!php_checkuid(dir, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { in PHP_FUNCTION()
873 php_basename(prefix, prefix_len, NULL, 0, &p, &p_len TSRMLS_CC); in PHP_FUNCTION()
915 zval *zcontext = NULL; in PHP_NAMED_FUNCTION()
917 php_stream_context *context = NULL; in PHP_NAMED_FUNCTION()
929 …ename, mode, (use_include_path ? USE_PATH : 0) | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); in PHP_NAMED_FUNCTION()
931 if (stream == NULL) { in PHP_NAMED_FUNCTION()
953 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid stream resource", stream->rsrc_id); in PHP_FUNCTION()
1002 b = NULL; in PHP_FUNCTION()
1017 php_error_docref2(NULL TSRMLS_CC, buf, posix_mode, E_WARNING, "%s", strerror(errno)); in PHP_FUNCTION()
1028 php_error_docref2(NULL TSRMLS_CC, command, posix_mode, E_WARNING, "%s", strerror(errno)); in PHP_FUNCTION()
1035 if (stream == NULL) { in PHP_FUNCTION()
1036 php_error_docref2(NULL TSRMLS_CC, command, mode, E_WARNING, "%s", strerror(errno)); in PHP_FUNCTION()
1091 char *buf = NULL; in PHP_FUNCTION()
1104 buf = php_stream_get_line(stream, NULL, 0, &line_len); in PHP_FUNCTION()
1105 if (buf == NULL) { in PHP_FUNCTION()
1110 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0"); in PHP_FUNCTION()
1115 if (php_stream_get_line(stream, buf, len, &line_len) == NULL) { in PHP_FUNCTION()
1177 char *buf = NULL, *retval; in PHP_FUNCTION()
1179 char *allowed_tags=NULL; in PHP_FUNCTION()
1190 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0"); in PHP_FUNCTION()
1200 if ((retval = php_stream_get_line(stream, buf, len, &actual_len)) == NULL) { in PHP_FUNCTION()
1201 if (buf != NULL) { in PHP_FUNCTION()
1218 zval ***args = NULL; in PHP_FUNCTION()
1240 buf = php_stream_get_line((php_stream *) what, NULL, 0, &len); in PHP_FUNCTION()
1241 if (buf == NULL) { in PHP_FUNCTION()
1271 char *buffer = NULL; in PHP_FUNCTION()
1394 if (PG(safe_mode) && (!php_checkuid(dir, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { in php_mkdir_ex()
1403 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno)); in php_mkdir_ex()
1421 zval *zcontext = NULL; in PHP_FUNCTION()
1446 zval *zcontext = NULL; in PHP_FUNCTION()
1471 zval *zcontext = NULL; in PHP_FUNCTION()
1473 php_stream_context *context = NULL; in PHP_FUNCTION()
1485 …ename, "rb", (use_include_path ? USE_PATH : 0) | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); in PHP_FUNCTION()
1548 zval *zcontext = NULL; in PHP_FUNCTION()
1564 wrapper = php_stream_locate_url_wrapper(old_name, NULL, 0 TSRMLS_CC); in PHP_FUNCTION()
1567 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate stream wrapper"); in PHP_FUNCTION()
1572 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s wrapper does not support renaming", wrapper->wops-… in PHP_FUNCTION()
1576 if (wrapper != php_stream_locate_url_wrapper(new_name, NULL, 0 TSRMLS_CC)) { in PHP_FUNCTION()
1577 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot rename a file across wrapper types"); in PHP_FUNCTION()
1594 zval *zcontext = NULL; in PHP_FUNCTION()
1595 php_stream_context *context = NULL; in PHP_FUNCTION()
1607 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0 TSRMLS_CC); in PHP_FUNCTION()
1610 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate stream wrapper"); in PHP_FUNCTION()
1615 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s does not allow unlinking", wrapper->wops->label ? … in PHP_FUNCTION()
1637 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't truncate this stream!"); in PHP_NAMED_FUNCTION()
1697 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_dev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1698 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_ino, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1699 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_mode, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1700 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_nlink, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1701 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_uid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1702 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_gid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1703 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_rdev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1704 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_size, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1705 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_atime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1706 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_mtime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1707 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_ctime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1708 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_blksize, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1709 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_blocks, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1712 …urn_value), stat_sb_names[0], strlen(stat_sb_names[0])+1, (void *)&stat_dev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1713 …urn_value), stat_sb_names[1], strlen(stat_sb_names[1])+1, (void *)&stat_ino, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1714 …rn_value), stat_sb_names[2], strlen(stat_sb_names[2])+1, (void *)&stat_mode, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1715 …n_value), stat_sb_names[3], strlen(stat_sb_names[3])+1, (void *)&stat_nlink, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1716 …urn_value), stat_sb_names[4], strlen(stat_sb_names[4])+1, (void *)&stat_uid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1717 …urn_value), stat_sb_names[5], strlen(stat_sb_names[5])+1, (void *)&stat_gid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1718 …rn_value), stat_sb_names[6], strlen(stat_sb_names[6])+1, (void *)&stat_rdev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1719 …rn_value), stat_sb_names[7], strlen(stat_sb_names[7])+1, (void *)&stat_size, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1720 …n_value), stat_sb_names[8], strlen(stat_sb_names[8])+1, (void *)&stat_atime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1721 …n_value), stat_sb_names[9], strlen(stat_sb_names[9])+1, (void *)&stat_mtime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1722 …value), stat_sb_names[10], strlen(stat_sb_names[10])+1, (void *)&stat_ctime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1723 …lue), stat_sb_names[11], strlen(stat_sb_names[11])+1, (void *)&stat_blksize, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1724 …alue), stat_sb_names[12], strlen(stat_sb_names[12])+1, (void *)&stat_blocks, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1734 zval *zcontext = NULL; in PHP_FUNCTION()
1749 if (PG(safe_mode) &&(!php_checkuid(source, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { in PHP_FUNCTION()
1771 return php_copy_file_ctx(src, dest, ENFORCE_SAFE_MODE, NULL TSRMLS_CC); in php_copy_file()
1779 return php_copy_file_ctx(src, dest, ENFORCE_SAFE_MODE, NULL TSRMLS_CC); in php_copy_file_ex()
1787 php_stream *srcstream = NULL, *deststream = NULL; in php_copy_file_ctx()
1802 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "The first argument to copy() function cannot be a dir… in php_copy_file_ctx()
1817 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "The second argument to copy() function cannot be a di… in php_copy_file_ctx()
1833 if ((sp = expand_filepath(src, NULL TSRMLS_CC)) == NULL) { in php_copy_file_ctx()
1836 if ((dp = expand_filepath(dest, NULL TSRMLS_CC)) == NULL) { in php_copy_file_ctx()
1856 srcstream = php_stream_open_wrapper_ex(src, "rb", src_chk | REPORT_ERRORS, NULL, context); in php_copy_file_ctx()
1862 …deststream = php_stream_open_wrapper_ex(dest, "wb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, conte… in php_copy_file_ctx()
1865 ret = php_stream_copy_to_stream_ex(srcstream, deststream, PHP_STREAM_COPY_ALL, NULL); in php_copy_file_ctx()
1892 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0"); in PHP_FUNCTION()
1921 php_mblen(NULL, 0); in php_fgetcsv_lookup_trailing_spaces()
1959 zval *fp = NULL, *fields = NULL, **field_tmp = NULL, field; in PHP_FUNCTION()
1960 char *delimiter_str = NULL, *enclosure_str = NULL; in PHP_FUNCTION()
1972 if (delimiter_str != NULL) { in PHP_FUNCTION()
1975 php_error_docref(NULL TSRMLS_CC, E_WARNING, "delimiter must be a character"); in PHP_FUNCTION()
1978 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "delimiter must be a single character"); in PHP_FUNCTION()
1985 if (enclosure_str != NULL) { in PHP_FUNCTION()
1987 php_error_docref(NULL TSRMLS_CC, E_WARNING, "enclosure must be a character"); in PHP_FUNCTION()
1990 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "enclosure must be a single character"); in PHP_FUNCTION()
2083 zval *fd, **len_zv = NULL; in PHP_FUNCTION()
2084 char *delimiter_str = NULL; in PHP_FUNCTION()
2086 char *enclosure_str = NULL; in PHP_FUNCTION()
2088 char *escape_str = NULL; in PHP_FUNCTION()
2099 if (delimiter_str != NULL) { in PHP_FUNCTION()
2102 php_error_docref(NULL TSRMLS_CC, E_WARNING, "delimiter must be a character"); in PHP_FUNCTION()
2105 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "delimiter must be a single character"); in PHP_FUNCTION()
2112 if (enclosure_str != NULL) { in PHP_FUNCTION()
2114 php_error_docref(NULL TSRMLS_CC, E_WARNING, "enclosure must be a character"); in PHP_FUNCTION()
2117 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "enclosure must be a single character"); in PHP_FUNCTION()
2124 if (escape_str != NULL) { in PHP_FUNCTION()
2126 php_error_docref(NULL TSRMLS_CC, E_WARNING, "escape must be character"); in PHP_FUNCTION()
2129 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "escape must be a single character"); in PHP_FUNCTION()
2135 if (len_zv != NULL && Z_TYPE_PP(len_zv) != IS_NULL) { in PHP_FUNCTION()
2139 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter may not be negative"); in PHP_FUNCTION()
2152 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
2157 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
2175 php_mblen(NULL, 0); in php_fgetcsv()
2255 if (stream == NULL) { in php_fgetcsv()
2257 } else if ((new_buf = php_stream_get_line(stream, NULL, 0, &new_len)) == NULL) { in php_fgetcsv()
2289 php_mblen(NULL, 0); in php_fgetcsv()
2357 php_mblen(NULL, 0); in php_fgetcsv()
2388 php_mblen(NULL, 0); in php_fgetcsv()
2442 if (PG(safe_mode) && (!php_checkuid(resolved_path_buff, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { in PHP_FUNCTION()
2592 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Filename exceeds the maximum allowed length of %d cha… in PHP_FUNCTION()
2596 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Pattern exceeds the maximum allowed length of %d char… in PHP_FUNCTION()