Lines Matching refs:NULL

63 		php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to create sockets: [%d]: %s",  in PHP_FUNCTION()
90 zval *zerrno = NULL, *zerrstr = NULL, *zcontext = NULL; in PHP_FUNCTION()
94 char *hashkey = NULL; in PHP_FUNCTION()
95 php_stream *stream = NULL; in PHP_FUNCTION()
98 char *errstr = NULL; in PHP_FUNCTION()
99 php_stream_context *context = NULL; in PHP_FUNCTION()
137 if (stream == NULL) { in PHP_FUNCTION()
139 char *quoted_host = php_addslashes(host, host_len, NULL, 0 TSRMLS_CC); in PHP_FUNCTION()
141 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s (%s)", quoted_host, errstr ==… in PHP_FUNCTION()
149 if (stream == NULL) { in PHP_FUNCTION()
179 zval *zerrno = NULL, *zerrstr = NULL, *zcontext = NULL; in PHP_FUNCTION()
180 php_stream *stream = NULL; in PHP_FUNCTION()
183 char *errstr = NULL; in PHP_FUNCTION()
184 php_stream_context *context = NULL; in PHP_FUNCTION()
209 NULL, NULL, context, &errstr, &err); in PHP_FUNCTION()
211 if (stream == NULL) { in PHP_FUNCTION()
212 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s (%s)", host, errstr == NULL ?… in PHP_FUNCTION()
215 if (stream == NULL) { in PHP_FUNCTION()
243 zval *zpeername = NULL; in PHP_FUNCTION()
244 char *peername = NULL; in PHP_FUNCTION()
248 php_stream *stream = NULL, *clistream = NULL; in PHP_FUNCTION()
251 char *errstr = NULL; in PHP_FUNCTION()
274 zpeername ? &peername : NULL, in PHP_FUNCTION()
275 zpeername ? &peername_len : NULL, in PHP_FUNCTION()
276 NULL, NULL, in PHP_FUNCTION()
285 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "accept failed: %s", errstr ? errstr : "Unknown error"… in PHP_FUNCTION()
302 char *name = NULL; in PHP_FUNCTION()
314 NULL, NULL in PHP_FUNCTION()
330 char *data, *target_addr = NULL; in PHP_FUNCTION()
343 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to parse `%s' into a valid network address", t… in PHP_FUNCTION()
348 …RETURN_LONG(php_stream_xport_sendto(stream, data, datalen, flags, target_addr ? &sa : NULL, sl TSR… in PHP_FUNCTION()
357 zval *zstream, *zremote = NULL; in PHP_FUNCTION()
358 char *remote_addr = NULL; in PHP_FUNCTION()
377 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0"); in PHP_FUNCTION()
383 recvd = php_stream_xport_recvfrom(stream, read_buf, to_read, flags, NULL, NULL, in PHP_FUNCTION()
384 zremote ? &remote_addr : NULL, in PHP_FUNCTION()
385 zremote ? &remote_addr_len : NULL in PHP_FUNCTION()
418 char *contents = NULL; in PHP_FUNCTION()
440 php_error_docref(NULL TSRMLS_CC, E_WARNING, in PHP_FUNCTION()
478 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the stream", pos); in PHP_FUNCTION()
526 for (filter = stream->filterhead; filter != NULL; filter = filter->next) { in PHP_FUNCTION()
629 if (stream == NULL) { in stream_array_to_fd_set()
663 zend_hash_init(new_hash, zend_hash_num_elements(Z_ARRVAL_P(stream_array)), NULL, ZVAL_PTR_DTOR, 0); in stream_array_from_fd_set()
675 if (stream == NULL) { in stream_array_from_fd_set()
719 zend_hash_init(new_hash, zend_hash_num_elements(Z_ARRVAL_P(stream_array)), NULL, ZVAL_PTR_DTOR, 0); in stream_array_emulate_read_fd_set()
726 if (stream == NULL) { in stream_array_emulate_read_fd_set()
765 zval *r_array, *w_array, *e_array, **sec = NULL; in PHP_FUNCTION()
767 struct timeval *tv_p = NULL; in PHP_FUNCTION()
781 if (r_array != NULL) { in PHP_FUNCTION()
788 if (w_array != NULL) { in PHP_FUNCTION()
795 if (e_array != NULL) { in PHP_FUNCTION()
803 php_error_docref(NULL TSRMLS_CC, E_WARNING, "No stream arrays were passed"); in PHP_FUNCTION()
810 if (sec != NULL) { in PHP_FUNCTION()
814 php_error_docref(NULL TSRMLS_CC, E_WARNING, "The seconds parameter must be greater than 0"); in PHP_FUNCTION()
817 php_error_docref(NULL TSRMLS_CC, E_WARNING, "The microseconds parameter must be greater than 0"); in PHP_FUNCTION()
836 if (r_array != NULL) { in PHP_FUNCTION()
840 if (w_array != NULL) { in PHP_FUNCTION()
843 if (e_array != NULL) { in PHP_FUNCTION()
853 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to select [%d]: %s (max_fd=%d)", in PHP_FUNCTION()
858 if (r_array != NULL) stream_array_from_fd_set(r_array, &rfds TSRMLS_CC); in PHP_FUNCTION()
859 if (w_array != NULL) stream_array_from_fd_set(w_array, &wfds TSRMLS_CC); in PHP_FUNCTION()
860 if (e_array != NULL) stream_array_from_fd_set(e_array, &efds TSRMLS_CC); in PHP_FUNCTION()
871 zval *retval = NULL; in user_space_stream_notifier()
895 …if (FAILURE == call_user_function_ex(EG(function_table), NULL, callback, &retval, 6, ptps, 0, NULL in user_space_stream_notifier()
896 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to call user notifier"); in user_space_stream_notifier()
910 notifier->ptr = NULL; in user_space_stream_notifier_dtor()
938 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "options should have the form [\"wrappername\"][\"opti… in parse_context_options()
955 context->notifier = NULL; in parse_context_params()
968 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid stream/context parameter"); in parse_context_params()
980 php_stream_context *context = NULL; in decode_context_param()
982 …context = zend_fetch_resource(&contextresource TSRMLS_CC, -1, NULL, NULL, 1, php_le_stream_context… in decode_context_param()
983 if (context == NULL) { in decode_context_param()
986 …stream = zend_fetch_resource(&contextresource TSRMLS_CC, -1, NULL, NULL, 2, php_file_le_stream(), … in decode_context_param()
990 if (context == NULL) { in decode_context_param()
1016 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid stream/context parameter"); in PHP_FUNCTION()
1028 zval *options = NULL, *zcontext = NULL, *zvalue = NULL; in PHP_FUNCTION()
1038 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "called with wrong number or type of parameters; pleas… in PHP_FUNCTION()
1046 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid stream/context parameter"); in PHP_FUNCTION()
1073 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid stream/context parameter"); in PHP_FUNCTION()
1094 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid stream/context parameter"); in PHP_FUNCTION()
1113 zval *params = NULL; in PHP_FUNCTION()
1120 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1137 zval *options = NULL; in PHP_FUNCTION()
1144 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1159 zval *options = NULL, *params = NULL; in PHP_FUNCTION()
1188 zval *filterparams = NULL; in apply_filter_to_stream()
1189 php_stream_filter *filter = NULL; in apply_filter_to_stream()
1215 if (filter == NULL) { in apply_filter_to_stream()
1232 if (filter == NULL) { in apply_filter_to_stream()
1248 …RETURN_RESOURCE(filter->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, filter, php_file_le_stream_filter()… in apply_filter_to_stream()
1282 filter = zend_fetch_resource(&zfilter TSRMLS_CC, -1, NULL, NULL, 1, php_file_le_stream_filter()); in PHP_FUNCTION()
1284 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid resource given, not a stream filter"); in PHP_FUNCTION()
1289 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to flush filter, not removing"); in PHP_FUNCTION()
1294 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not invalidate filter, not removing"); in PHP_FUNCTION()
1307 char *str = NULL; in PHP_FUNCTION()
1320 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "The maximum allowed length must be greater than or eq… in PHP_FUNCTION()
1355 if (php_stream_set_option(stream, PHP_STREAM_OPTION_BLOCKING, block == 0 ? 0 : 1, NULL) == -1) { in PHP_FUNCTION()
1419 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_WRITE_BUFFER, PHP_STREAM_BUFFER_NONE, NULL); in PHP_FUNCTION()
1448 ret = php_stream_set_option(stream, PHP_STREAM_OPTION_READ_BUFFER, PHP_STREAM_BUFFER_NONE, NULL); in PHP_FUNCTION()
1462 zval *zstream, *zsessstream = NULL; in PHP_FUNCTION()
1463 php_stream *stream, *sessstream = NULL; in PHP_FUNCTION()
1482 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "When enabling encryption you must specify the crypto … in PHP_FUNCTION()
1525 php_stream *stream = NULL; in PHP_FUNCTION()
1526 php_stream_wrapper *wrapper = NULL; in PHP_FUNCTION()
1534 if (stream == NULL) { in PHP_FUNCTION()
1541 wrapper = php_stream_locate_url_wrapper(Z_STRVAL_PP(zstream), NULL, 0 TSRMLS_CC); in PHP_FUNCTION()