Home
last modified time | relevance | path

Searched refs:buf (Results 126 – 150 of 337) sorted by last modified time

12345678910>>...14

/PHP-5.5/ext/spl/
H A Dspl_array.c1686 smart_str buf = {0}; in SPL_METHOD() local
1704 smart_str_appendl(&buf, "x:", 2); in SPL_METHOD()
1705 php_var_serialize(&buf, &flags, &var_hash TSRMLS_CC); in SPL_METHOD()
1709 php_var_serialize(&buf, &intern->array, &var_hash TSRMLS_CC); in SPL_METHOD()
1710 smart_str_appendc(&buf, ';'); in SPL_METHOD()
1714 smart_str_appendl(&buf, "m:", 2); in SPL_METHOD()
1722 php_var_serialize(&buf, &pmembers, &var_hash TSRMLS_CC); /* finishes the string */ in SPL_METHOD()
1727 if (buf.c) { in SPL_METHOD()
1728 RETURN_STRINGL(buf.c, buf.len, 0); in SPL_METHOD()
1741 char *buf; in SPL_METHOD() local
[all …]
/PHP-5.5/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_ipv4_udp.phpt24 var_dump(socket_recvfrom($socket, $buf, 12, 0, $from, $port)); //false (EAGAIN - no warning)
37 socket_recvfrom($socket, $buf, 12, 0); // cause warning
38 socket_recvfrom($socket, $buf, 12, 0, $from); // cause warning
39 $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from, $port);
45 echo "Received $buf from remote address $from and remote port $port" . PHP_EOL;
H A Dsocket_sentto_recvfrom_ipv6_udp-win32.phpt21 socket_recvfrom($socket, $buf, 12, 0, $from, $port); // cause warning
39 socket_recvfrom($socket, $buf, 12, 0); // cause warning
40 socket_recvfrom($socket, $buf, 12, 0, $from); // cause warning
41 $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from, $port);
47 echo "Received $buf from remote address $from and remote port $port" . PHP_EOL;
H A Dsocket_sentto_recvfrom_ipv6_udp.phpt21 var_dump(socket_recvfrom($socket, $buf, 12, 0, $from, $port)); // false (EAGAIN, no warning)
39 socket_recvfrom($socket, $buf, 12, 0); // cause warning
40 socket_recvfrom($socket, $buf, 12, 0, $from); // cause warning
41 $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from, $port);
47 echo "Received $buf from remote address $from and remote port $port" . PHP_EOL;
H A Dsocket_sentto_recvfrom_unix.phpt21 var_dump(socket_recvfrom($socket, $buf, 12, 0, $from, $port)); //false (EAGAIN, no warning)
40 var_dump(socket_recvfrom($socket, $buf, 0, 0, $from)); // expect false
41 $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from);
49 echo "Received $buf";
H A Dsocket_abstract_path.phpt37 if (!socket_recv($conns, $buf, 20, 0)) die("recv");
38 print_r($buf);
H A Dsocket_abstract_path_sendmsg.phpt33 if (!socket_recv($s, $buf, 20, 0)) die("recv");
34 print_r($buf);
/PHP-5.5/ext/sockets/
H A Dsockets.c137 ZEND_ARG_INFO(0, buf)
183 ZEND_ARG_INFO(1, buf)
190 ZEND_ARG_INFO(0, buf)
197 ZEND_ARG_INFO(1, buf)
206 ZEND_ARG_INFO(0, buf)
555 const char *buf; local
579 buf = NULL;
596 return (buf ? (char *) buf : "");
1586 zval_dtor(buf);
1592 zval_dtor(buf);
[all …]
H A Dconversions.c54 # define msg_control Control.buf
57 # define iov_base buf
224 char *bufp = buf; in from_array_iterate()
231 if (snprintf(buf, sizeof(buf), "element #%u", i) >= sizeof(buf)) { in from_array_iterate()
931 char *bufp = buf; in from_zval_write_control_array()
962 if (snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in from_zval_write_control_array()
1025 char *bufp = buf; in to_zval_read_control_array()
1045 if (snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in to_zval_read_control_array()
1231 char *buf = safe_emalloc(1, len, 1); in to_zval_read_iov() local
1235 buf[len] = '\0'; in to_zval_read_iov()
[all …]
H A Dmulticast.c754 char *buf = NULL, local
767 buf = ecalloc(size, 1);
769 if_conf.ifc_buf = buf;
783 efree(buf);
784 buf = NULL;
826 efree(buf);
840 if (buf != NULL)
841 efree(buf);
/PHP-5.5/ext/soap/
H A Dsoap.c1500 xmlChar *buf; local
1956 xmlFree(buf);
2067 xmlChar *buf; local
2109 xmlFree(buf);
2557 char *buf; local
2567 if (!buf) {
2616 xmlFree(buf);
2985 add_next_index_stringl(return_value, buf.c, buf.len, 1);
3016 add_next_index_stringl(return_value, buf.c, buf.len, 1);
4668 smart_str_0(buf);
[all …]
H A Dphp_http.c41 unsigned char* buf; in proxy_authentication() local
56 efree(buf); in proxy_authentication()
71 unsigned char* buf; in basic_authentication() local
86 efree(buf); in basic_authentication()
334 char *buf, in make_http_soap_request() argument
370 request = buf; in make_http_soap_request()
448 if (request != buf) {efree(request);} in make_http_soap_request()
459 if (request != buf) {efree(request);} in make_http_soap_request()
469 if (request != buf) {efree(request);} in make_http_soap_request()
786 unsigned char* buf; in make_http_soap_request() local
[all …]
H A Dphp_sdl.c1185 #define WSDL_CACHE_GET(ret,type,buf) memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type); argument
1186 …GET_INT(ret,buf) ret = ((unsigned char)(*buf)[0])|((unsigned char)(*buf)[1]<<8)|((unsigned char… argument
1187 #define WSDL_CACHE_GET_1(ret,type,buf) ret = (type)(**buf); (*buf)++; argument
1188 #define WSDL_CACHE_GET_N(ret,n,buf) memcpy(ret,*buf,n); *buf += n; argument
1189 #define WSDL_CACHE_SKIP(n,buf) *buf += n; argument
1546 char *in, *buf; in get_sdl_from_cache() local
1566 efree(buf); in get_sdl_from_cache()
1574 efree(buf); in get_sdl_from_cache()
1582 efree(buf); in get_sdl_from_cache()
1781 efree(buf); in get_sdl_from_cache()
[all …]
H A Dphp_xml.c134 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) in soap_xmlParseMemory() argument
144 ctxt = xmlCreateMemoryParserCtxt(buf, buf_size); in soap_xmlParseMemory()
H A Dphp_xml.h34 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t size);
H A Dphp_encoding.c663 xmlBufferPtr buf; in to_zval_user() local
668 buf = xmlBufferCreate(); in to_zval_user()
672 xmlBufferFree(buf); in to_zval_user()
2988 char *buf; in to_xml_datetime_ex() local
3008 buf = (char *) erealloc(buf, buf_len); in to_xml_datetime_ex()
3029 buf = (char *) erealloc(buf, real_len+1); in to_xml_datetime_ex()
3031 strcat(buf, tzbuf); in to_xml_datetime_ex()
3034 efree(buf); in to_xml_datetime_ex()
3199 xmlBufferPtr buf; in to_zval_any() local
3221 buf = xmlBufferCreate(); in to_zval_any()
[all …]
/PHP-5.5/ext/snmp/
H A Dsnmp.c566 *buf = '\0'; in php_snmp_getvalue()
578 if (buf == dbuf) { in php_snmp_getvalue()
586 buf = &(sbuf[0]); in php_snmp_getvalue()
591 buf = dbuf; in php_snmp_getvalue()
597 buf = dbuf; in php_snmp_getvalue()
607 *buf = 0; in php_snmp_getvalue()
631 buf[buflen]=0; in php_snmp_getvalue()
641 buf[buflen]=0; in php_snmp_getvalue()
647 buf[buflen]=0; in php_snmp_getvalue()
715 char buf[2048]; in php_snmp_internal() local
[all …]
/PHP-5.5/ext/session/
H A Dsession.c297 char *buf, *outid; in php_session_create_id() local
319 PHP_MD5Update(&md5_context, (unsigned char *) buf, strlen(buf)); in php_session_create_id()
331 efree(buf); in php_session_create_id()
343 efree(buf); in php_session_create_id()
346 efree(buf); in php_session_create_id()
853 *newstr = buf.c; in PHP_INI_END()
910 *newstr = buf.c;
1002 *newstr = buf.c;
1206 ADD_HEADER(buf);
1209 ADD_HEADER(buf);
[all …]
H A Dmod_files.c92 buf[n++] = *p++; in ps_files_path_create()
99 buf[n] = '\0'; in ps_files_path_create()
101 return buf; in ps_files_path_create()
123 char buf[MAXPATHLEN]; in ps_files_open() local
140 if (!ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_open()
192 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() local
227 VCWD_UNLINK(buf); in ps_files_cleanup_dir()
241 char buf[MAXPATHLEN]; in ps_files_key_exists() local
244 if (!key || !ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_key_exists()
438 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC() local
[all …]
/PHP-5.5/ext/reflection/
H A Dphp_reflection.c151 static string *string_write(string *str, char *buf, int len) in string_write() argument
158 memcpy(str->string + str->len - 1, buf, len); in string_write()
/PHP-5.5/ext/phar/
H A Dzip.c169 char buf[sizeof(locator) + 65536]; in phar_parse_zipfile() local
174 char *p = buf, *ext, *actual_alias = NULL; in phar_parse_zipfile()
193 if (!php_stream_read(fp, buf, size)) { in phar_parse_zipfile()
201 while ((p=(char *) memchr(p + 1, 'P', (size_t) (size - (p + 1 - buf)))) != NULL) { in phar_parse_zipfile()
202 if ((p - buf) + sizeof(locator) <= size && !memcmp(p + 1, "K\5\6", 3)) { in phar_parse_zipfile()
229 if (PHAR_GET_16(locator.comment_len) != size - (metadata - buf)) { in phar_parse_zipfile()
534 …if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len… in phar_parse_zipfile()
539 p = buf; in phar_parse_zipfile()
553 …ZVAL_STRINGL(entry.metadata, pestrndup(buf, PHAR_GET_16(zipentry.comment_len), entry.is_persistent… in phar_parse_zipfile()
H A Dutil.c1531 unsigned char buf[1024]; local
1622 read_size = sizeof(buf);
1664 read_size = sizeof(buf);
1808 unsigned char buf[1024]; local
1826 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1841 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1899 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1943 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1958 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
2011 efree(buf);
[all …]
H A Dphar_internal.h619 int phar_is_tar(char *buf, char *fname);
/PHP-5.5/ext/posix/
H A Dconfig.m422 char buf[64];
24 return ttyname_r(0, buf, 64) ? 1 : 0;
H A Dposix.c999 char *buf; in PHP_FUNCTION() local
1011 buf = emalloc(buflen); in PHP_FUNCTION()
1014 if (getgrnam_r(name, g, buf, buflen, &g) || g == NULL) { in PHP_FUNCTION()
1016 efree(buf); in PHP_FUNCTION()
1033 efree(buf); in PHP_FUNCTION()
1118 char *buf; in PHP_FUNCTION() local
1130 buf = emalloc(buflen); in PHP_FUNCTION()
1133 if (getpwnam_r(name, pw, buf, buflen, &pw) || pw == NULL) { in PHP_FUNCTION()
1134 efree(buf); in PHP_FUNCTION()
1152 efree(buf); in PHP_FUNCTION()

Completed in 155 milliseconds

12345678910>>...14