Lines Matching refs:NULL

132 	if (stream == NULL) {	\
154 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 …STD_PHP_INI_ENTRY("from", NULL, PHP_INI_ALL, OnUpdateString, from_address, php_file_globals, file_…
181 …le_stream_context = zend_register_list_destructors_ex(file_context_dtor, NULL, "stream-context", m… in PHP_INI_END()
334 zval *arg1, *arg3 = NULL; in PHP_FUNCTION()
347 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal operation argument"); in PHP_FUNCTION()
380 char *name = NULL, *value = NULL, *temp = NULL; in PHP_FUNCTION()
394 NULL); in PHP_FUNCTION()
490 name = value = NULL; in PHP_FUNCTION()
504 md.token_data = NULL; in PHP_FUNCTION()
525 zval *zcontext = NULL; in PHP_FUNCTION()
526 php_stream_context *context = NULL; in PHP_FUNCTION()
534 php_error_docref(NULL TSRMLS_CC, E_WARNING, "length must be greater than or equal to zero"); in PHP_FUNCTION()
542 NULL, context); in PHP_FUNCTION()
548 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the stream", offset… in PHP_FUNCTION()
555 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "content truncated from %ld to %d bytes", len, INT_MAX… in PHP_FUNCTION()
579 zval *zcontext = NULL; in PHP_FUNCTION()
580 php_stream_context *context = NULL; in PHP_FUNCTION()
581 php_stream *srcstream = NULL; in PHP_FUNCTION()
600 … php_error_docref(NULL TSRMLS_CC, E_WARNING, "Exclusive locks may only be set for regular files"); in PHP_FUNCTION()
608 …lename, mode, ((flags & PHP_FILE_USE_INCLUDE_PATH) ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); in PHP_FUNCTION()
609 if (stream == NULL) { in PHP_FUNCTION()
615 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Exclusive locks are not supported for this stream"); in PHP_FUNCTION()
630 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "content truncated from %lu to %ld bytes", (unsigned l… in PHP_FUNCTION()
648 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only %ld of %d bytes written, possibly out of free di… in PHP_FUNCTION()
671 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to write %d bytes to %s", Z_STRLEN_PP(tmp), fi… in PHP_FUNCTION()
673 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only %d of %d bytes written, possibly out of free dis… in PHP_FUNCTION()
685 if (Z_OBJ_HT_P(data) != NULL) { in PHP_FUNCTION()
691 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only %ld of %d bytes written, possibly out of free di… in PHP_FUNCTION()
720 char *target_buf=NULL, *p, *s, *e; in PHP_FUNCTION()
729 zval *zcontext = NULL; in PHP_FUNCTION()
730 php_stream_context *context = NULL; in PHP_FUNCTION()
737 php_error_docref(NULL TSRMLS_CC, E_WARNING, "'%ld' flag is not supported", flags); in PHP_FUNCTION()
747 …_open_wrapper_ex(filename, "rb", (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); in PHP_FUNCTION()
825 php_basename(prefix, prefix_len, NULL, 0, &p, &p_len TSRMLS_CC); in PHP_FUNCTION()
867 zval *zcontext = NULL; in PHP_NAMED_FUNCTION()
869 php_stream_context *context = NULL; in PHP_NAMED_FUNCTION()
877 …_open_wrapper_ex(filename, mode, (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); in PHP_NAMED_FUNCTION()
879 if (stream == NULL) { in PHP_NAMED_FUNCTION()
901 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%d is not a valid stream resource", stream->rsrc_id); in PHP_FUNCTION()
941 php_error_docref2(NULL TSRMLS_CC, command, posix_mode, E_WARNING, "%s", strerror(errno)); in PHP_FUNCTION()
948 if (stream == NULL) { in PHP_FUNCTION()
949 php_error_docref2(NULL TSRMLS_CC, command, mode, E_WARNING, "%s", strerror(errno)); in PHP_FUNCTION()
1006 char *buf = NULL; in PHP_FUNCTION()
1019 buf = php_stream_get_line(stream, NULL, 0, &line_len); in PHP_FUNCTION()
1020 if (buf == NULL) { in PHP_FUNCTION()
1025 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0"); in PHP_FUNCTION()
1030 if (php_stream_get_line(stream, buf, len, &line_len) == NULL) { in PHP_FUNCTION()
1087 char *buf = NULL, *retval; in PHP_FUNCTION()
1089 char *allowed_tags=NULL; in PHP_FUNCTION()
1100 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0"); in PHP_FUNCTION()
1110 if ((retval = php_stream_get_line(stream, buf, len, &actual_len)) == NULL) { in PHP_FUNCTION()
1111 if (buf != NULL) { in PHP_FUNCTION()
1128 zval ***args = NULL; in PHP_FUNCTION()
1150 buf = php_stream_get_line((php_stream *) what, NULL, 0, &len); in PHP_FUNCTION()
1151 if (buf == NULL) { in PHP_FUNCTION()
1181 char *buffer = NULL; in PHP_FUNCTION()
1304 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno)); in php_mkdir_ex()
1322 zval *zcontext = NULL; in PHP_FUNCTION()
1343 zval *zcontext = NULL; in PHP_FUNCTION()
1364 zval *zcontext = NULL; in PHP_FUNCTION()
1366 php_stream_context *context = NULL; in PHP_FUNCTION()
1374 …_open_wrapper_ex(filename, "rb", (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); in PHP_FUNCTION()
1437 zval *zcontext = NULL; in PHP_FUNCTION()
1445 wrapper = php_stream_locate_url_wrapper(old_name, NULL, 0 TSRMLS_CC); in PHP_FUNCTION()
1448 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate stream wrapper"); in PHP_FUNCTION()
1453 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s wrapper does not support renaming", wrapper->wops-… in PHP_FUNCTION()
1457 if (wrapper != php_stream_locate_url_wrapper(new_name, NULL, 0 TSRMLS_CC)) { in PHP_FUNCTION()
1458 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot rename a file across wrapper types"); in PHP_FUNCTION()
1475 zval *zcontext = NULL; in PHP_FUNCTION()
1476 php_stream_context *context = NULL; in PHP_FUNCTION()
1484 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0 TSRMLS_CC); in PHP_FUNCTION()
1487 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to locate stream wrapper"); in PHP_FUNCTION()
1492 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s does not allow unlinking", wrapper->wops->label ? … in PHP_FUNCTION()
1514 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't truncate this stream!"); in PHP_NAMED_FUNCTION()
1574 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_dev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1575 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_ino, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1576 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_mode, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1577 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_nlink, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1578 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_uid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1579 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_gid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1580 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_rdev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1581 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_size, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1582 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_atime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1583 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_mtime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1584 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_ctime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1585 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_blksize, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1586 zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_blocks, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1589 …urn_value), stat_sb_names[0], strlen(stat_sb_names[0])+1, (void *)&stat_dev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1590 …urn_value), stat_sb_names[1], strlen(stat_sb_names[1])+1, (void *)&stat_ino, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1591 …rn_value), stat_sb_names[2], strlen(stat_sb_names[2])+1, (void *)&stat_mode, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1592 …n_value), stat_sb_names[3], strlen(stat_sb_names[3])+1, (void *)&stat_nlink, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1593 …urn_value), stat_sb_names[4], strlen(stat_sb_names[4])+1, (void *)&stat_uid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1594 …urn_value), stat_sb_names[5], strlen(stat_sb_names[5])+1, (void *)&stat_gid, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1595 …rn_value), stat_sb_names[6], strlen(stat_sb_names[6])+1, (void *)&stat_rdev, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1596 …rn_value), stat_sb_names[7], strlen(stat_sb_names[7])+1, (void *)&stat_size, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1597 …n_value), stat_sb_names[8], strlen(stat_sb_names[8])+1, (void *)&stat_atime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1598 …n_value), stat_sb_names[9], strlen(stat_sb_names[9])+1, (void *)&stat_mtime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1599 …value), stat_sb_names[10], strlen(stat_sb_names[10])+1, (void *)&stat_ctime, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1600 …lue), stat_sb_names[11], strlen(stat_sb_names[11])+1, (void *)&stat_blksize, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1601 …alue), stat_sb_names[12], strlen(stat_sb_names[12])+1, (void *)&stat_blocks, sizeof(zval *), NULL); in PHP_NAMED_FUNCTION()
1611 zval *zcontext = NULL; in PHP_FUNCTION()
1636 return php_copy_file_ctx(src, dest, 0, NULL TSRMLS_CC); in php_copy_file()
1644 return php_copy_file_ctx(src, dest, 0, NULL TSRMLS_CC); in php_copy_file_ex()
1652 php_stream *srcstream = NULL, *deststream = NULL; in php_copy_file_ctx()
1667 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "The first argument to copy() function cannot be a dir… in php_copy_file_ctx()
1682 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "The second argument to copy() function cannot be a di… in php_copy_file_ctx()
1698 if ((sp = expand_filepath(src, NULL TSRMLS_CC)) == NULL) { in php_copy_file_ctx()
1701 if ((dp = expand_filepath(dest, NULL TSRMLS_CC)) == NULL) { in php_copy_file_ctx()
1721 srcstream = php_stream_open_wrapper_ex(src, "rb", src_flg | REPORT_ERRORS, NULL, ctx); in php_copy_file_ctx()
1727 deststream = php_stream_open_wrapper_ex(dest, "wb", REPORT_ERRORS, NULL, ctx); in php_copy_file_ctx()
1730 ret = php_stream_copy_to_stream_ex(srcstream, deststream, PHP_STREAM_COPY_ALL, NULL); in php_copy_file_ctx()
1757 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0"); in PHP_FUNCTION()
1763 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be no more than %d", INT_MAX); in PHP_FUNCTION()
1787 php_ignore_value(php_mblen(NULL, 0)); in php_fgetcsv_lookup_trailing_spaces()
1824 zval *fp = NULL, *fields = NULL; in PHP_FUNCTION()
1826 char *delimiter_str = NULL, *enclosure_str = NULL, *escape_str = NULL; in PHP_FUNCTION()
1836 if (delimiter_str != NULL) { in PHP_FUNCTION()
1839 php_error_docref(NULL TSRMLS_CC, E_WARNING, "delimiter must be a character"); in PHP_FUNCTION()
1842 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "delimiter must be a single character"); in PHP_FUNCTION()
1849 if (enclosure_str != NULL) { in PHP_FUNCTION()
1851 php_error_docref(NULL TSRMLS_CC, E_WARNING, "enclosure must be a character"); in PHP_FUNCTION()
1854 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "enclosure must be a single character"); in PHP_FUNCTION()
1860 if (escape_str != NULL) { in PHP_FUNCTION()
1862 php_error_docref(NULL TSRMLS_CC, E_WARNING, "escape must be a character"); in PHP_FUNCTION()
1865 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "escape must be a single character"); in PHP_FUNCTION()
1882 zval **field_tmp = NULL, field; in php_fputcsv()
1963 zval *fd, **len_zv = NULL; in PHP_FUNCTION()
1964 char *delimiter_str = NULL; in PHP_FUNCTION()
1966 char *enclosure_str = NULL; in PHP_FUNCTION()
1968 char *escape_str = NULL; in PHP_FUNCTION()
1979 if (delimiter_str != NULL) { in PHP_FUNCTION()
1982 php_error_docref(NULL TSRMLS_CC, E_WARNING, "delimiter must be a character"); in PHP_FUNCTION()
1985 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "delimiter must be a single character"); in PHP_FUNCTION()
1992 if (enclosure_str != NULL) { in PHP_FUNCTION()
1994 php_error_docref(NULL TSRMLS_CC, E_WARNING, "enclosure must be a character"); in PHP_FUNCTION()
1997 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "enclosure must be a single character"); in PHP_FUNCTION()
2004 if (escape_str != NULL) { in PHP_FUNCTION()
2006 php_error_docref(NULL TSRMLS_CC, E_WARNING, "escape must be character"); in PHP_FUNCTION()
2009 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "escape must be a single character"); in PHP_FUNCTION()
2015 if (len_zv != NULL && Z_TYPE_PP(len_zv) != IS_NULL) { in PHP_FUNCTION()
2019 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter may not be negative"); in PHP_FUNCTION()
2032 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
2037 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
2055 php_ignore_value(php_mblen(NULL, 0)); in php_fgetcsv()
2136 if (stream == NULL) { in php_fgetcsv()
2138 } else if ((new_buf = php_stream_get_line(stream, NULL, 0, &new_len)) == NULL) { in php_fgetcsv()
2170 php_ignore_value(php_mblen(NULL, 0)); in php_fgetcsv()
2238 php_ignore_value(php_mblen(NULL, 0)); in php_fgetcsv()
2269 php_ignore_value(php_mblen(NULL, 0)); in php_fgetcsv()
2457 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Filename exceeds the maximum allowed length of %d cha… in PHP_FUNCTION()
2461 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Pattern exceeds the maximum allowed length of %d char… in PHP_FUNCTION()