Searched refs:option (Results 1 - 25 of 48) sorted by relevance

12

/PHP_TRUNK/scripts/dev/generate-phpt/src/setup/
H A DgtCommandLineOptions.php51 $option = substr($argv[$i], 1); variable
53 throw new gtUnknownOptionException('Unrecognised command line option ' . $argv[$i]);
56 if (!in_array($option, array_merge($this->shortOptions, $this->shortOptionsWithArgs)))
58 throw new gtUnknownOptionException('Unknown option ' . $argv[$i]);
61 if (in_array($option, $this->shortOptions)) {
62 $this->options[$option] = true;
68 throw new gtMissingArgumentException('Missing argument for command line option ' . $argv[$i]);
72 $this->options[$option] = $argv[$i];
79 public function getOption($option)
81 if (!isset($this->options[$option])) {
[all...]
H A DgtOptionalSections.php19 foreach($options as $option) {
21 if(array_key_exists($option, $this->optSections )) {
22 $this->optSections[$option] = true;
/PHP_TRUNK/ext/standard/
H A Dsyslog.c128 /* {{{ proto bool openlog(string ident, int option, int facility)
138 zend_long option, facility; local
142 &ident_len, &option, &facility) == FAILURE) {
152 openlog(BG(syslog_device), option, facility); local
H A Dfilestat.c426 int option; local
429 option = PHP_STREAM_META_GROUP;
432 option = PHP_STREAM_META_GROUP_NAME;
438 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) {
563 int option; local
566 option = PHP_STREAM_META_OWNER;
569 option = PHP_STREAM_META_OWNER_NAME;
575 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) {
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Doniguruma.h396 #define ONIG_IS_OPTION_ON(options,option) ((options) & (option))
403 OnigOptionType options; /* default option */
712 OnigOptionType option; member in struct:__anon13
726 int onig_new P_((OnigRegex*, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo));
728 int onig_reg_init P_((regex_t* reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, OnigSyntaxType* syntax));
729 int onig_new_without_alloc P_((OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo));
737 int onig_recompile P_((OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo));
741 int onig_search P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option));
743 int onig_match P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option));
[all...]
H A Dregcomp.c264 add_option(regex_t* reg, OnigOptionType option) argument
266 BBUF_ADD(reg, &option, SIZE_OPTION);
296 add_opcode_option(regex_t* reg, int opcode, OnigOptionType option) argument
302 r = add_option(reg, option);
1164 reg->options = node->option;
1170 if (IS_DYNAMIC_OPTION(prev ^ node->option)) {
1184 if (IS_DYNAMIC_OPTION(prev ^ node->option)) {
1185 r = add_opcode_option(reg, OP_SET_OPTION_PUSH, node->option);
1193 reg->options = node->option;
1197 if (IS_DYNAMIC_OPTION(prev ^ node->option)) {
5451 onig_recompile(regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo) argument
5473 onig_reg_init(regex_t* reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, OnigSyntaxType* syntax) argument
5519 onig_new_without_alloc(regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo) argument
5533 onig_new(regex_t** reg, const UChar* pattern, const UChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo) argument
5884 OnigOptionType option = *((OnigOptionType* )bp); local
6023 OnigOptionType option; local
[all...]
H A Dregparse.c1383 NENCLOSE(node)->option = 0;
1397 node_new_enclose_memory(OnigOptionType option, int is_named) argument
1405 NENCLOSE(node)->option = option;
1411 node_new_option(OnigOptionType option) argument
1415 NENCLOSE(node)->option = option;
3704 tok->u.subtype = (IS_SINGLELINE(env->option)
3711 tok->u.subtype = (IS_SINGLELINE(env->option)
3726 if (IS_EXTEND(env->option)) {
4510 OnigOptionType option; local
[all...]
H A Dregparse.h190 OnigOptionType option; member in struct:__anon48
279 OnigOptionType option; member in struct:__anon57
H A Dregint.h288 #define IS_SINGLELINE(option) ((option) & ONIG_OPTION_SINGLELINE)
289 #define IS_MULTILINE(option) ((option) & ONIG_OPTION_MULTILINE)
290 #define IS_IGNORECASE(option) ((option) & ONIG_OPTION_IGNORECASE)
291 #define IS_EXTEND(option) ((option) & ONIG_OPTION_EXTEND)
292 #define IS_FIND_LONGEST(option) ((option)
[all...]
/PHP_TRUNK/ext/ftp/
H A Dphp_ftp.c233 ZEND_ARG_INFO(0, option)
239 ZEND_ARG_INFO(0, option)
1442 /* {{{ proto bool ftp_set_option(resource stream, int option, mixed value)
1443 Sets an FTP option */
1447 zend_long option; local
1450 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rlz", &z_ftp, &option, &z_value) == FAILURE) {
1458 switch (option) {
1482 php_error_docref(NULL, E_WARNING, "Unknown option '%pd'", option);
1489 /* {{{ proto mixed ftp_get_option(resource stream, int option)
1494 zend_long option; local
[all...]
/PHP_TRUNK/ext/intl/calendar/
H A Dcalendar_methods.cpp1088 zend_long option; local
1092 "Ol", &object, Calendar_ce_ptr, &option) == FAILURE) {
1098 if (option != UCAL_WALLTIME_FIRST && option != UCAL_WALLTIME_LAST) {
1100 "intlcal_set_repeated_wall_time_option: invalid option", 0);
1106 co->ucal->setRepeatedWallTimeOption((UCalendarWallTimeOption)option);
1113 zend_long option; local
1117 "Ol", &object, Calendar_ce_ptr, &option) == FAILURE) {
1123 if (option != UCAL_WALLTIME_FIRST && option !
[all...]
/PHP_TRUNK/ext/curl/
H A Dshare.c72 static int _php_curl_share_setopt(php_curlsh *sh, zend_long option, zval *zvalue, zval *return_value) /* {{{ */ argument
76 switch (option) {
79 error = curl_share_setopt(sh->share, option, zval_get_long(zvalue));
83 php_error_docref(NULL, E_WARNING, "Invalid curl share configuration option");
96 /* {{{ proto bool curl_share_setopt(resource sh, int option, mixed value)
97 Set an option for a cURL transfer */
H A Dmulti.c409 static int _php_curl_multi_setopt(php_curlm *mh, zend_long option, zval *zvalue, zval *return_value) /* {{{ */ argument
413 switch (option) {
420 error = curl_multi_setopt(mh->multi, option, zval_get_long(zvalue));
424 php_error_docref(NULL, E_WARNING, "Invalid curl multi configuration option");
437 /* {{{ proto int curl_multi_setopt(resource mh, int option, mixed value)
438 Set an option for the curl multi handle */
H A Dinterface.c169 static int php_curl_option_str(php_curl *ch, zend_long option, const char *str, const int len, zend_bool make_copy) argument
174 php_error_docref(NULL, E_WARNING, "Curl option contains invalid characters (\\0)");
185 error = curl_easy_setopt(ch->cp, option, copystr);
189 error = curl_easy_setopt(ch->cp, option, str);
304 ZEND_ARG_INFO(0, option)
319 ZEND_ARG_INFO(0, option)
353 ZEND_ARG_INFO(0, option)
413 ZEND_ARG_INFO(0, option)
2009 static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{ */ argument
2014 switch (option) {
2794 zend_ulong option; local
2805 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(arr), option, string_key, entry) { local
2898 zend_long option = 0; local
[all...]
/PHP_TRUNK/ext/filter/
H A Dfilter.c586 zval *option; local
603 if ((option = zend_hash_str_find(HASH_OF(filter_args), "filter", sizeof("filter") - 1)) != NULL) {
604 filter = zval_get_long(option);
607 if ((option = zend_hash_str_find(HASH_OF(filter_args), "flags", sizeof("flags") - 1)) != NULL) {
608 filter_flags = zval_get_long(option);
615 if ((option = zend_hash_str_find(HASH_OF(filter_args), "options", sizeof("options") - 1)) != NULL) {
617 if (Z_TYPE_P(option) == IS_ARRAY) {
618 options = option;
621 options = option;
733 zval *option, *op local
810 zval *option; local
[all...]
/PHP_TRUNK/main/streams/
H A Dmemory.c247 static int php_stream_memory_set_option(php_stream *stream, int option, int value, void *ptrparam) /* {{{ */ argument
252 switch(option) {
530 static int php_stream_temp_set_option(php_stream *stream, int option, int value, void *ptrparam) /* {{{ */ argument
534 switch(option) {
542 return php_stream_set_option(ts->innerstream, option, value, ptrparam);
H A Duserspace.c54 static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context);
208 function stream_set_option($option, $arg1, $arg2)
210 switch($option) {
915 static int php_userstreamop_set_option(php_stream *stream, int option, int value, void *ptrparam) { argument
923 switch (option) {
1038 ZVAL_LONG(&args[0], option);
1042 switch(option) {
1278 static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, argument
1288 switch(option) {
1307 php_error_docref(NULL, E_WARNING, "Unknown option
[all...]
H A Dplain_wrapper.c597 static int php_stdiop_set_option(php_stream *stream, int option, int value, void *ptrparam) argument
610 switch(option) {
1301 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context) argument
1329 switch(option) {
1346 if(option == PHP_STREAM_META_OWNER_NAME) {
1358 if(option == PHP_STREAM_META_GROUP_NAME) {
1374 php_error_docref1(NULL, url, E_WARNING, "Unknown option %d for stream_metadata", option);
H A Dxp_socket.c58 static int php_tcp_sockop_set_option(php_stream *stream, int option, int value, void *ptrparam);
287 static int php_sockop_set_option(php_stream *stream, int option, int value, void *ptrparam) argument
297 switch(option) {
717 xparam->outputs.error_text = strpprintf(0, "local_addr context option is not a string.");
813 static int php_tcp_sockop_set_option(php_stream *stream, int option, int value, void *ptrparam) argument
818 switch(option) {
841 return php_sockop_set_option(stream, option, value, ptrparam);
/PHP_TRUNK/ext/intl/idn/
H A Didn.c137 const char *domain, int32_t domain_len, uint32_t option, int mode, zval *idna_info)
147 uts46 = uidna_openUTS46(option, &status);
205 const char *domain, int32_t domain_len, uint32_t option, int mode)
232 converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status);
234 converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status);
264 zend_long option = 0, local
271 &domain, &domain_len, &option, &variant, &idna_info) == FAILURE) {
314 domain, (int32_t)domain_len, (uint32_t)option, mode);
319 (uint32_t)option, mode, idna_info);
136 php_intl_idn_to_46(INTERNAL_FUNCTION_PARAMETERS, const char *domain, int32_t domain_len, uint32_t option, int mode, zval *idna_info) argument
204 php_intl_idn_to(INTERNAL_FUNCTION_PARAMETERS, const char *domain, int32_t domain_len, uint32_t option, int mode) argument
/PHP_TRUNK/main/
H A Dphp_streams.h131 int (*set_option)(php_stream *stream, int option, int value, void *ptrparam);
374 PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam);
375 #define php_stream_set_option(stream, option, value, ptrvalue) _php_stream_set_option((stream), (option), (value), (ptrvalue))
422 /* option code used by the php_stream_xport_XXX api */
445 #define PHP_STREAM_OPTION_RETURN_OK 0 /* option set OK */
446 #define PHP_STREAM_OPTION_RETURN_ERR -1 /* problem setting option */
/PHP_TRUNK/ext/mbstring/
H A Dphp_mbregex.c472 static size_t _php_mb_regex_get_option_string(char *str, size_t len, OnigOptionType option, OnigSyntaxType *syntax) argument
479 if ((option & ONIG_OPTION_IGNORECASE) != 0) {
487 if ((option & ONIG_OPTION_EXTEND) != 0) {
495 if ((option & (ONIG_OPTION_MULTILINE | ONIG_OPTION_SINGLELINE)) ==
503 if ((option & ONIG_OPTION_MULTILINE) != 0) {
511 if ((option & ONIG_OPTION_SINGLELINE) != 0) {
519 if ((option & ONIG_OPTION_FIND_LONGEST) != 0) {
526 if ((option & ONIG_OPTION_FIND_NOT_EMPTY) != 0) {
578 _php_mb_regex_init_options(const char *parg, int narg, OnigOptionType *option, OnigSyntaxType **syntax, int *eval) argument
643 if (option !
1143 OnigOptionType option = 0; local
1187 OnigOptionType option; local
1318 OnigOptionType option; local
[all...]
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c1119 /* For connection option */
5367 static int php_pgsql_fd_set_option(php_stream *stream, int option, int value, void *ptrparam) /* {{{ */ argument
5370 switch (option) {
6451 zend_ulong option = 0; local
6455 "rsa|l", &pgsql_link, &table_name, &table_name_len, &values, &option) == FAILURE) {
6458 if (option & ~PGSQL_CONV_OPTS) {
6459 php_error_docref(NULL, E_WARNING, "Invalid option is specified");
6475 if (php_pgsql_convert(pg_link, table_name, values, return_value, option) == FAILURE) {
6666 zend_ulong option = PGSQL_DML_EXEC, return_sql; local
6675 &pgsql_link, &table, &table_len, &values, &option)
6882 zend_ulong option = PGSQL_DML_EXEC; local
6974 zend_ulong option = PGSQL_DML_EXEC; local
7106 zend_ulong option = PGSQL_DML_EXEC; local
[all...]
/PHP_TRUNK/ext/ldap/
H A Dldap.c2056 /* {{{ proto bool ldap_get_option(resource link, int option, mixed retval)
2062 zend_long option; local
2064 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rlz/", &link, &option, &retval) != SUCCESS) {
2072 switch (option) {
2086 if (ldap_get_option(ld->link, option, &val)) {
2139 if (ldap_get_option(ld->link, option, &val) || val == NULL || *val == '\0') {
2162 /* {{{ proto bool ldap_set_option(resource link, int option, mixed newval)
2169 zend_long option; local
2171 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zlz", &link, &option, &newval) != SUCCESS) {
2184 switch (option) {
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c316 zval *option; local
317 if ((option = zend_hash_str_find(HASH_OF(options), "remove_all_path", sizeof("remove_all_path") - 1)) != NULL) {
318 *remove_all_path = zval_get_long(option);
322 if ((option = zend_hash_str_find(HASH_OF(options), "remove_path", sizeof("remove_path") - 1)) != NULL) {
323 if (Z_TYPE_P(option) != IS_STRING) {
324 php_error_docref(NULL, E_WARNING, "remove_path option expected to be a string");
328 if (Z_STRLEN_P(option) < 1) {
329 php_error_docref(NULL, E_NOTICE, "Empty string given as remove_path option");
333 if (Z_STRLEN_P(option) >= MAXPATHLEN) {
335 MAXPATHLEN - 1, Z_STRLEN_P(option));
[all...]

Completed in 130 milliseconds

12