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

/PHP_5_3/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_3/ext/sqlite3/libsqlite/
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...]
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...]
/PHP_5_3/sapi/fpm/fpm/
H A Dfpm_events.c455 if (!ev || !ev->callback) {
459 (*ev->callback)( (struct fpm_event_s *) ev, ev->which, ev->arg);
463 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg) /* {{{ */
465 if (!ev || !callback || fd < -1) {
470 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_3/ext/interbase/
H A Dibase_events.c60 if (event->callback) {
61 zval_dtor(event->callback);
62 FREE_ZVAL(event->callback);
63 event->callback = NULL;
206 * The callback function is called when the event is first registered and when the event
207 * is cancelled. I consider this is a bug. By clearing event->callback first and setting
237 /* call the callback provided by the user */
239 event->callback, &return_value, 2, args TSRMLS_CC)) {
240 _php_ibase_module_error("Error calling callback %s" TSRMLS_CC, Z_STRVAL_P(event->callback));
[all...]
H A Dphp_ibase_includes.h105 zval *callback; member in struct:event
H A Dphp_ibase_udf.c188 zval callback, args[4], *argp[4], return_value; local
192 INIT_ZVAL(callback);
193 ZVAL_STRING(&callback,name,0);
198 if (!zend_is_callable(&callback, 0, NULL TSRMLS_CC)) {
292 &callback, &return_value, argc, argp TSRMLS_CC)) {
309 /* return whatever type we got back from the callback: let DB handle conversion */
/PHP_5_3/ext/ldap/
H A Dldap.c2067 /* link exists and callback set? */
2069 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Link not found or no callback set");
2073 /* callback */
2083 php_error_docref(NULL TSRMLS_CC, E_WARNING, "rebind_proc PHP callback failed");
2092 /* {{{ proto bool ldap_set_rebind_proc(resource link, string callback)
2093 Set a callback function to do re-binds on referral chasing. */
2096 zval *link, *callback; local
2100 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &link, &callback) != SUCCESS) {
2106 if (Z_TYPE_P(callback) == IS_STRING && Z_STRLEN_P(callback)
[all...]
/PHP_5_3/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_3/ext/readline/
H A Dreadline.c110 ZEND_ARG_INFO(0, callback)
546 /* {{{ proto void readline_callback_handler_install(string prompt, mixed callback)
547 Initializes the readline callback interface and terminal, prints the prompt and returns immediately */
550 zval *callback; local
555 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &prompt, &prompt_len, &callback)) {
559 if (!zend_is_callable(callback, 0, &name TSRMLS_CC)) {
573 MAKE_COPY_ZVAL(&callback, _prepped_callback);
582 Informs the readline callback interface that a character is ready for input */
592 Removes a previously installed callback handler and restores terminal settings */
/PHP_5_3/ext/sqlite/
H A Dsqlite.c470 ZEND_ARG_INFO(0, callback)
476 ZEND_ARG_INFO(0, callback)
857 /* {{{ callback for sqlite_create_function */
933 /* {{{ callback for sqlite_create_aggregate: step function */
1004 /* {{{ callback for sqlite_create_aggregate: finalize function */
3343 /* {{{ proto bool sqlite_create_function(resource db, string funcname, mixed callback[, long num_args])
/PHP_5_3/ext/sqlite3/
H A Dsqlite3.c755 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the callback");
794 sqlite3_result_error(context, "failed to invoke callback", 0);
884 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback");
897 php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the compare callback (invalid return type). Collation behaviour is undefined.");
908 /* {{{ proto bool SQLite3::createFunction(string name, mixed callback [, int argcount])
932 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
982 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
989 php_sqlite3_error(db_obj, "Not a valid callback function %s", callback_name);
1018 /* {{{ proto bool SQLite3::createCollation(string name, mixed callback)
1041 php_sqlite3_error(db_obj, "Not a valid callback functio
[all...]
/PHP_5_3/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.c870 zval *callback = (zval*)context->notifier->ptr; local
895 if (FAILURE == call_user_function_ex(EG(function_table), NULL, callback, &retval, 6, ptps, 0, NULL TSRMLS_CC)) {
H A Dbasic_functions.c582 ZEND_ARG_INFO(0, callback)
588 ZEND_ARG_INFO(0, callback)
592 ZEND_ARG_INFO(0, callback)
4828 zval *callback, *object; local
4830 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/z*", &callback, &object, &params, &n_params) == FAILURE) {
4844 convert_to_string(callback);
4846 if (call_user_function_ex(EG(function_table), &object, callback, &retval_ptr, n_params, params, 0, NULL TSRMLS_CC) == SUCCESS) {
4851 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call %s()", Z_STRVAL_P(callback));
4864 zval *callback, *object; local
4868 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/zA/", &callback,
[all...]
/PHP_5_3/ext/sybase_ct/
H A Dphp_sybase_ct.c2200 zval **callback; local
2210 callback= &SybCtG(callback_name);
2215 callback= &sybase_ptr->callback_name;
2219 callback= &SybCtG(callback_name);
2222 /* Clean old callback */
2223 if (*callback) {
2224 zval_ptr_dtor(callback);
2225 *callback = NULL;
2229 ALLOC_ZVAL(*callback);
2230 **callback
[all...]
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_loaddata.c159 if (!conn->infile.callback) {
160 MAKE_STD_ZVAL(conn->infile.callback);
162 zval_dtor(conn->infile.callback);
164 ZVAL_STRING(conn->infile.callback, (char*) funcname, 1);
H A Dmysqlnd_structs.h138 zval *callback; member in struct:st_mysqlnd_infile
/PHP_5_3/ext/pcre/
H A Dphp_pcre.c1020 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Modifier /e cannot be used with replacement callback");
1336 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Requires argument 2, '%s', to be a valid callback", callback_name);
1410 /* {{{ proto mixed preg_replace_callback(mixed regex, mixed callback, mixed subject [, int limit [, int &count]])
1411 Perform Perl-style regular expression replacement using replacement callback. */
1868 ZEND_ARG_INFO(0, callback)

Completed in 122 milliseconds