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

/PHP_5_4/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_4/ext/sqlite3/libsqlite/
H A Dsqlite3.h293 ** The type for a callback function.
310 ** argument. ^If the callback function of the 3rd argument to
314 ** callback invocation. ^If the callback pointer to sqlite3_exec()
315 ** is NULL, then no callback is ever invoked and result rows are
330 ** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()
331 ** routine returns SQLITE_ABORT without invoking the callback again and
334 ** ^The 2nd argument to the sqlite3_exec() callback function is the
336 ** callback is an array of pointers to strings obtained as if from
339 ** sqlite3_exec() callback i
[all...]
H A Dsqlite3.c840 ** The type for a callback function.
857 ** argument. ^If the callback function of the 3rd argument to
861 ** callback invocation. ^If the callback pointer to sqlite3_exec()
862 ** is NULL, then no callback is ever invoked and result rows are
877 ** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()
878 ** routine returns SQLITE_ABORT without invoking the callback again and
881 ** ^The 2nd argument to the sqlite3_exec() callback function is the
883 ** callback is an array of pointers to strings obtained as if from
886 ** sqlite3_exec() callback i
[all...]
/PHP_5_4/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_5_4/ext/pcre/
H A Dphp_pcre.c1046 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Modifier /e cannot be used with replacement callback");
1362 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Requires argument 2, '%s', to be a valid callback", callback_name);
1436 /* {{{ proto mixed preg_replace_callback(mixed regex, mixed callback, mixed subject [, int limit [, int &count]])
1437 Perform Perl-style regular expression replacement using replacement callback. */
1894 ZEND_ARG_INFO(0, callback)
/PHP_5_4/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_4/ext/readline/
H A Dreadline.c113 ZEND_ARG_INFO(0, callback)
569 /* {{{ proto void readline_callback_handler_install(string prompt, mixed callback)
570 Initializes the readline callback interface and terminal, prints the prompt and returns immediately */
573 zval *callback; local
578 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &prompt, &prompt_len, &callback)) {
582 if (!zend_is_callable(callback, 0, &name TSRMLS_CC)) {
596 MAKE_COPY_ZVAL(&callback, _prepped_callback);
605 Informs the readline callback interface that a character is ready for input */
615 Removes a previously installed callback handler and restores terminal settings */
/PHP_5_4/ext/sqlite3/
H A Dsqlite3.c759 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
802 sqlite3_result_error(context, "failed to invoke callback", 0);
892 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback");
905 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback (invalid return type). Collation behaviour is undefined.");
916 /* {{{ proto bool SQLite3::createFunction(string name, mixed callback [, int argcount])
940 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
990 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
997 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
1026 /* {{{ proto bool SQLite3::createCollation(string name, mixed callback)
1049 php_sqlite3_error(db_obj, "Not a valid callback functio
[all...]
/PHP_5_4/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.c881 zval *callback = (zval*)context->notifier->ptr; local
906 if (FAILURE == call_user_function_ex(EG(function_table), NULL, callback, &retval, 6, ptps, 0, NULL TSRMLS_CC)) {
H A Dbasic_functions.c142 ZEND_ARG_INFO(0, callback)
583 ZEND_ARG_INFO(0, callback)
589 ZEND_ARG_INFO(0, callback)
593 ZEND_ARG_INFO(0, callback)
4769 zval *callback, *object; local
4771 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/z*", &callback, &object, &params, &n_params) == FAILURE) {
4785 convert_to_string(callback);
4787 if (call_user_function_ex(EG(function_table), &object, callback, &retval_ptr, n_params, params, 0, NULL TSRMLS_CC) == SUCCESS) {
4792 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call %s()", Z_STRVAL_P(callback));
4805 zval *callback, *objec local
[all...]
/PHP_5_4/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_4/ext/mbstring/
H A Dmbstring.c472 ZEND_ARG_INFO(0, callback)
/PHP_5_4/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.h153 zval *callback; member in struct:st_mysqlnd_infile
/PHP_5_4/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_includes.h103 zval *callback; member in struct:event
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 */
/PHP_5_4/ext/ldap/
H A Dldap.c2435 /* link exists and callback set? */
2437 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Link not found or no callback set");
2441 /* callback */
2451 php_error_docref(NULL TSRMLS_CC, E_WARNING, "rebind_proc PHP callback failed");
2460 /* {{{ proto bool ldap_set_rebind_proc(resource link, string callback)
2461 Set a callback function to do re-binds on referral chasing. */
2464 zval *link, *callback; local
2468 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &link, &callback) != SUCCESS) {
2474 if (Z_TYPE_P(callback) == IS_STRING && Z_STRLEN_P(callback)
[all...]
/PHP_5_4/ext/spl/
H A Dspl_iterators.c1557 /* {{{ proto void CallbackFilterIterator::__construct(Iterator it, callback)
1837 /* {{{ proto void RecursiveCallbackFilterIterator::__construct(RecursiveIterator it, callback)
1932 Calls the callback with the current value, the current key and the inner iterator as arguments */
2346 ZEND_ARG_INFO(0, callback)
2357 ZEND_ARG_INFO(0, callback)
/PHP_5_4/sapi/cli/
H A Dphp_cli_server.c779 static int php_cli_server_poller_iter_on_active(php_cli_server_poller *poller, void *opaque, int(*callback)(void *, int fd, int events)) /* {{{ */
817 if (SUCCESS != callback(opaque, e->fd, e->events)) {
829 if (SUCCESS != callback(opaque, fd, POLLIN)) {
834 if (SUCCESS != callback(opaque, fd, POLLOUT)) {
/PHP_5_4/ext/session/
H A Dsession.c1663 zval *obj = NULL, *callback = NULL; local
1687 MAKE_STD_ZVAL(callback);
1688 array_init_size(callback, 2);
1690 add_next_index_zval(callback, obj);
1691 add_next_index_stringl(callback, func_name, func_name_len - 1, 1);
1692 PS(mod_user_names).names[i] = callback;
1707 MAKE_STD_ZVAL(callback);
1708 ZVAL_STRING(callback, "session_register_shutdown", 1);
1709 shutdown_function_entry.arguments[0] = callback;
1713 zval_ptr_dtor(&callback);
2001 zval *callback; local
[all...]

Completed in 152 milliseconds