Searched defs:source (Results 1 - 25 of 40) sorted by relevance

12

/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dbase64.c52 void base64_encode_xmlrpc(struct buffer_st *b, const char *source, int length) argument
80 c = *(source++);
117 void base64_decode_xmlrpc(struct buffer_st *bfr, const char *source, int length) argument
151 c = *(source++);
H A Dsimplestring.c55 * patch to make source more windows friendly, contributed by Jeff Lawson
181 * copies n characters from source to target string
184 * source - source string
193 void simplestring_addn(simplestring* target, const char* source, int add_len) { argument
194 if(target && source) {
212 memcpy(target->str + target->len, source, add_len);
227 * appends a string of unknown length from source to target
230 * source - the source strin
238 simplestring_add(simplestring* target, const char* source) argument
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_file_add.c8 Redistribution and use in source and binary forms, with or without
11 1. Redistributions of source code must retain the above copyright
49 zip_file_add(struct zip *za, const char *name, struct zip_source *source, zip_flags_t flags)
51 if (name == NULL || source == NULL) {
56 return _zip_file_replace(za, ZIP_UINT64_MAX, name, source, flags);
47 zip_file_add(struct zip *za, const char *name, struct zip_source *source, zip_flags_t flags) argument
H A Dzip_file_replace.c8 Redistribution and use in source and binary forms, with or without
11 1. Redistributions of source code must retain the above copyright
43 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags)
45 if (idx >= za->nentry || source == NULL) {
50 if (_zip_file_replace(za, idx, NULL, source, flags) == -1)
63 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zip_flags_t flags)
111 za->entry[idx].source = source;
41 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags) argument
60 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zip_flags_t flags) argument
H A Dzip_replace.c8 Redistribution and use in source and binary forms, with or without
11 1. Redistributions of source code must retain the above copyright
44 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source)
46 return zip_file_replace(za, idx, source, 0);
42 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source) argument
H A Dzip_add.c8 Redistribution and use in source and binary forms, with or without
11 1. Redistributions of source code must retain the above copyright
51 zip_add(struct zip *za, const char *name, struct zip_source *source)
53 return zip_file_add(za, name, source, 0);
49 zip_add(struct zip *za, const char *name, struct zip_source *source) argument
H A Dzip_dir_add.c8 Redistribution and use in source and binary forms, with or without
11 1. Redistributions of source code must retain the above copyright
53 struct zip_source *source;
78 if ((source=zip_source_buffer(za, NULL, 0, 0)) == NULL) {
83 idx = _zip_file_replace(za, ZIP_UINT64_MAX, s ? s : name, source, flags);
88 zip_source_free(source);
51 struct zip_source *source; local
/PHP_TRUNK/ext/hash/
H A Dhash_whirlpool.c7 | This source file is subject to version 3.01 of the PHP license, |
278 int sourcePos = 0; /* index of leftmost source unsigned char containing data (1 to 8 bits). */
279 int sourceGap = (8 - ((int)sourceBits & 7)) & 7; /* space on source[sourcePos]. */
281 const unsigned char *source = input; local
303 /* N.B. at least source[sourcePos] and source[sourcePos+1] contain data. */
305 * take a byte from the source:
307 b = ((source[sourcePos] << sourceGap) & 0xff) |
308 ((source[sourcePos + 1] & 0xff) >> (8 - sourceGap));
333 * furthermore, all data (if any is left) is in source[sourcePo
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_prompt.h7 | This source file is subject to version 3.01 of the PHP license, |
51 PHPDBG_COMMAND(source); variable
/PHP_TRUNK/sapi/cli/
H A Dgenerate_mime_type_map.php6 $source = count($_SERVER['argv']) > 1 ? $_SERVER['argv'][1] : 'https://raw.githubusercontent.com/apache/httpd/trunk/docs/conf/mime.types'; variable
9 $types = @file($source);
11 fprintf(STDERR, "Error: unable to read $source\n");
37 | This source file is subject to version 3.01 of the PHP license, |
/PHP_TRUNK/Zend/
H A Dzend_constants.c7 | This source file is subject to version 2.00 of the Zend license, |
65 void zend_copy_constants(HashTable *target, HashTable *source) argument
67 zend_hash_copy(target, source, copy_zend_constant);
H A Dzend_ts_hash.c7 | This source file is subject to version 2.00 of the Zend license, |
245 ZEND_API void zend_ts_hash_copy(TsHashTable *target, TsHashTable *source, copy_ctor_func_t pCopyConstructor) argument
247 begin_read(source);
249 zend_hash_copy(TS_HASH(target), TS_HASH(source), pCopyConstructor);
251 end_read(source);
254 ZEND_API void zend_ts_hash_copy_to_hash(HashTable *target, TsHashTable *source, copy_ctor_func_t pCopyConstructor) argument
256 begin_read(source);
257 zend_hash_copy(target, TS_HASH(source), pCopyConstructor);
258 end_read(source);
261 ZEND_API void zend_ts_hash_merge(TsHashTable *target, TsHashTable *source, copy_ctor_func_ argument
270 zend_ts_hash_merge_ex(TsHashTable *target, TsHashTable *source, copy_ctor_func_t pCopyConstructor, merge_checker_func_t pMergeSource, void *pParam) argument
[all...]
/PHP_TRUNK/ext/bz2/
H A Dbz2.c7 | This source file is subject to version 3.01 of the PHP license, |
79 ZEND_ARG_INFO(0, source)
85 ZEND_ARG_INFO(0, source)
488 /* {{{ proto string bzcompress(string source [, int blocksize100k [, int workfactor]])
492 char *source; /* Source data to compress */ local
500 int source_len; /* Length of the source data */
505 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &source, &source_len, &zblock_size, &zwork_factor) == FAILURE) {
527 error = BZ2_bzBuffToBuffCompress(dest->val, &dest_len, source, source_len, block_size, 0, work_factor);
541 /* {{{ proto string bzdecompress(string source [, int small])
545 char *source, *des local
[all...]
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_com.c7 | This source file is subject to version 3.01 of the PHP license, |
351 char *source = NULL, *desc = NULL, *msg = NULL; local
357 source = php_com_olestring_to_string(e.bstrSource, &source_len, obj->code_page TSRMLS_CC);
366 source ? source : "Unknown",
370 source ? source : "Unknown",
376 if (source) {
377 efree(source);
730 /* Now hook it up to the source */
[all...]
/PHP_TRUNK/ext/intl/converter/
H A Dconverter.c5 | This source file is subject to version 3.01 of the PHP license, |
111 string $source, string $codeUnits,
115 ZEND_ARG_INFO(0, source)
121 zval *source, *codeUnits, *error; local
124 &reason, &source, &codeUnits, &error) == FAILURE) {
133 Array $source, long $codePoint,
137 ZEND_ARG_INFO(0, source)
143 zval *source, *codePoint, *error; local
146 &reason, &source, &codePoint, &error) == FAILURE) {
237 ZVAL_STRINGL(&zargs[1], args->source, arg
[all...]
/PHP_TRUNK/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp5 | This source file is subject to version 3.01 of the PHP license, |
631 U_CFUNC void umsg_parse_helper(UMessageFormat *fmt, int *count, zval **args, UChar *source, int source_len, UErrorCode *status) argument
633 UnicodeString srcString(source, source_len);
H A Dmsgformat_parse.c5 | This source file is subject to version 3.01 of the PHP license, |
31 static void msgfmt_do_parse(MessageFormatter_object *mfo, char *source, int src_len, zval *return_value TSRMLS_DC) argument
39 intl_convert_utf8_to_utf16(&usource, &usrc_len, source, src_len, &INTL_DATA_ERROR_CODE(mfo));
56 /* {{{ proto array MessageFormatter::parse( string $source )
58 /* {{{ proto array msgfmt_parse( MessageFormatter $nf, string $source )
63 char *source; local
70 &object, MessageFormatter_ce_ptr, &source, &source_len ) == FAILURE )
81 msgfmt_do_parse(mfo, source, source_len, return_value TSRMLS_CC);
85 /* {{{ proto array MessageFormatter::formatMessage( string $locale, string $pattern, string $source )
87 /* {{{ proto array numfmt_parse_message( string $locale, string $pattern, string $source )
98 char *source = NULL; local
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_shared_alloc.c7 | This source file is subject to version 3.01 of the PHP license, |
326 int zend_shared_memdup_size(void *source, size_t size) argument
330 if ((old_p = zend_hash_index_find_ptr(&xlat_table, (ulong)source)) != NULL) {
334 zend_shared_alloc_register_xlat_entry(source, source);
338 void *_zend_shared_memdup(void *source, size_t size, zend_bool free_source TSRMLS_DC) argument
342 if ((old_p = zend_hash_index_find_ptr(&xlat_table, (ulong)source)) != NULL) {
348 memcpy(retval, source, size);
350 efree(source);
352 zend_shared_alloc_register_xlat_entry(source, retva
[all...]
H A Dzend_accelerator_util_funcs.c7 | This source file is subject to version 3.01 of the PHP license, |
47 static void zend_hash_clone_zval(HashTable *ht, HashTable *source, int bind);
332 static void zend_hash_clone_zval(HashTable *ht, HashTable *source, int bind) argument
339 ht->nTableSize = source->nTableSize;
340 ht->nTableMask = source->nTableMask;
342 ht->nNumOfElements = source->nNumOfElements;
343 ht->nNextFreeElement = source->nNextFreeElement;
348 ht->nInternalPointer = source->nNumOfElements ? 0 : INVALID_IDX;
355 if (source->u.flags & HASH_FLAG_PACKED) {
360 for (idx = 0; idx < source
411 zend_hash_clone_methods(HashTable *ht, HashTable *source, zend_class_entry *old_ce, zend_class_entry *ce TSRMLS_DC) argument
489 zend_hash_clone_prop_info(HashTable *ht, HashTable *source, zend_class_entry *old_ce, zend_class_entry *ce TSRMLS_DC) argument
757 zend_accel_function_hash_copy(HashTable *target, HashTable *source, unique_copy_ctor_func_t pCopyConstructor TSRMLS_DC) argument
811 zend_accel_class_hash_copy(HashTable *target, HashTable *source, unique_copy_ctor_func_t pCopyConstructor TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/phar/
H A Dstream.c7 | This source file is subject to version 3.01 of the PHP license, |
847 phar_entry_info new, *source; local
853 php_error_docref(NULL TSRMLS_CC, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\" from extracted phar archive, source has been deleted", url_from, url_to);
863 source = entry;
869 if (FAILURE == phar_copy_entry_fp(source, entry, &error TSRMLS_CC)) {
887 php_error_docref(NULL TSRMLS_CC, E_WARNING, "phar error: cannot rename \"%s\" to \"%s\" from extracted phar archive, source does not exist", url_from, url_to);
/PHP_TRUNK/ext/sockets/
H A Dmulticast.c7 | This source file is subject to version 3.01 of the PHP license, |
56 static int _php_mcast_source_op(php_socket *sock, int level, struct sockaddr *group, socklen_t group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index, enum source_op sop TSRMLS_DC);
203 source = {0}; local
216 if (php_get_address_from_array(opt_ht, "source", php_sock, &source,
226 glen, (struct sockaddr*)&source, slen, if_index TSRMLS_CC);
407 struct sockaddr *source,
411 return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, JOIN_SOURCE TSRMLS_CC);
419 struct sockaddr *source,
423 return _php_mcast_source_op(sock, level, group, group_len, source, source_le
402 php_mcast_join_source( php_socket *sock, int level, struct sockaddr *group, socklen_t group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index TSRMLS_DC) argument
414 php_mcast_leave_source( php_socket *sock, int level, struct sockaddr *group, socklen_t group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index TSRMLS_DC) argument
426 php_mcast_block_source( php_socket *sock, int level, struct sockaddr *group, socklen_t group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index TSRMLS_DC) argument
438 php_mcast_unblock_source( php_socket *sock, int level, struct sockaddr *group, socklen_t group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index TSRMLS_DC) argument
514 _php_mcast_source_op( php_socket *sock, int level, struct sockaddr *group, socklen_t group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index, enum source_op sop TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/tokenizer/
H A Dtokenizer.c7 | This source file is subject to version 3.01 of the PHP license, |
42 ZEND_ARG_INFO(0, source)
176 /* {{{ proto array token_get_all(string source)
180 zend_string *source; local
184 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &source) == FAILURE) {
188 ZVAL_STR(&source_zval, STR_COPY(source));
/PHP_TRUNK/ext/xmlreader/
H A Dphp_xmlreader.c7 | This source file is subject to version 3.01 of the PHP license, |
225 char *_xmlreader_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) { argument
232 escsource = xmlURIEscapeStr((xmlChar *)source, (xmlChar *)":");
238 if (strncasecmp(source, "file:///",8) == 0) {
241 source += 8;
243 source += 7;
245 } else if (strncasecmp(source, "file://localhost/",17) == 0) {
248 source += 17;
250 source += 16;
255 file_dest = source;
273 _xmlreader_get_relaxNG(char *source, int source_len, int type, xmlRelaxNGValidityErrorFunc error_func, xmlRelaxNGValidityWarningFunc warn_func TSRMLS_DC) argument
486 char *source; local
852 char *source, *valid_file = NULL; local
941 char *source; local
1035 char *source, *uri = NULL, *encoding = NULL; local
[all...]
/PHP_TRUNK/ext/xmlwriter/
H A Dphp_xmlwriter.c7 | This source file is subject to version 3.01 of the PHP license, |
586 static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int resolved_path_len TSRMLS_DC) { argument
593 escsource = xmlURIEscapeStr((xmlChar *)source, (xmlChar *) ":");
599 if (strncasecmp(source, "file:///", 8) == 0) {
600 if (source[sizeof("file:///") - 1] == '\0') {
606 source += 8;
608 source += 7;
610 } else if (strncasecmp(source, "file://localhost/",17) == 0) {
611 if (source[sizeof("file://localhost/") - 1] == '\0') {
618 source
1632 char *source; local
[all...]
/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt.c7 | This source file is subject to version 3.01 of the PHP license, |
237 ZEND_ARG_INFO(0, source)
1398 /* {{{ proto string mcrypt_create_iv(int size, int source)
1403 long source = URANDOM; local
1407 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &size, &source) == FAILURE) {
1418 if (source == RANDOM || source == URANDOM) {
1432 fd = open(source == RANDOM ? "/dev/random" : "/dev/urandom", O_RDONLY);
1435 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot open source device");

Completed in 77 milliseconds

12