Searched defs:function (Results 1 - 25 of 27) sorted by relevance

12

/PHP_TRUNK/ext/skeleton/
H A Dskeleton.php14 $function = 'confirm_' . $module . '_compiled'; variable
16 $str = $function($module);
/PHP_TRUNK/scripts/dev/generate-phpt/src/
H A Dgenerate-phpt.php60 $function = new gtFunction($name); variable
61 $function->setArgumentNames();
62 $function->setArgumentLists();
63 $function->setInitialisationStatements();
73 $testCase->setFunction($function);
86 $testCase->setFunction($function);
101 $testCaseContainer->setFunction($function);
H A DgtFunction.php4 * Class reperesents a single PHP function.
12 * Set the name of the name of the function
16 public function __construct($functionName) {
22 * Get the names of function arguments and initialise mandatory and optional argument arrays
25 public function setArgumentNames() {
26 $function= new ReflectionFunction($this->functionName); variable
28 foreach ($function->getParameters() as $i => $param) {
39 * Return the name of the function
43 public function getName() {
/PHP_TRUNK/scripts/dev/generate-phpt/src/setup/preconditions/
H A DgtIsValidFunction.php4 * Check that the function name is valid
9 public function check( $clo) {
11 $function = $clo->getOption('f'); variable
13 if( in_array( $function, $functions['internal'] ) ) {
21 public function getMessage() {
/PHP_TRUNK/scripts/dev/generate-phpt/src/testcase/
H A DgtVariationContainerFunction.php8 protected $function; variable
11 public function __construct($osl) {
16 * Sets function being tested
18 * @param gtFunction $function
20 public function setFunction(gtFunction $function) {
21 $this->function = $function; variable
29 public function constructAll() {
32 $numberOfArguments = count($this->function
[all...]
/PHP_TRUNK/ext/dba/
H A Ddba_db4.c50 const char *function = get_active_function_name(); local
51 if (function && (!strcmp(function,"dba_popen") || !strcmp(function,"dba_open"))
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h98 PDO_FETCH_FUNC, /* fetch into function and return its result */
288 to prefix the function names using the PDO driver name; this will
447 /* if true, the handle has been closed and will not function anymore */
630 zval function; member in struct:_pdo_stmt_t::__anon3::__anon5
664 /* For the convenience of drivers, this function will parse a data source
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_php_trace.c79 long function; local
89 function = l;
91 if (valid_ptr(function)) {
92 if (0 > fpm_trace_get_long(function + offsetof(zend_function, common.function_name), &l)) {
140 function = l;
142 if (!valid_ptr(function)) {
147 if (0 > fpm_trace_get_long(function + offsetof(zend_function, type), &l)) {
152 if (0 > fpm_trace_get_long(function + offsetof(zend_op_array, filename), &l)) {
H A Dzlog.c101 void vzlog(const char *function, int line, int flags, const char *fmt, va_list args) /* {{{ */ argument
133 len += snprintf(buf, buf_size, "[%s] %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], function, line);
146 len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], getpid(), function, line);
148 len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], function, line);
198 void zlog_ex(const char *function, int line, int flags, const char *fmt, ...) /* {{{ */ { argument
201 vzlog(function, line, flags, fmt, args);
/PHP_TRUNK/Zend/
H A Dzend_language_parser.y168 %token T_FUNCTION "function (T_FUNCTION)"
255 %type <num> returns_ref function is_reference is_variadic variable_modifiers
462 function returns_ref T_STRING '(' parameter_list ')' return_type
694 | method_modifiers function returns_ref identifier '(' parameter_list ')'
947 | function returns_ref '(' parameter_list ')' lexical_vars return_type
952 | T_STATIC function returns_ref '(' parameter_list ')' lexical_vars
959 function: label
H A Dzend_opcode.c104 ZEND_API void destroy_zend_function(zend_function *function) argument
106 if (function->type == ZEND_USER_FUNCTION) {
107 destroy_op_array(&function->op_array);
109 ZEND_ASSERT(function->type == ZEND_INTERNAL_FUNCTION);
110 ZEND_ASSERT(function->common.function_name);
111 zend_string_release(function->common.function_name);
117 zend_function *function = Z_PTR_P(zv); local
119 if (function->type == ZEND_USER_FUNCTION) {
120 ZEND_ASSERT(function->common.function_name);
121 destroy_op_array(&function
[all...]
H A Dzend_execute_API.c101 zend_function *function = Z_PTR_P(zv); local
102 return (function->type == ZEND_INTERNAL_FUNCTION) ? ZEND_HASH_APPLY_STOP : ZEND_HASH_APPLY_REMOVE;
108 zend_function *function = Z_PTR_P(zv); local
109 return (function->type == ZEND_INTERNAL_FUNCTION) ? ZEND_HASH_APPLY_KEEP : ZEND_HASH_APPLY_REMOVE;
304 * Suppose we destroy class X, which destroys the class's function table,
305 * and in the function table we have function foo() that has static $bar.
307 * called and will fail since X's function table is in mid-destruction.
857 /* We must re-initialize function again */
870 /* saves one function cal
[all...]
/PHP_TRUNK/ext/filter/
H A Dfilter.c37 void (*function)(PHP_INPUT_FILTER_PARAM_DECL); member in struct:filter_list_entry
400 filter_func.function(value, flags, options, charset);
438 case PARSE_STRING: /* PARSE_STRING is used by parse_str() function */
750 * the function: normally when validation fails false is returned, and
820 * the function: normally when validation fails false is returned, and
/PHP_TRUNK/main/
H A Dmain.c299 /* {{{ php_get_display_errors_mode() helper function
715 const char *function; local
731 /* which function caused the problem if any at all */
733 function = "PHP Startup";
735 function = "PHP Shutdown";
744 function = "eval";
748 function = "include";
752 function = "include_once";
756 function = "require";
760 function
1960 dummy_invalid_parameter_handler( const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pEwserved) argument
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_sdl.c897 sdlFunctionPtr function; local
938 function = emalloc(sizeof(sdlFunction));
939 memset(function, 0, sizeof(sdlFunction));
940 function->functionName = estrdup((char*)op_name->children->content);
972 function->bindingAttributes = (void *)soapFunctionBinding;
983 function->requestParameters = wsdl_message(&ctx, message->children->content);
988 function->requestName = estrdup(name->children->content);
992 function->requestName = estrdup(function->functionName);
998 sdlSoapBindingFunctionPtr soapFunctionBinding = function
3484 sdlFunctionPtr function = Z_PTR_P(zv); local
3523 sdlFunctionPtr function = Z_PTR_P(zv); local
[all...]
H A Dsoap.c38 sdlFunctionPtr function; member in struct:_soapHeader
49 static void function_to_string(sdlFunctionPtr function, smart_str *buf);
56 static void soap_server_fault_ex(sdlFunctionPtr function, zval* fault, soapHeader* hdr);
58 static sdlParamPtr get_param(sdlFunctionPtr function, char *param_name, int index, int);
63 static xmlDocPtr serialize_response_call(sdlFunctionPtr function, char *function_name,char *uri,zval *ret, soapHeader *headers, int version);
64 static xmlDocPtr serialize_function_call(zval *this_ptr, sdlFunctionPtr function, char *function_name, char *uri, zval *arguments, int arg_count, int version, HashTable *soap_headers);
1282 php_error_docref(NULL, E_WARNING, "Tried to set persistence when you are using you SOAP SERVER in function mode, no persistence needed");
1435 php_error_docref(NULL, E_WARNING, "Tried to add a function that isn't a string");
1443 php_error_docref(NULL, E_WARNING, "Tried to add a non existent function '%s'", Z_STRVAL_P(tmp_function));
1461 php_error_docref(NULL, E_WARNING, "Tried to add a non existent function '
1491 _soap_server_exception(soapServicePtr service, sdlFunctionPtr function, zval *this_ptr) argument
1526 sdlFunctionPtr function; local
2061 soap_server_fault_ex(sdlFunctionPtr function, zval* fault, soapHeader *hdr) argument
2623 do_soap_call(zend_execute_data *execute_data, zval* this_ptr, char* function, size_t function_len, int arg_count, zval* real_args, zval* return_value, char* location, char* soap_action, char* call_uri, HashTable* soap_headers, zval* output_headers ) argument
2857 char *function, *location=NULL, *soap_action = NULL, *uri = NULL; local
2971 sdlFunctionPtr function; local
3329 deserialize_parameters(xmlNodePtr params, sdlFunctionPtr function, int *num_params, zval **parameters) argument
3419 sdlFunctionPtr function; local
3450 sdlFunctionPtr function; local
3743 serialize_response_call2(xmlNodePtr body, sdlFunctionPtr function, char *function_name, char *uri, zval *ret, int version, int main, xmlNodePtr *node) argument
3844 serialize_response_call(sdlFunctionPtr function, char *function_name, char *uri, zval *ret, soapHeader* headers, int version) argument
4203 serialize_function_call(zval *this_ptr, sdlFunctionPtr function, char *function_name, char *uri, zval *arguments, int arg_count, int version, HashTable *soap_headers) argument
4459 get_param(sdlFunctionPtr function, char *param_name, int index, int response) argument
4568 function_to_string(sdlFunctionPtr function, smart_str *buf) argument
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c871 string_printf(str, "function ");
878 /* The information where a function is declared is only available for user classes */
1279 static void reflection_function_factory(zend_function *function, zval *closure_object, zval *object) argument
1284 ZVAL_STR_COPY(&name, function->common.function_name);
1288 intern->ptr = function;
1543 /* Returns from this function */
1612 Constructor. Throws an Exception in case the given function does not exist */
1688 Returns this function's name */
1754 Returns a dynamically created closure for the function */
1770 Returns whether this is an internal function */
5675 zval function; local
5688 zend_hash_update(Z_ARRVAL_P(return_value), fptr->common.function_name, &function); local
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_util_funcs.c47 zend_function *function = Z_PTR_P(zv); local
49 if (function->type == ZEND_USER_FUNCTION) {
50 if (function->op_array.static_variables) {
51 if (!(GC_FLAGS(function->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
52 if (--GC_REFCOUNT(function->op_array.static_variables) == 0) {
53 FREE_HASHTABLE(function->op_array.static_variables);
56 function->op_array.static_variables = NULL;
60 destroy_zend_function(function);
107 zend_function *function = Z_PTR_P(zv); local
108 return(function
128 zend_function *function = Z_PTR(p->val); local
142 zend_internal_function *function = Z_PTR_P(zv); local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_print.c37 PHPDBG_PRINT_COMMAND_D(func, "print out the instructions in the specified function", 'f', print_func, NULL, "s", PHPDBG_ASYNC_SAFE),
74 phpdbg_writeln("printoplineinfo", "type=\"User\" startline=\"%d\" endline=\"%d\" function=\"%s\" file=\"%s\" opline=\"%p\"", "L%d-%d %s() %s - %p + %d ops",
99 phpdbg_writeln("printoplineinfo", "type=\"Internal\" function=\"%s\"", "\tInternal %s()", ZSTR_VAL(method->common.function_name));
132 phpdbg_notice("printinfo", "function=\"%s\" num=\"%d\"", "Stack in %s() (%d ops)", ZSTR_VAL(ops->function_name), ops->last);
230 phpdbg_error("inactive", "type=\"function_table\"", "No function table loaded");
249 phpdbg_error("print", "type=\"nofunction\" function=\"%s\"", "The function %s could not be found", func_name);
252 phpdbg_error("signalsegv", "function=\"%.*s\"", "Couldn't fetch function %.*s, invalid data source", (int) func_name_len, func_name);
261 phpdbg_out("function nam
265 phpdbg_print_opcodes_function(const char *function, size_t len) argument
285 phpdbg_print_opcodes_method_ce(zend_class_entry *ce, const char *function) argument
301 phpdbg_print_opcodes_method(const char *class, const char *function) argument
378 phpdbg_print_opcodes(char *function) argument
[all...]
H A Dphpdbg_bp.c42 * A set breakpoint function must always map new points
399 phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" function=\"%s\"", "Breakpoint #%d added at %s", new_break.id, new_break.symbol);
403 phpdbg_error("breakpoint", "type=\"exists\" add=\"fail\" function=\"%s\"", "Breakpoint exists at %s", name);
479 phpdbg_error("breakpoint", "type=\"maxoplines\" add=\"fail\" maxoplinenum=\"%d\" function=\"%s\" usedoplinenum=\"%ld\"", "There are only %d oplines in function %s (breaking at opline %ld impossible)", op_array->last, brake->func_name, brake->opline_num);
595 phpdbg_error("breakpoint", "type=\"internalfunction\" function=\"%s\"", "%s is not a user defined function, no oplines exist", new_break->func_name);
609 /* TODO ... method/function oplines need to be normalized (leading backslash, lowercase) and file oplines need to be resolved properly */
664 PHPDBG_API void phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline) /* {{{ */ argument
670 new_break.func_len = strlen(function);
979 zend_function *function = execute_data->func; local
[all...]
H A Dphpdbg_prompt.c88 PHPDBG_COMMAND_D(register,"register a function", 'R', NULL, "s", 0),
840 phpdbg_error("print", "type=\"invalidarg\"", "Invalid arguments to print, expected nothing, function name or method name");
1172 zend_function *function; local
1177 if ((function = zend_hash_str_find_ptr(EG(function_table), lcname, lcname_len))) {
1178 zend_hash_str_update_ptr(&PHPDBG_G(registered), lcname, lcname_len, function); local
1179 function_add_ref(function);
1181 phpdbg_notice("register", "function=\"%s\"", "Registered %s", lcname);
1183 phpdbg_error("register", "type=\"notfound\" function=\"%s\"", "The requested function (%s) could not be found", param->str);
1186 phpdbg_error("register", "type=\"inuse\" function
[all...]
H A Dphpdbg.c178 zend_function *function = (zend_function *) Z_PTR_P(data); local
179 destroy_zend_function(function);
339 /* {{{ proto void phpdbg_break_function(string function) */
342 char *function = NULL; local
345 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &function, &function_len) == FAILURE) {
349 phpdbg_set_breakpoint_symbol(function, function_len);
685 ZEND_ARG_INFO(0, function)
771 /* We do nothing here, this function is needed to prevent that the fallback
1151 /* This function *strictly* assumes that SIGIO is *only* used on the remote connection stream */
H A Dphpdbg_list.c44 PHPDBG_LIST_COMMAND_D(func, "lists the specified function", 'f', list_func, NULL, "s", PHPDBG_ASYNC_SAFE),
87 zend_function *function; local
90 if ((function = zend_hash_str_find_ptr(&ce->function_table, lcname, strlen(lcname)))) {
91 phpdbg_list_function(function);
184 phpdbg_error("list", "type=\"internalfunction\" function=\"%s\"", "The function requested (%s) is not user defined", ZSTR_VAL(fbc->common.function_name));
212 phpdbg_error("inactive", "type=\"function_table\"", "No function table loaded");
225 phpdbg_error("list", "type=\"nofunction\" function=\"%s\"", "Function %s not found", func_name);
228 phpdbg_error("signalsegv", "function=\"%s\"", "Could not list function
[all...]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c3387 basic_functions, /* function list */
3838 Given the name of a constant this function will return the constant's associated value */
4759 Call a user function which is the first parameter
4760 Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
4787 Call a user function which is the first parameter with the arguments contained in array
4788 Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
4818 Call a user function which is the first parameter */
4849 Call a user function which is the first parameter with the arguments contained in array */
4910 php_error(E_WARNING, "(Registered shutdown functions) Unable to call %s() - function does not exist", ZSTR_VAL(function_name));
4913 php_error(E_WARNING, "(Registered shutdown functions) Unable to call - function doe
4936 zval *function = &tick_fe->arguments[0]; local
5702 zval *function; local
[all...]
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.c1003 static zend_string *preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_names, int count, unsigned char *mark) argument
1007 zval args[1]; /* Argument to pass to function */
1027 if (call_user_function_ex(EG(function_table), NULL, function, &retval, 1, args, 0, NULL) == SUCCESS && Z_TYPE(retval) != IS_UNDEF) {
1032 php_error_docref(NULL, E_WARNING, "Unable to call custom replacement function");
1096 zend_string *eval_result=NULL; /* Result of custom function */
1245 /* Use custom function to get replacement string and its length. */
1264 /* If using custom function, copy result to the buffer and clean up. */
1492 /* Get function parameters and do error-checking. */
1530 /* Get function parameters and do error-checking. */
1572 /* Get function parameter
[all...]

Completed in 86 milliseconds

12