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

/PHP_TRUNK/ext/spl/examples/
H A Dcallbackfilteriterator.inc14 * @brief A non abstract FiletrIterator that uses a callback foreach element
21 const USE_FALSE = 0; /**< mode: accept no elements, no callback */
22 const USE_TRUE = 1; /**< mode: accept all elements, no callback */
23 const USE_VALUE = 2; /**< mode: pass value to callback */
24 const USE_KEY = 3; /**< mode: pass key to callback */
25 const USE_BOTH = 4; /**< mode: pass value and key to callback */
29 private $callback; /**< callback to use */
38 * @param callback callback functio
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_events.h19 void (*callback)(struct fpm_event_s *, short, void *); member in struct:fpm_event_s
45 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg);
H A Dfpm_events.c463 if (!ev || !ev->callback) {
467 (*ev->callback)( (struct fpm_event_s *) ev, ev->which, ev->arg);
471 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg) /* {{{ */
473 if (!ev || !callback || fd < -1) {
478 ev->callback = callback;
/PHP_TRUNK/ext/sqlite3/libsqlite/
H A Dsqlite3.c427 ** The type for a callback function.
444 ** argument. ^If the callback function of the 3rd argument to
448 ** callback invocation. ^If the callback pointer to sqlite3_exec()
449 ** is NULL, then no callback is ever invoked and result rows are
464 ** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()
465 ** routine returns SQLITE_ABORT without invoking the callback again and
468 ** ^The 2nd argument to the sqlite3_exec() callback function is the
470 ** callback is an array of pointers to strings obtained as if from
473 ** sqlite3_exec() callback i
[all...]
H A Dsqlite3.h312 ** The type for a callback function.
329 ** argument. ^If the callback function of the 3rd argument to
333 ** callback invocation. ^If the callback pointer to sqlite3_exec()
334 ** is NULL, then no callback is ever invoked and result rows are
349 ** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()
350 ** routine returns SQLITE_ABORT without invoking the callback again and
353 ** ^The 2nd argument to the sqlite3_exec() callback function is the
355 ** callback is an array of pointers to strings obtained as if from
358 ** sqlite3_exec() callback i
[all...]
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_jit_compile.c182 PUBL(jit_callback) callback;
10427 if (functions->callback)
10428 arguments.stack = (struct sljit_stack *)functions->callback(functions->userdata);
10599 pcre_assign_jit_stack(pcre_extra *extra, pcre_jit_callback callback, void *userdata) argument
10602 pcre16_assign_jit_stack(pcre16_extra *extra, pcre16_jit_callback callback, void *userdata)
10605 pcre32_assign_jit_stack(pcre32_extra *extra, pcre32_jit_callback callback, void *userdata)
10614 functions->callback = callback;
10670 pcre_assign_jit_stack(pcre_extra *extra, pcre_jit_callback callback, void *userdata) argument
10673 pcre16_assign_jit_stack(pcre16_extra *extra, pcre16_jit_callback callback, voi
[all...]
/PHP_TRUNK/ext/interbase/
H A Dibase_events.c58 if (Z_TYPE(event->callback) != IS_UNDEF) {
59 zval_dtor(&event->callback);
60 ZVAL_UNDEF(&event->callback);
205 * The callback function is called when the event is first registered and when the event
206 * is cancelled. I consider this is a bug. By clearing event->callback first and setting
233 /* call the callback provided by the user */
235 &event->callback, &return_value, 2, args TSRMLS_CC)) {
236 _php_ibase_module_error("Error calling callback %s" TSRMLS_CC, Z_STRVAL(event->callback));
257 /* {{{ proto resource ibase_set_event_handler([resource link_identifier,] callback handle
[all...]
H A Dphp_ibase_includes.h103 zval callback; member in struct:event
H A Dphp_ibase_udf.c186 zval callback, args[4], return_value; local
190 ZVAL_STRING(&callback, name);
195 if (!zend_is_callable(&callback, 0, NULL TSRMLS_CC)) {
289 &callback, &return_value, argc, args TSRMLS_CC)) {
305 zval_dtor(&callback);
307 /* return whatever type we got back from the callback: let DB handle conversion */
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c471 ZEND_ARG_INFO(0, callback)
/PHP_TRUNK/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h45 /* accelerated callback references */
53 zval callback; member in struct:pdo_sqlite_collation
H A Dsqlite_driver.c148 if (!Z_ISUNDEF(collation->callback)) {
149 zval_ptr_dtor(&collation->callback);
383 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
420 sqlite3_result_error(context, "failed to invoke callback", 0);
485 ZVAL_COPY_VALUE(&collation->fc.fci.function_name, &collation->callback);
497 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
517 /* {{{ bool SQLite::sqliteCreateFunction(string name, mixed callback [, int argcount])
522 zval *callback; local
532 &func_name, &func_name_len, &callback, &argc)) {
539 if (!zend_is_callable(callback,
653 zval *callback; local
[all...]
/PHP_TRUNK/ext/readline/
H A Dreadline.c113 ZEND_ARG_INFO(0, callback)
559 /* {{{ proto void readline_callback_handler_install(string prompt, mixed callback)
560 Initializes the readline callback interface and terminal, prints the prompt and returns immediately */
563 zval *callback; local
568 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &prompt, &prompt_len, &callback)) {
572 if (!zend_is_callable(callback, 0, &name TSRMLS_CC)) {
584 ZVAL_DUP(&_prepped_callback, callback);
593 Informs the readline callback interface that a character is ready for input */
603 Removes a previously installed callback handler and restores terminal settings */
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c748 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
789 sqlite3_result_error(context, "failed to invoke callback", 0);
869 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback");
880 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback (invalid return type). Collation behaviour is undefined.");
891 /* {{{ proto bool SQLite3::createFunction(string name, mixed callback [, int argcount])
916 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name->val);
966 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name->val);
973 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name->val);
999 /* {{{ proto bool SQLite3::createCollation(string name, mixed callback)
1023 php_sqlite3_error(db_obj, "Not a valid callback functio
[all...]
/PHP_TRUNK/ext/sybase_ct/
H A Dphp_sybase_ct.c2195 zval **callback; local
2205 callback= &SybCtG(callback_name);
2210 callback= &sybase_ptr->callback_name;
2214 callback= &SybCtG(callback_name);
2217 /* Clean old callback */
2218 if (*callback) {
2219 zval_ptr_dtor(callback);
2220 *callback = NULL;
2224 ALLOC_ZVAL(*callback);
2225 **callback
[all...]
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.c1139 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Modifier /e cannot be used with replacement callback");
1471 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Requires argument 2, '%s', to be a valid callback", callback_name->val);
1535 /* {{{ proto mixed preg_replace_callback(mixed regex, mixed callback, mixed subject [, int limit [, int &count]])
1536 Perform Perl-style regular expression replacement using replacement callback. */
2022 ZEND_ARG_INFO(0, callback)
/PHP_TRUNK/ext/ldap/
H A Dldap.c2440 /* link exists and callback set? */
2442 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Link not found or no callback set");
2446 /* callback */
2454 php_error_docref(NULL TSRMLS_CC, E_WARNING, "rebind_proc PHP callback failed");
2462 /* {{{ proto bool ldap_set_rebind_proc(resource link, string callback)
2463 Set a callback function to do re-binds on referral chasing. */
2466 zval *link, *callback; local
2470 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &link, &callback) != SUCCESS) {
2476 if (Z_TYPE_P(callback) == IS_STRING && Z_STRLEN_P(callback)
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c833 static int php_cli_server_poller_iter_on_active(php_cli_server_poller *poller, void *opaque, int(*callback)(void *, php_socket_t fd, int events)) /* {{{ */
871 if (SUCCESS != callback(opaque, e->fd, e->events)) {
883 if (SUCCESS != callback(opaque, fd, POLLIN)) {
888 if (SUCCESS != callback(opaque, fd, POLLOUT)) {
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.c1615 /* {{{ proto void CallbackFilterIterator::__construct(Iterator it, callback)
1894 /* {{{ proto void RecursiveCallbackFilterIterator::__construct(RecursiveIterator it, callback)
1985 Calls the callback with the current value, the current key and the inner iterator as arguments */
2405 ZEND_ARG_INFO(0, callback)
2416 ZEND_ARG_INFO(0, callback)
/PHP_TRUNK/ext/standard/
H A Dassert.c28 zval callback;
57 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) {
58 zval_ptr_dtor(&ASSERTG(callback));
59 ZVAL_UNDEF(&ASSERTG(callback));
61 if (new_value && (Z_TYPE(ASSERTG(callback)) != IS_UNDEF || new_value->len)) {
62 ZVAL_STR_COPY(&ASSERTG(callback), new_value);
84 PHP_INI_ENTRY("assert.callback", NULL, PHP_INI_ALL, OnChangeCallback)
90 ZVAL_UNDEF(&assert_globals_p->callback);
123 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) {
124 zval_ptr_dtor(&ASSERTG(callback));
[all...]
H A Dbasic_functions.c144 ZEND_ARG_INFO(0, callback)
575 ZEND_ARG_INFO(0, callback)
581 ZEND_ARG_INFO(0, callback)
586 ZEND_ARG_INFO(0, callback)
4992 /* {{{ proto void register_shutdown_function(callback function) U
5013 /* Prevent entering of anything but valid callback (syntax check only!) */
5016 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid shutdown callback '%s' passed", callback_name->val);
5018 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid shutdown callback passed");
5607 Registers a tick callback function */
5630 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid tick callback '
[all...]
H A Dstreamsfuncs.c829 zval *callback = &context->notifier->ptr; local
845 if (FAILURE == call_user_function_ex(EG(function_table), NULL, callback, &retval, 6, zvs, 0, NULL TSRMLS_CC)) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_utils.c397 static int phpdbg_parse_variable_arg_wrapper(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv, phpdbg_parse_var_func callback TSRMLS_DC) {
398 return callback(name, len, keyname, keylen, parent, zv TSRMLS_CC);
401 PHPDBG_API int phpdbg_parse_variable(char *input, size_t len, HashTable *parent, size_t i, phpdbg_parse_var_func callback, zend_bool silent TSRMLS_DC) { argument
402 return phpdbg_parse_variable_with_arg(input, len, parent, i, (phpdbg_parse_var_with_arg_func) phpdbg_parse_variable_arg_wrapper, silent, callback TSRMLS_CC);
405 PHPDBG_API int phpdbg_parse_variable_with_arg(char *input, size_t len, HashTable *parent, size_t i, phpdbg_parse_var_with_arg_func callback, zend_bool silent, void *arg TSRMLS_DC) { argument
471 ret = callback(name, namelen, keyname, index_len, parent, zv, arg TSRMLS_CC) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
473 phpdbg_parse_variable_with_arg(input, len, Z_OBJPROP_P(zv), i, callback, silent, arg TSRMLS_CC);
475 phpdbg_parse_variable_with_arg(input, len, Z_ARRVAL_P(zv), i, callback, silent, arg TSRMLS_CC);
499 ret = callback(name, len, keyname, index_len, parent, zv, arg TSRMLS_CC) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
H A Dphpdbg_watch.c382 static int phpdbg_watchpoint_parse_wrapper(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv, int (*callback)(phpdbg_watchpoint_t * TSRMLS_DC) TSRMLS_DC) {
393 ret = callback(watch TSRMLS_CC);
404 PHPDBG_API int phpdbg_watchpoint_parse_input(char *input, size_t len, HashTable *parent, size_t i, int (*callback)(phpdbg_watchpoint_t * TSRMLS_DC), zend_bool silent TSRMLS_DC) {
405 return phpdbg_parse_variable_with_arg(input, len, parent, i, (phpdbg_parse_var_with_arg_func) phpdbg_watchpoint_parse_wrapper, 0, callback TSRMLS_CC);
408 static int phpdbg_watchpoint_parse_symtables(char *input, size_t len, int (*callback)(phpdbg_watchpoint_t * TSRMLS_DC) TSRMLS_DC) {
413 if (phpdbg_is_auto_global(input, len TSRMLS_CC) && phpdbg_watchpoint_parse_input(input, len, &EG(symbol_table).ht, 0, callback, 1 TSRMLS_CC) != FAILURE) {
417 return phpdbg_watchpoint_parse_input(input, len, &EG(current_execute_data)->symbol_table->ht, 0, callback, 0 TSRMLS_CC);
H A Dphpdbg_utils.h90 PHPDBG_API int phpdbg_parse_variable(char *input, size_t len, HashTable *parent, size_t i, phpdbg_parse_var_func callback, zend_bool silent TSRMLS_DC);
91 PHPDBG_API int phpdbg_parse_variable_with_arg(char *input, size_t len, HashTable *parent, size_t i, phpdbg_parse_var_with_arg_func callback, zend_bool silent, void *arg TSRMLS_DC);

Completed in 162 milliseconds