Searched refs:errstr (Results 1 - 14 of 14) sorted by relevance

/PHP_TRUNK/ext/standard/tests/http/
H A Dserver.inc20 $server = stream_socket_server($socket_string, $errno, $errstr);
/PHP_TRUNK/ext/ftp/tests/
H A Dserver.inc10 $socket = stream_socket_server("tcp://127.0.0.1:$port", $errno, $errstr, STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
/PHP_TRUNK/ext/standard/
H A Dfsock.c46 char *errstr = NULL; local
80 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err);
86 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s:%ld (%s)", host, port, errstr == NULL ? "Unknown error" : errstr);
98 if (zerrstr && errstr) {
101 ZVAL_STRING(zerrstr, errstr, 0);
103 else if (!zerrstr && errstr) {
104 efree(errstr);
110 if (errstr) {
111 efree(errstr);
[all...]
H A Dstreamsfuncs.c100 char *errstr = NULL; local
136 hashkey, &tv, context, &errstr, &err);
143 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s (%s)", quoted_host, errstr == NULL ? "Unknown error" : errstr);
156 if (zerrstr && errstr) {
159 ZVAL_STRING(zerrstr, errstr, 0);
160 } else if (errstr) {
161 efree(errstr);
166 if (errstr) {
167 efree(errstr);
185 char *errstr = NULL; local
253 char *errstr = NULL; local
[all...]
H A Dhttp_fopen_wrapper.c133 char *transport_string, *errstr = NULL; local
212 NULL, &timeout, context, &errstr, NULL);
218 if (errstr) {
219 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "%s", errstr);
220 efree(errstr);
221 errstr = NULL;
H A Dbasic_functions.c1391 ZEND_ARG_INFO(1, errstr)
1399 ZEND_ARG_INFO(1, errstr)
/PHP_TRUNK/main/
H A Dnetwork.c511 char *errstr = NULL; local
553 n = php_network_getaddresses(tmp, SOCK_DGRAM, &psal, &errstr TSRMLS_CC);
556 if (errstr) {
557 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to resolve `%s': %s", tmp, errstr);
558 STR_FREE(errstr);
988 char *errstr; local
990 errstr = strerror(err);
992 buf = estrdup(errstr);
994 strncpy(buf, errstr, bufsize);
/PHP_TRUNK/ext/sqlite3/libsqlite/
H A Dsqlite3ext.h244 const char *(*errstr)(int); member in struct:sqlite3_api_routines
461 #define sqlite3_errstr sqlite3_api->errstr
H A Dsqlite3.c[all...]
/PHP_TRUNK/ext/intl/converter/
H A Dconverter.c556 char *errstr = NULL; local
563 if (zend_fcall_info_init(&caller, 0, finfo, fcache, NULL, &errstr TSRMLS_CC) == FAILURE) {
564 php_converter_throw_failure(objval, U_INTERNAL_PROGRAM_ERROR TSRMLS_CC, "Error setting converter callback: %s", errstr);
567 if (errstr) {
568 efree(errstr);
/PHP_TRUNK/ext/bz2/
H A Dbz2.c597 const char *errstr; /* Error string */ local
614 errstr = BZ2_bzerror(self->bz_file, &errnum);
622 RETURN_STRING((char*)errstr, 1);
628 add_assoc_string(return_value, "errstr", (char*)errstr, 1);
/PHP_TRUNK/
H A Drun-tests.php1001 $fs = fsockopen($host, $port, $errno, $errstr, 10);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c1093 char *errstr = get_last_error(); local
1094 php_cli_server_logf("%s" TSRMLS_CC, errstr);
1095 pefree(errstr, 1);
1219 static int php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, char **errstr TSRMLS_DC) /* {{{ */
1225 int num_addrs = php_network_getaddresses(host, socktype, &sal, errstr TSRMLS_CC);
1247 *errstr = NULL;
1260 *errstr = NULL;
1333 if (errstr) {
1334 *errstr = php_socket_strerror(err, NULL, 0);
1691 static int php_cli_server_client_read_request(php_cli_server_client *client, char **errstr TSRMLS_D
1854 char *errstr = get_last_error(); local
2198 char *errstr = NULL; local
2315 char *errstr = NULL; local
2390 char *errstr; local
2456 char *errstr = php_socket_strerror(err, NULL, 0); local
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_net.c160 char * errstr = NULL; local
182 NULL /*ctx*/, &errstr, &errcode);
183 if (errstr || !net_stream) {
189 SET_CLIENT_ERROR(*error_info, errcode? errcode:CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, errstr);
190 if (errstr) {
192 efree(errstr);

Completed in 165 milliseconds