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

12

/PHP_TRUNK/ext/skeleton/
H A Dskeleton.php14 $function = 'confirm_' . $module . '_compiled'; variable
16 $str = $function($module);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dzlog.c101 void zlog_ex(const char *function, int line, int flags, const char *fmt, ...) /* {{{ */ 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);
/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/sapi/phpdbg/
H A Dphpdbg_list.c44 PHPDBG_LIST_COMMAND_D(func, "lists the specified function", 'f', list_func, NULL, "s"),
85 zend_function *function; local
88 if (zend_hash_find(&(*ce)->function_table, lcname, strlen(lcname)+1, (void**) &function) == SUCCESS) {
89 phpdbg_list_function(function TSRMLS_CC);
187 phpdbg_error("The function requested (%s) is not user defined", fbc->common.function_name);
216 phpdbg_error("No function table loaded");
H A Dphpdbg.c141 zend_function *function = (zend_function*) data; local
145 function TSRMLS_CC);
412 /* We do nothing here, this function is needed to prevent that the fallback
H A Dphpdbg_bp.c42 * A set breakpoint function must always map new points
366 phpdbg_error("There are only %d oplines in function %s (breaking at opline %ld impossible)", op_array->last, brake->func_name, brake->opline_num);
485 phpdbg_error("%s is not an user defined function, no oplines exist", new_break->func_name);
559 PHPDBG_API void phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline TSRMLS_DC) /* {{{ */ argument
565 new_break.func_len = strlen(function);
566 new_break.func_name = estrndup(function, new_break.func_len);
893 zend_function *function = (zend_function*) execute_data->function_state.function; local
898 /* function breakpoint */
900 if (function
[all...]
H A Dphpdbg_prompt.c61 PHPDBG_COMMAND_D(register,"register a function", 'R', NULL, "s"),
881 zend_function *function; local
886 if (zend_hash_find(EG(function_table), lcname, lcname_len+1, (void**) &function) == SUCCESS) {
888 &PHPDBG_G(registered), lcname, lcname_len+1, (void*)&function, sizeof(zend_function), NULL);
889 function_add_ref(function);
894 phpdbg_error("The requested function (%s) could not be found", param->str);
1140 EX(function_state).function = (zend_function *) op_array;
/PHP_TRUNK/ext/filter/
H A Dfilter.c37 void (*function)(PHP_INPUT_FILTER_PARAM_DECL); member in struct:filter_list_entry
391 filter_func.function(value, flags, options, charset TSRMLS_CC);
429 case PARSE_STRING: /* PARSE_STRING is used by parse_str() function */
747 * the function: normally when validation fails false is returned, and
817 * the function: normally when validation fails false is returned, and
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.c954 static zend_string *preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_names, int count, unsigned char *mark TSRMLS_DC) argument
958 zval args[1]; /* Argument to pass to function */
978 if (call_user_function_ex(EG(function_table), NULL, function, &retval, 1, args, 0, NULL TSRMLS_CC) == SUCCESS && Z_TYPE(retval) != IS_UNDEF) {
983 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call custom replacement function");
1126 zend_string *eval_result=NULL; /* Result of eval or custom function */
1217 /* Use custom function to get replacement string and its length. */
1253 /* If evaluating or using custom function, copy result to the buffer
1445 /* Get function parameters and do error-checking. */
1561 /* Get function parameters and do error checking */
/PHP_TRUNK/ext/soap/
H A Dphp_sdl.c898 sdlFunctionPtr function; local
939 function = emalloc(sizeof(sdlFunction));
940 memset(function, 0, sizeof(sdlFunction));
941 function->functionName = estrdup((char*)op_name->children->content);
973 function->bindingAttributes = (void *)soapFunctionBinding;
984 function->requestParameters = wsdl_message(&ctx, message->children->content);
989 function->requestName = estrdup(name->children->content);
993 function->requestName = estrdup(function->functionName);
999 sdlSoapBindingFunctionPtr soapFunctionBinding = function
3488 sdlFunctionPtr function = Z_PTR_P(zv); local
3527 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 TSRMLS_DC);
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 TSRMLS_DC);
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 TSRMLS_DC);
1267 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to set persistence when you are using you SOAP SERVER in function mode, no persistence needed");
1420 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a function that isn't a string");
1428 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existent function '%s'", Z_STRVAL_P(tmp_function));
1446 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existent function '
1491 sdlFunctionPtr function; local
2065 soap_server_fault_ex(sdlFunctionPtr function, zval* fault, soapHeader *hdr TSRMLS_DC) argument
2624 do_soap_call(zval* this_ptr, char* function, int 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 TSRMLS_DC) argument
2850 char *function, *location=NULL, *soap_action = NULL, *uri = NULL; local
2965 sdlFunctionPtr function; local
3317 deserialize_parameters(xmlNodePtr params, sdlFunctionPtr function, int *num_params, zval **parameters TSRMLS_DC) argument
3408 sdlFunctionPtr function; local
3439 sdlFunctionPtr function; local
3732 serialize_response_call2(xmlNodePtr body, sdlFunctionPtr function, char *function_name, char *uri, zval *ret, int version, int main, xmlNodePtr *node TSRMLS_DC) argument
3834 serialize_response_call(sdlFunctionPtr function, char *function_name, char *uri, zval *ret, soapHeader* headers, int version TSRMLS_DC) argument
4191 serialize_function_call(zval *this_ptr, sdlFunctionPtr function, char *function_name, char *uri, zval *arguments, int arg_count, int version, HashTable *soap_headers TSRMLS_DC) argument
4445 get_param(sdlFunctionPtr function, char *param_name, int index, int response) argument
4554 function_to_string(sdlFunctionPtr function, smart_str *buf) argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c3371 basic_functions, /* function list */
3813 Given the name of a constant this function will return the constant's associated value */
4715 Call a user function which is the first parameter */
4742 Call a user function which is the first parameter with the arguments contained in array */
4772 Call a user function which is the first parameter */
4801 Call a user function which is the first parameter with the arguments contained in array */
4859 php_error(E_WARNING, "(Registered shutdown functions) Unable to call %s() - function does not exist", function_name->val);
4885 zval *function = &tick_fe->arguments[0]; local
4887 /* Prevent reentrant calls to the same user ticks function */
4892 function,
5653 zval *function; local
[all...]
/PHP_TRUNK/ext/dba/
H A Ddba_db4.c51 const char *function = get_active_function_name(TSRMLS_C); local
52 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 */
628 zval function; member in struct:_pdo_stmt_t::__anon43::__anon45
662 /* For the convenience of drivers, this function will parse a data source
/PHP_TRUNK/Zend/
H A Dzend_API.c44 /* this function doesn't check for too many parameters */
80 /* this function doesn't check for too many parameters */
1051 * Z_OBJ(EG(This)) to NULL when calling an internal function with common.scope == NULL.
1133 /* This function should be called after the constructor has been called
1319 /* This function requires 'properties' to contain all props declared in the
2103 /* we don't care if the function name is longer, in fact lowercasing only
2162 /* registers all functions in *library_functions in the function hash */
2166 zend_function function, *reg_function; local
2167 zend_internal_function *internal_function = (zend_internal_function *)&function;
2223 /* Currently you cannot denote that the function ca
[all...]
H A Dzend_execute_API.c108 zend_function *function = Z_PTR_P(zv); local
109 return (function->type == ZEND_INTERNAL_FUNCTION) ? ZEND_HASH_APPLY_STOP : ZEND_HASH_APPLY_REMOVE;
115 zend_function *function = Z_PTR_P(zv); local
116 return (function->type == ZEND_INTERNAL_FUNCTION) ? ZEND_HASH_APPLY_KEEP : ZEND_HASH_APPLY_REMOVE;
295 * Suppose we destroy class X, which destroys the class's function table,
296 * and in the function table we have function foo() that has static $bar.
298 * called and will fail since X's function table is in mid-destruction.
865 /* saves one function call if zend_execute_internal is not used */
876 if (!EX(function_state).function
[all...]
H A Dzend_opcode.c102 ZEND_API void destroy_zend_function(zend_function *function TSRMLS_DC)
104 switch (function->type) {
106 destroy_op_array((zend_op_array *) function TSRMLS_CC);
109 if (function->common.function_name) {
110 zend_string_release(function->common.function_name);
119 zend_function *function = Z_PTR_P(zv); local
122 destroy_zend_function(function TSRMLS_CC);
123 if (function->type == ZEND_INTERNAL_FUNCTION) {
124 pefree(function, 1);
125 } else if (!function
[all...]
H A Dzend_language_parser.y172 %token T_FUNCTION "function (T_FUNCTION)"
252 %type <num> returns_ref function is_reference is_variadic class_type variable_modifiers
413 function returns_ref T_STRING '(' parameter_list ')' backup_doc_comment
625 | method_modifiers function returns_ref T_STRING '(' parameter_list ')' backup_doc_comment
868 | function returns_ref '(' parameter_list ')' lexical_vars backup_doc_comment
873 | T_STATIC function returns_ref '(' parameter_list ')' lexical_vars backup_doc_comment
880 function: label
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c141 /* O+ overrides PHP chdir() function and remembers the current working directory
380 /* function table hash keys */
1321 * function and class tables (see: https://bugs.php.net/bug.php?id=64353)
1363 /* Save the original values for the op_array, function table and class table */
1459 * once each execution (this function can be called more than once on
1975 zend_function *function = Z_PTR_P(zv); local
1977 if (function->type == ZEND_INTERNAL_FUNCTION) {
1980 if (function->op_array.static_variables) {
1981 function->op_array.static_variables->pDestructor = accel_fast_zval_dtor;
1982 accel_fast_hash_destroy(function
1993 zend_function *function = Z_PTR_P(zv); local
[all...]
H A Dzend_accelerator_util_funcs.c52 zend_function *function = Z_PTR_P(zv); local
55 if (function->type == ZEND_USER_FUNCTION) {
56 if (function->op_array.static_variables) {
58 FREE_HASHTABLE(function->op_array.static_variables);
59 function->op_array.static_variables = NULL;
63 destroy_zend_function(function TSRMLS_CC);
168 zend_function *function = Z_PTR_P(zv); local
169 return(function->type != ZEND_INTERNAL_FUNCTION);
183 zend_function *function = Z_PTR_P(zv); local
187 if (function
206 zend_internal_function *function = Z_PTR_P(zv); local
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c886 string_printf(str, "function ");
893 /* The information where a function is declared is only available for user classes */
1249 static void reflection_function_factory(zend_function *function, zval *closure_object, zval *object TSRMLS_DC) argument
1254 ZVAL_STR(&name, zend_string_copy(function->common.function_name));
1258 intern->ptr = function;
1512 /* Returns from this function */
1581 Constructor. Throws an Exception in case the given function does not exist */
1657 Returns this function's name */
1723 Returns a dynamically created closure for the function */
1739 Returns whether this is an internal function */
5218 zval function; local
5232 zend_hash_update(Z_ARRVAL_P(return_value), fptr->common.function_name, &function); local
[all...]
/PHP_TRUNK/main/
H A Dmain.c140 php_printf("Unable to disable function '%s'\n", function_name_5[i]);
149 php_printf("Unable to disable function '%s'\n", function_name_6[i]);
332 /* {{{ php_get_display_errors_mode() helper function
754 const char *function; local
770 /* which function caused the problem if any at all */
772 function = "PHP Startup";
774 function = "PHP Shutdown";
783 function = "eval";
787 function = "include";
791 function
2016 dummy_invalid_parameter_handler( const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pEwserved) argument
[all...]

Completed in 65 milliseconds

12