Searched refs:function (Results 1 - 25 of 43) 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);
H A Dzlog.h20 void zlog_ex(const char *function, int line, int flags, const char *fmt, ...)
H A Dfpm_php_trace.c74 long function;
79 if (0 > fpm_trace_get_long(execute_data + offsetof(zend_execute_data, function_state.function), &l)) {
83 function = l;
85 if (valid_ptr(function)) {
86 if (0 > fpm_trace_get_strz(buf, buf_size, function + offsetof(zend_function, common.function_name))) {
/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 DgtBasicTestCaseFunction.php4 * Basic test case for a PHP function
10 public function __construct($opt) {
15 * Set the function name
17 * @param gtFunction $function
19 public function setFunction($function) {
20 $this->subject = $function;
23 public function constructTestCase() {
39 public function testHeader() {
42 $this->testCase[] = "Test function "
[all...]
H A DgtErrorTestCaseFunction.php4 * Error test case for a PHP function
9 public function __construct($opt) {
14 * Set the function name
16 * @param string $function
18 public function setFunction($function) {
19 $this->subject = $function;
27 public function constructTestCase() {
39 public function testHeader() {
41 $this->testCase[] = "Test function "
[all...]
H A DgtVariationTestCaseFunction.php4 * Class for variation tests for a PHP function
12 public function __construct($opt) {
18 * @param gtfunction $function
22 public function setUp(gtfunction $function, $argumentNumber, $variationData) {
23 $this->subject = $function;
34 public function constructTestCase() {
44 public function testHeader() {
46 $this->testCase[] = "Test function ".$this->subject->getName()."() by substituting argument ".$this->argumentNumber." with ".$this->variationData." values.";
50 public function subjectCall
[all...]
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/scripts/dev/
H A Dfind_tested.php84 function mark_methods_as_tested($method_info, $phpt_files) {
91 // go through method info array marking this function as tested
113 function populate_method_info() {
121 foreach ($internal_functions as $function) {
125 $function_record[METHOD_NAME] = $function;
130 // record the extension that the function belongs to
131 $reflectionFunction = new ReflectionFunction($function);
178 function get_phpt_files($dir, &$phpt_file_count, &$all_phpt)
196 function extract_tests($file) {
212 function filter_function
[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/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
3486 sdlFunctionPtr function = Z_PTR_P(zv); local
3525 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);
1268 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");
1421 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a function that isn't a string");
1429 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existent function '%s'", Z_STRVAL_P(tmp_function));
1447 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existent function '
1492 sdlFunctionPtr function; local
2066 soap_server_fault_ex(sdlFunctionPtr function, zval* fault, soapHeader *hdr TSRMLS_DC) argument
2625 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 TSRMLS_DC) argument
2852 char *function, *location=NULL, *soap_action = NULL, *uri = NULL; local
2968 sdlFunctionPtr function; local
3320 deserialize_parameters(xmlNodePtr params, sdlFunctionPtr function, int *num_params, zval **parameters TSRMLS_DC) argument
3411 sdlFunctionPtr function; local
3442 sdlFunctionPtr function; local
3735 serialize_response_call2(xmlNodePtr body, sdlFunctionPtr function, char *function_name, char *uri, zval *ret, int version, int main, xmlNodePtr *node TSRMLS_DC) argument
3837 serialize_response_call(sdlFunctionPtr function, char *function_name, char *uri, zval *ret, soapHeader* headers, int version TSRMLS_DC) argument
4194 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
4448 get_param(sdlFunctionPtr function, char *param_name, int index, int response) argument
4557 function_to_string(sdlFunctionPtr function, smart_str *buf) argument
[all...]
/PHP_TRUNK/Zend/
H A Dzend_opcode.c101 ZEND_API void destroy_zend_function(zend_function *function TSRMLS_DC)
103 if (function->type == ZEND_USER_FUNCTION) {
104 destroy_op_array(&function->op_array TSRMLS_CC);
106 ZEND_ASSERT(function->type == ZEND_INTERNAL_FUNCTION);
107 ZEND_ASSERT(function->common.function_name);
108 zend_string_release(function->common.function_name);
114 zend_function *function = Z_PTR_P(zv); local
117 if (function->type == ZEND_USER_FUNCTION) {
118 ZEND_ASSERT(function->common.function_name);
119 destroy_op_array(&function
[all...]
H A Dzend_language_parser.y177 %token T_FUNCTION "function (T_FUNCTION)"
257 %type <num> returns_ref function is_reference is_variadic class_type variable_modifiers
408 function returns_ref T_STRING '(' parameter_list ')' backup_doc_comment
618 | method_modifiers function returns_ref T_STRING '(' parameter_list ')' backup_doc_comment
855 | function returns_ref '(' parameter_list ')' lexical_vars backup_doc_comment
860 | T_STATIC function returns_ref '(' parameter_list ')' lexical_vars backup_doc_comment
867 function: label
H A Dzend_compile.h205 /* function flag for internal user call handlers __call, __callstatic */
216 /* function has arguments with type hinting */
222 /* internal function is allocated at arena */
339 #define ZEND_FN_SCOPE_NAME(function) ((function) && (function)->common.scope ? (function)->common.scope->name->val : "")
360 VM_FRAME_NESTED_FUNCTION, /* stackless VM call to function */
362 VM_FRAME_TOP_FUNCTION, /* direct VM call to function from external C code */
377 zend_class_entry *scope; /* function scop
[all...]
H A Dzend_inheritance.c57 zend_function *function, *new_function; local
119 if ((function = zend_hash_str_find_ptr(&ce->parent->function_table, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)-1)) != NULL) {
121 if (function->type == ZEND_INTERNAL_FUNCTION) {
124 memcpy(new_function, function, sizeof(zend_internal_function));
127 memcpy(new_function, function, sizeof(zend_internal_function));
132 memcpy(new_function, function, sizeof(zend_op_array));
147 (function = zend_hash_find_ptr(&ce->parent->function_table, lc_parent_class_name)) != NULL) {
148 if (function->common.fn_flags & ZEND_ACC_CTOR) {
150 if (function->type == ZEND_INTERNAL_FUNCTION) {
153 memcpy(new_function, function, sizeo
[all...]
/PHP_TRUNK/win32/build/
H A Dphpize.js.in34 function ERROR(msg)
40 function file_get_contents(filename)
52 function Module_Item(module_name, config_path, dir_line, deps, content)
61 function get_module_dep(contents)
78 function find_config_w32(dirname)
123 function emit_module(item)
128 function emit_dep_modules(module_names)
150 function gen_modules()
176 function buildconf_process_args()
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_util_funcs.c55 zend_function *function = Z_PTR_P(zv); local
58 if (function->type == ZEND_USER_FUNCTION) {
59 if (function->op_array.static_variables) {
61 FREE_HASHTABLE(function->op_array.static_variables);
62 function->op_array.static_variables = NULL;
66 destroy_zend_function(function TSRMLS_CC);
113 zend_function *function = Z_PTR_P(zv); local
114 return(function->type != ZEND_INTERNAL_FUNCTION);
128 zend_function *function = Z_PTR_P(zv); local
132 if (function
151 zend_internal_function *function = Z_PTR_P(zv); local
[all...]
/PHP_TRUNK/sapi/phpdbg/
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 TSRMLS_CC);
184 phpdbg_error("list", "type=\"internalfunction\" function=\"%s\"", "The function requested (%s) is not user defined", 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...]
H A Dphpdbg_bp.h135 PHPDBG_API void phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline TSRMLS_DC);
H A Dphpdbg.c178 zend_function *function = (zend_function *) Z_PTR_P(data); local
182 destroy_zend_function(function TSRMLS_CC);
340 /* {{{ proto void phpdbg_break_function(string function) */
343 char *function = NULL; local
346 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &function, &function_len) == FAILURE) {
350 phpdbg_set_breakpoint_symbol(function, function_len TSRMLS_CC);
417 ZEND_ARG_INFO(0, function)
489 /* We do nothing here, this function is needed to prevent that the fallback
887 /* This function *strictly* assumes that SIGIO is *only* used on the remote connection stream */
/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
756 const char *function; local
772 /* which function caused the problem if any at all */
774 function = "PHP Startup";
776 function = "PHP Shutdown";
785 function = "eval";
789 function = "include";
793 function
2011 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 47 milliseconds

12