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

/PHP_5_6/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_5_6/sapi/fpm/fpm/
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;
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);
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_loaddata.c143 if (!conn->infile.callback) {
144 MAKE_STD_ZVAL(conn->infile.callback);
146 zval_dtor(conn->infile.callback);
148 ZVAL_STRING(conn->infile.callback, (char*) funcname, 1);
H A Dmysqlnd_structs.h156 zval *callback; member in struct:st_mysqlnd_infile
/PHP_5_6/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 (collation->callback) {
149 zval_ptr_dtor(&collation->callback);
388 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
428 sqlite3_result_error(context, "failed to invoke callback", 0);
494 collation->fc.fci.function_name = collation->callback;
510 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
532 /* {{{ bool SQLite::sqliteCreateFunction(string name, mixed callback [, int argcount])
537 zval *callback; local
547 &func_name, &func_name_len, &callback, &argc)) {
554 if (!zend_is_callable(callback,
671 zval *callback; local
[all...]
/PHP_5_6/ext/standard/
H A Dassert.c32 zval *callback; variable
57 if (ASSERTG(callback)) {
58 zval_ptr_dtor(&ASSERTG(callback));
59 ASSERTG(callback) = NULL;
61 if (new_value && (ASSERTG(callback) || new_value_length)) {
62 MAKE_STD_ZVAL(ASSERTG(callback));
63 ZVAL_STRINGL(ASSERTG(callback), new_value, new_value_length, 1);
85 PHP_INI_ENTRY("assert.callback", NULL, PHP_INI_ALL, OnChangeCallback)
91 assert_globals_p->callback = NULL;
124 if (ASSERTG(callback)) {
[all...]
H A Dstreamsfuncs.c872 zval *callback = (zval*)context->notifier->ptr; local
897 if (FAILURE == call_user_function_ex(EG(function_table), NULL, callback, &retval, 6, ptps, 0, NULL TSRMLS_CC)) {
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)
4790 zval *callback, *object; local
4792 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/z*", &callback, &object, &params, &n_params) == FAILURE) {
4806 convert_to_string(callback);
4808 if (call_user_function_ex(EG(function_table), &object, callback, &retval_ptr, n_params, params, 0, NULL TSRMLS_CC) == SUCCESS) {
4813 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call %s()", Z_STRVAL_P(callback));
4826 zval *callback, *objec local
[all...]
/PHP_5_6/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_5_6/ext/readline/
H A Dreadline.c113 ZEND_ARG_INFO(0, callback)
577 /* {{{ proto void readline_callback_handler_install(string prompt, mixed callback)
578 Initializes the readline callback interface and terminal, prints the prompt and returns immediately */
581 zval *callback; local
586 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &prompt, &prompt_len, &callback)) {
590 if (!zend_is_callable(callback, 0, &name TSRMLS_CC)) {
604 MAKE_COPY_ZVAL(&callback, _prepped_callback);
613 Informs the readline callback interface that a character is ready for input */
623 Removes a previously installed callback handler and restores terminal settings */
/PHP_5_6/ext/pcre/
H A Dphp_pcre.c1080 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Modifier /e cannot be used with replacement callback");
1401 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Requires argument 2, '%s', to be a valid callback", callback_name);
1475 /* {{{ proto mixed preg_replace_callback(mixed regex, mixed callback, mixed subject [, int limit [, int &count]])
1476 Perform Perl-style regular expression replacement using replacement callback. */
1940 ZEND_ARG_INFO(0, callback)
/PHP_5_6/ext/mbstring/
H A Dmbstring.c472 ZEND_ARG_INFO(0, callback)
/PHP_5_6/ext/interbase/
H A Dibase_events.c58 if (event->callback) {
59 zval_dtor(event->callback);
60 FREE_ZVAL(event->callback);
61 event->callback = NULL;
204 * The callback function is called when the event is first registered and when the event
205 * is cancelled. I consider this is a bug. By clearing event->callback first and setting
235 /* call the callback provided by the user */
237 event->callback, &return_value, 2, args TSRMLS_CC)) {
238 _php_ibase_module_error("Error calling callback %s" TSRMLS_CC, Z_STRVAL_P(event->callback));
[all...]
H A Dphp_ibase_udf.c186 zval callback, args[4], *argp[4], return_value; local
190 INIT_ZVAL(callback);
191 ZVAL_STRING(&callback,name,0);
196 if (!zend_is_callable(&callback, 0, NULL TSRMLS_CC)) {
290 &callback, &return_value, argc, argp TSRMLS_CC)) {
307 /* return whatever type we got back from the callback: let DB handle conversion */
H A Dphp_ibase_includes.h104 zval *callback; member in struct:event
/PHP_5_6/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_5_6/ext/ldap/
H A Dldap.c2441 /* link exists and callback set? */
2443 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Link not found or no callback set");
2447 /* callback */
2457 php_error_docref(NULL TSRMLS_CC, E_WARNING, "rebind_proc PHP callback failed");
2466 /* {{{ proto bool ldap_set_rebind_proc(resource link, string callback)
2467 Set a callback function to do re-binds on referral chasing. */
2470 zval *link, *callback; local
2474 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &link, &callback) != SUCCESS) {
2480 if (Z_TYPE_P(callback) == IS_STRING && Z_STRLEN_P(callback)
[all...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_watch.c290 static 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) {
349 ret = callback(watch TSRMLS_CC) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
351 phpdbg_watchpoint_parse_input(input, len, Z_OBJPROP_PP(zv), i, callback, silent TSRMLS_CC);
353 phpdbg_watchpoint_parse_input(input, len, Z_ARRVAL_PP(zv), i, callback, silent TSRMLS_CC);
379 ret = callback(watch TSRMLS_CC) == SUCCESS || ret == SUCCESS?SUCCESS:FAILURE;
398 static int phpdbg_watchpoint_parse_symtables(char *input, size_t len, int (*callback)(phpdbg_watchpoint_t * TSRMLS_DC) TSRMLS_DC) {
403 if (zend_is_auto_global(input, len TSRMLS_CC) && phpdbg_watchpoint_parse_input(input, len, &EG(symbol_table), 0, callback, 1 TSRMLS_CC) != FAILURE) {
407 return phpdbg_watchpoint_parse_input(input, len, EG(active_symbol_table), 0, callback, 0 TSRMLS_CC);
/PHP_5_6/sapi/cli/
H A Dphp_cli_server.c905 static int php_cli_server_poller_iter_on_active(php_cli_server_poller *poller, void *opaque, int(*callback)(void *, int fd, int events)) /* {{{ */
943 if (SUCCESS != callback(opaque, e->fd, e->events)) {
955 if (SUCCESS != callback(opaque, fd, POLLIN)) {
960 if (SUCCESS != callback(opaque, fd, POLLOUT)) {
/PHP_5_6/ext/sqlite3/
H A Dsqlite3.c767 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
810 sqlite3_result_error(context, "failed to invoke callback", 0);
900 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback");
913 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback (invalid return type). Collation behaviour is undefined.");
924 /* {{{ proto bool SQLite3::createFunction(string name, mixed callback [, int argcount])
948 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
998 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
1005 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
1034 /* {{{ proto bool SQLite3::createCollation(string name, mixed callback)
1057 php_sqlite3_error(db_obj, "Not a valid callback functio
[all...]
/PHP_5_6/ext/spl/
H A Dspl_iterators.c1618 /* {{{ proto void CallbackFilterIterator::__construct(Iterator it, callback)
1899 /* {{{ proto void RecursiveCallbackFilterIterator::__construct(RecursiveIterator it, callback)
1994 Calls the callback with the current value, the current key and the inner iterator as arguments */
2390 ZEND_ARG_INFO(0, callback)
2401 ZEND_ARG_INFO(0, callback)
/PHP_5_6/ext/session/
H A Dsession.c1797 zval *obj = NULL, *callback = NULL; local
1821 MAKE_STD_ZVAL(callback);
1822 array_init_size(callback, 2);
1824 add_next_index_zval(callback, obj);
1825 add_next_index_stringl(callback, func_name, func_name_len - 1, 1);
1826 PS(mod_user_names).names[i] = callback;
1846 MAKE_STD_ZVAL(callback);
1847 array_init_size(callback, 2);
1849 add_next_index_zval(callback, obj);
1850 add_next_index_stringl(callback, func_nam
2180 zval *callback; local
[all...]

Completed in 191 milliseconds