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/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, E_WARNING, "An error occurred while invoking the callback");
420 sqlite3_result_error(context, "failed to invoke callback", 0);
481 ZVAL_COPY_VALUE(&collation->fc.fci.function_name, &collation->callback);
493 php_error_docref(NULL, E_WARNING, "An error occurred while invoking the callback");
513 /* {{{ bool SQLite::sqliteCreateFunction(string name, mixed callback [, int argcount])
518 zval *callback; local
528 &func_name, &func_name_len, &callback, &argc)) {
535 if (!zend_is_callable(callback,
649 zval *callback; local
[all...]
/PHP_TRUNK/ext/interbase/
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)) {
289 &callback, &return_value, argc, args)) {
305 zval_dtor(&callback);
307 /* return whatever type we got back from the callback: let DB handle conversion */
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)) {
236 _php_ibase_module_error("Error calling callback %s", 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
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_jit_compile.c184 PUBL(jit_callback) callback;
10419 if (functions->callback)
10420 arguments.stack = (struct sljit_stack *)functions->callback(functions->userdata);
10590 pcre_assign_jit_stack(pcre_extra *extra, pcre_jit_callback callback, void *userdata) argument
10593 pcre16_assign_jit_stack(pcre16_extra *extra, pcre16_jit_callback callback, void *userdata)
10596 pcre32_assign_jit_stack(pcre32_extra *extra, pcre32_jit_callback callback, void *userdata)
10605 functions->callback = callback;
10661 pcre_assign_jit_stack(pcre_extra *extra, pcre_jit_callback callback, void *userdata) argument
10664 pcre16_assign_jit_stack(pcre16_extra *extra, pcre16_jit_callback callback, voi
[all...]
/PHP_TRUNK/ext/sqlite3/libsqlite/
H A Dsqlite3.c524 ** The type for a callback function.
542 ** argument. ^If the callback function of the 3rd argument to
546 ** callback invocation. ^If the callback pointer to sqlite3_exec()
547 ** is NULL, then no callback is ever invoked and result rows are
562 ** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()
563 ** routine returns SQLITE_ABORT without invoking the callback again and
566 ** ^The 2nd argument to the sqlite3_exec() callback function is the
568 ** callback is an array of pointers to strings obtained as if from
571 ** sqlite3_exec() callback i
[all...]
H A Dsqlite3.h317 ** The type for a callback function.
335 ** argument. ^If the callback function of the 3rd argument to
339 ** callback invocation. ^If the callback pointer to sqlite3_exec()
340 ** is NULL, then no callback is ever invoked and result rows are
355 ** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()
356 ** routine returns SQLITE_ABORT without invoking the callback again and
359 ** ^The 2nd argument to the sqlite3_exec() callback function is the
361 ** callback is an array of pointers to strings obtained as if from
364 ** sqlite3_exec() callback i
[all...]
/PHP_TRUNK/sapi/phpdbg/
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);
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, phpdbg_parse_var_with_arg_func step_cb, zend_bool silent, void *arg);
H A Dphpdbg_utils.c404 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) { argument
405 return callback(name, len, keyname, keylen, parent, zv);
408 PHPDBG_API int phpdbg_parse_variable(char *input, size_t len, HashTable *parent, size_t i, phpdbg_parse_var_func callback, zend_bool silent) { argument
409 return phpdbg_parse_variable_with_arg(input, len, parent, i, (phpdbg_parse_var_with_arg_func) phpdbg_parse_variable_arg_wrapper, NULL, silent, callback);
412 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, phpdbg_parse_var_with_arg_func step_cb, zend_bool silent, void *arg) { argument
478 ret = callback(name, namelen, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
487 phpdbg_parse_variable_with_arg(input, len, Z_OBJPROP_P(zv), i, callback, step_cb, silent, arg);
496 phpdbg_parse_variable_with_arg(input, len, Z_ARRVAL_P(zv), i, callback, step_cb, silent, arg);
530 ret = callback(name, i, keyname, index_len, parent, zv, arg) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
H A Dphpdbg_watch.c629 static int phpdbg_watchpoint_parse_wrapper(char *name, size_t namelen, char *key, size_t keylen, HashTable *parent, zval *zv, int (*callback)(phpdbg_watchpoint_t *)) {
637 ret = callback(watch);
652 PHPDBG_API int phpdbg_watchpoint_parse_input(char *input, size_t len, HashTable *parent, size_t i, int (*callback)(phpdbg_watchpoint_t *), zend_bool silent) {
653 return phpdbg_parse_variable_with_arg(input, len, parent, i, (phpdbg_parse_var_with_arg_func) phpdbg_watchpoint_parse_wrapper, NULL, 0, callback);
656 static int phpdbg_watchpoint_parse_step(char *name, size_t namelen, char *key, size_t keylen, HashTable *parent, zval *zv, int (*callback)(phpdbg_watchpoint_t *)) {
682 static int phpdbg_watchpoint_parse_symtables(char *input, size_t len, int (*callback)(phpdbg_watchpoint_t *)) {
687 if (phpdbg_is_auto_global(input, len) && phpdbg_watchpoint_parse_input(input, len, &EG(symbol_table), 0, callback, 1) != FAILURE) {
691 return phpdbg_parse_variable_with_arg(input, len, EG(current_execute_data)->symbol_table, 0, (phpdbg_parse_var_with_arg_func) phpdbg_watchpoint_parse_wrapper, (phpdbg_parse_var_with_arg_func) phpdbg_watchpoint_parse_step, 0, callback);
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c464 ZEND_ARG_INFO(0, callback)
/PHP_TRUNK/ext/readline/
H A Dreadline.c113 ZEND_ARG_INFO(0, callback)
558 /* {{{ proto void readline_callback_handler_install(string prompt, mixed callback)
559 Initializes the readline callback interface and terminal, prints the prompt and returns immediately */
562 zval *callback; local
567 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "sz", &prompt, &prompt_len, &callback)) {
571 if (!zend_is_callable(callback, 0, &name)) {
583 ZVAL_DUP(&_prepped_callback, callback);
592 Informs the readline callback interface that a character is ready for input */
602 Removes a previously installed callback handler and restores terminal settings */
/PHP_TRUNK/ext/intl/uchar/
H A Duchar.c169 ZEND_ARG_INFO(0, callback)
195 intl_errors_set_custom_msg(NULL, "enumCharTypes callback failed", 0);
281 /* {{{ void void IntlChar::enumCharNames(int|string $start, int|string $limit, callable $callback, int $nameChoice = IntlChar::UNICODE_CHAR_NAME) */
285 ZEND_ARG_INFO(0, callback)
309 intl_error_set_custom_msg(NULL, "enumCharNames callback failed", 0);
/PHP_TRUNK/ext/standard/
H A Dstreamsfuncs.c823 zval *callback = &context->notifier->ptr; local
839 if (FAILURE == call_user_function_ex(EG(function_table), NULL, callback, &retval, 6, zvs, 0, NULL)) {
H A Dassert.c29 zval callback;
58 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) {
59 zval_ptr_dtor(&ASSERTG(callback));
60 ZVAL_UNDEF(&ASSERTG(callback));
62 if (new_value && (Z_TYPE(ASSERTG(callback)) != IS_UNDEF || ZSTR_LEN(new_value))) {
63 ZVAL_STR_COPY(&ASSERTG(callback), new_value);
85 PHP_INI_ENTRY("assert.callback", NULL, PHP_INI_ALL, OnChangeCallback)
92 ZVAL_UNDEF(&assert_globals_p->callback);
131 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) {
132 zval_ptr_dtor(&ASSERTG(callback));
[all...]
H A Dbasic_functions.c144 ZEND_ARG_INFO(0, callback)
572 ZEND_ARG_INFO(0, callback)
578 ZEND_ARG_INFO(0, callback)
583 ZEND_ARG_INFO(0, callback)
5029 /* {{{ proto void register_shutdown_function(callback function) U
5050 /* Prevent entering of anything but valid callback (syntax check only!) */
5053 php_error_docref(NULL, E_WARNING, "Invalid shutdown callback '%s' passed", ZSTR_VAL(callback_name));
5055 php_error_docref(NULL, E_WARNING, "Invalid shutdown callback passed");
5644 Registers a tick callback function */
5667 php_error_docref(NULL, E_WARNING, "Invalid tick callback '
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.c1614 /* {{{ proto void CallbackFilterIterator::__construct(Iterator it, callback func)
1903 /* {{{ proto void RecursiveCallbackFilterIterator::__construct(RecursiveIterator it, callback func)
1994 Calls the callback with the current value, the current key and the inner iterator as arguments */
2396 ZEND_ARG_INFO(0, callback)
2407 ZEND_ARG_INFO(0, callback)
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c750 php_error_docref(NULL, E_WARNING, "An error occurred while invoking the callback");
791 sqlite3_result_error(context, "failed to invoke callback", 0);
867 //Exception occurred on previous callback. Don't attempt to call function
869 php_error_docref(NULL, E_WARNING, "An error occurred while invoking the compare callback");
883 php_error_docref(NULL, E_WARNING, "An error occurred while invoking the compare callback (invalid return type). Collation behaviour is undefined.");
894 /* {{{ proto bool SQLite3::createFunction(string name, mixed callback [, int argcount])
919 php_sqlite3_error(db_obj, "Not a valid callback function %s", ZSTR_VAL(callback_name));
969 php_sqlite3_error(db_obj, "Not a valid callback function %s", ZSTR_VAL(callback_name));
976 php_sqlite3_error(db_obj, "Not a valid callback function %s", ZSTR_VAL(callback_name));
1002 /* {{{ proto bool SQLite3::createCollation(string name, mixed callback)
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c785 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)) /* {{{ */
822 if (SUCCESS != callback(opaque, e->fd, e->events)) {
834 if (SUCCESS != callback(opaque, fd, POLLIN)) {
839 if (SUCCESS != callback(opaque, fd, POLLOUT)) {
/PHP_TRUNK/ext/ldap/
H A Dldap.c2595 /* link exists and callback set? */
2597 php_error_docref(NULL, E_WARNING, "Link not found or no callback set");
2601 /* callback */
2609 php_error_docref(NULL, E_WARNING, "rebind_proc PHP callback failed");
2617 /* {{{ proto bool ldap_set_rebind_proc(resource link, string callback)
2618 Set a callback function to do re-binds on referral chasing. */
2621 zval *link, *callback; local
2625 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rz", &link, &callback) != SUCCESS) {
2633 if (Z_TYPE_P(callback) == IS_STRING && Z_STRLEN_P(callback)
[all...]
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.c1535 /* {{{ 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. */
1561 php_error_docref(NULL, E_WARNING, "Requires argument 2, '%s', to be a valid callback", ZSTR_VAL(callback_name));
1577 Perform Perl-style regular expression replacement using replacement callback. */
1612 php_error_docref(NULL, E_WARNING, "'%s' is not a valid callback", ZSTR_VAL(callback_name));
2167 ZEND_ARG_INFO(0, callback)

Completed in 192 milliseconds