XWare Поиск по информационным ресурсам МГУ English Russian
       
       Точная форма слов   О проекте   Сайты   Помощь
Поиск по:old.master.cmc.msu.ru   - Поискать по всем серверам
На этой странице приведены все страницы сервера old.master.cmc.msu.ru ,которые мы индексируем. Показаны документы 461 - 480 из 3519.

В начало ] Пред. | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | След.В конец ]

Упорядочить по: URL  |  дате изменения
461. Booleans
. PHP Manual . Prev . Chapter 33. Creating Variables . Next . Booleans are created just like longs, but have the type IS_BOOL . Allowed values in lval are 0 and 1 : . zval *new_bool; MAKE_STD_ZVAL(new_bool); new_bool->type = IS_BOOL; new_bool->value.lval = 1; The corresponding macros for this type are ZVAL_BOOL (allowing specification of the value) as well as ZVAL_TRUE and ZVAL_FALSE (which explicitly set the value to TRUE and FALSE , respectively). Prev . Home . Next . Strings . Up . Arrays
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.variables.boolean.html -- 3.6 Кб -- 03.02.2002
Похожие документы

462. Strings
... zval *new_string; char *string_contents = "This is a new string variable"; MAKE_STD_ZVAL(new_string); new_string->type = IS_STRING; new_string->value.str.len = strlen(string_contents); new_string->value.str.val = estrdup(string_contents); Note the usage of Zend's estrdup() here. ... If you want to truncate the string at a certain position or you already know its length, you can use ZVAL_STRINGL(zval, string, length, duplicate) , which accepts an explicit string length to be set for the new string. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.variables.string.html -- 5.6 Кб -- 03.02.2002
Похожие документы

463. Assuring Write Safety for Other Parameters
... You might run into a situation in which you need write access to a parameter that's retrieved with zend_get_parameters_ex() but not passed by reference. For this case, you can use the macro SEPARATE_ZVAL , which does a zval separation on the provided container. ... Note: As you can easily work around the lack of write access in the "traditional" API (with zend_get_parameters() and so on), this API seems to be obsolete, and is not discussed further in this chapter. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.arguments.write-safety.html -- 4.7 Кб -- 03.02.2002
Похожие документы

464. Accepting Arguments
PHP Manual . ... Determining the Number of Arguments . ... One of the most important issues for language extensions is accepting and dealing with data passed via arguments. ... PHP doesn't make use of any formal function declarations; this is why call syntax is always completely dynamic and never checked for errors. ... 2) WRONG_PARAM_COUNT; If the function is not called with two arguments, it exits with an error message. ... This macro prints a default error message and then returns to the caller. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.arguments.html -- 7.1 Кб -- 03.02.2002
Похожие документы

465. Longs (Integers)
... Chapter 33. Creating Variables . ... Now let's get to the assignment of data to variables, starting with longs. Longs are PHP's integers and are very simple to store. ... The corresponding type value for longs is IS_LONG (see Listing 9.11). ... Creation of a long. zval *new_long; MAKE_STD_ZVAL(new_long); new_long->type = IS_LONG; new_long->value.lval = 10; Alternatively, you can use the macro ZVAL_LONG : . zval *new_long; MAKE_STD_ZVAL(new_long); ZVAL_LONG(new_long, 10); . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.variables.long.html -- 4.0 Кб -- 03.02.2002
Похожие документы

466. Dealing with Arguments Passed by Reference
... Accepting Arguments . ... If your function accepts arguments passed by reference that you intend to modify, you need to take some precautions. What we didn't say yet is that under the circumstances presented so far, you don't have write access to any zval containers designating function parameters that have been passed to you. ... Zend deals with this situation in a special way: Whenever a parameter to a function is passed by reference, it performs automatic zval separation. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.arguments.by-reference.html -- 7.5 Кб -- 03.02.2002
Похожие документы

467. Accessing Arguments
... Accepting Arguments . ... To access arguments, it's necessary for each argument to have a clearly defined type. ... Boolean values remain untouched. ... All other types result in an object with the property scalar , having the corresponding source value as content. convert_to_null_ex(value) . ... If the supplied type doesn't match the required type, PHP forces dummy contents on the resulting value (empty strings, arrays, or objects, 0 for numeric values, FALSE for Booleans) to ensure a defined state...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.arguments.access.html -- 16.5 Кб -- 03.02.2002
Похожие документы

468. Retrieving Arguments
... New parameter parsing API: This chapter documents the new Zend parameter parsing API introduced by Andrei Zmievski. ... It greatly simplifies the process of receiving parameteres, but it has a drawback in that it can't be used for functions that expect variable number of parameters. ... The third argument is a string that specifies the number and types of arguments your function is expecting, similar to how printf format string specifies the number and format of the output values it should operate...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.arguments.retrieval.html -- 11.2 Кб -- 03.02.2002
Похожие документы

469. Old way of retrieving arguments (deprecated)
... Accepting Arguments . ... Deprecated parameter parsing API: This API is deprecated and superseded by the new ZEND parameter parsing API. After having checked the number of arguments, you need to get access to the arguments themselves. ... zval **parameter; if(zend_get_parameters_ex(1, &parameter) != ... The snippet above tries to retrieve one argument and make it available to us via the parameter pointer. zend_get_parameters_ex() accepts at least two arguments. ... Retrieving Arguments . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.arguments.deprecated-retrieval.html -- 5.9 Кб -- 03.02.2002
Похожие документы

470. Dealing with a Variable Number of Arguments/Optional Parameters
... Accepting Arguments . ... PHP's implementation of variable arguments in fsockopen(). pval ** args [5]; int *sock=emalloc(sizeof(int)); int *sockp; int arg_count = ARG_COUNT (ht); int socketd = -1; unsigned char udp = 0; struct timeval timeout = { 60, 0 }; unsigned short portno; unsigned long conv; char *key = NULL; FLS_FETCH(); if ( arg_count 5 || arg_count 2 || zend_get_ parameters _array_ex( arg_count , ... Old way of retrieving arguments (deprecated) . ... Accessing Arguments ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.arguments.variable.html -- 7.2 Кб -- 03.02.2002
Похожие документы

471. Implementation of All Exported Functions
... Prev . ... Next . Implementing the exported functions is the final step. The example function in first_module looks like this: . ZEND_FUNCTION(first_module) { long parameter; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &parameter) == FAILURE) { return; } RETURN_LONG(parameter); } The function declaration is done using ZEND_FUNCTION , which corresponds to ZEND_FE in the function entry table (discussed earlier). ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.implementation.html -- 3.8 Кб -- 03.02.2002
Похожие документы

472. Source Discussion
... Header File Inclusions . Declaring Exported Functions . Declaration of the Zend Function Block . Declaration of the Zend Module Block . ... Implementation of All Exported Functions . ... Header file inclusions (to include all required macros, API definitions, etc.) C declaration of exported functions (required to declare the Zend function block) . Declaration of the Zend function block . Declaration of the Zend module block . ... Implementation of all exported functions . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.html -- 4.5 Кб -- 03.02.2002
Похожие документы

473. Declaration of the Zend Module Block
... Internal declaration of zend_module_entry . typedef struct _ zend _ module _entry zend _ module _entry; struct _ zend _ module _entry { unsigned short size; unsigned int zend _api; unsigned char zend _debug; unsigned char zts; char * name ; zend _ function _entry * functions ; int (* module _startup_func)(INIT_FUNC_ARGS); int (* module _ shutdown _func)( SHUTDOWN _FUNC_ARGS); int (*request_startup_func)(INIT_FUNC_ARGS); int (*request_ shutdown _func)( ... functions . ... module_shutdown_func . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.module-block.html -- 16.8 Кб -- 03.02.2002
Похожие документы

474. Summary
PHP Manual . Prev . ... Source Discussion . Next . That's it, basically - there's nothing more to implementing PHP modules. Built-in modules are structured similarly to dynamic modules, so, equipped with the information presented in the previous sections, you'll be able to fight the odds when encountering PHP module source files. Now, in the following sections, read on about how to make use of PHP's internals to build powerful extensions. ... Accepting Arguments ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.summary.html -- 3.4 Кб -- 03.02.2002
Похожие документы

475. Creation of get_module
... This function is special to all dynamic loadable modules. Take a look at the creation via the ZEND_GET_MODULE macro first: . if COMPILE_DL_FIRSTMOD ZEND_GET_MODULE(firstmod) #endif The function implementation is surrounded by a conditional compilation statement. This is needed since the function get_module() is only required if your module is built as a dynamic extension. ... Declaration of the Zend Module Block . ... Implementation of All Exported Functions ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.get-module.html -- 4.6 Кб -- 03.02.2002
Похожие документы

476. Declaring Exported Functions
PHP Manual . ... To declare functions that are to be exported (i.e., made available to PHP as new native functions), Zend provides a set of macros. ... ZEND_FUNCTION declares a new C function that complies with Zend's internal API. ... void zif_my_function(int ht, zval *return_value, zval *this_ptr, int return_value_used, zend_executor_globals *executor_globals); . ... Zend's Parameters to Functions Called from PHP . ... This variable is used to pass any return values of your function back to PHP. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.exporting-functions.html -- 7.9 Кб -- 03.02.2002
Похожие документы

477. Declaration of the Zend Function Block
... Now that you have declared the functions to be exported, you also have to introduce them to Zend. ... This array consecutively contains all functions that are to be made available externally, with the function's name as it should appear in PHP and its name as defined in the C source. ... zend_function_entry firstmod_functions[] = { ZEND_FE(first_module, NULL) {NULL, NULL, NULL} }; You can see that the last entry in the list always has to be {NULL, NULL, NULL} . ... ZEND_FE(name, arg_types) . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.function-block.html -- 10.1 Кб -- 03.02.2002
Похожие документы

478. Using Extensions
PHP Manual . ... Depending on the build process you selected, you should either end up with a new PHP binary to be linked into your Web server (or run as CGI), or with an .so (shared object) file. If you compiled the example file first_module.c as a shared object, your result file should be first_module.so . ... Figure 29-1. ... A test file for first_module.so. <?php //dl("first_module.so"); $param = 2; $return = first_module($param); print("We sent \"$param\" and got \"$return\""); ?> ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.using.html -- 5.3 Кб -- 03.02.2002
Похожие документы

479. Header File Inclusions
... Source Discussion . Next . The only header file you really have to include for your modules is php.h , located in the PHP directory. This file makes all macros and API definitions required to build new modules available to your code. Tip: It's good practice to create a separate header file for your module that contains module-specific definitions. This header file should contain all the forward definitions for exported functions and include php.h . ... Declaring Exported Functions ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.structure.headers.html -- 3.6 Кб -- 03.02.2002
Похожие документы

480. Troubleshooting
PHP Manual . ... Actually, not much troubleshooting can be done when compiling static or dynamic modules. ... In this case, make sure that all header files are available and that you specified their path correctly in the compilation command. ... During dynamic loading and linkage by PHP, they won't resolve because of the typing errors - there are no corresponding symbols in the main binary. ... Note that this problem is specific to dynamic loadable modules; it doesn't occur with static modules. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/zend.troubleshooting.html -- 4.1 Кб -- 03.02.2002
Похожие документы

В начало ] Пред. | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | След.В конец ]

Rambler's Top100 RFBR Яндекс цитирования