Writing functions

PHP is also known as a Glue language, and extending it, can be easily done with those extensions generators. When you use ext_skel and a prototype file to generate the C function stubs, you will notice that all of the exported functions created have a simple prototype such as the following: PHP_FUNCTION(func_name)

404 Not Found

404 Not Found


nginx

Коментарии

Автор:
The 'l' spec expects a parameter of the type zend_long, not long anymore.
The 's' spec expects parameters of the type char * and size_t, no int anymore.
(c) https://github.com/php/php-src/blob/PHP-7.0.0/UPGRADING.INTERNALS#L75
2019-09-05 23:54:26
http://php5.kiev.ua/manual/ru/internals2.funcs.html
Автор:
To handle string parameters you should specify string length:

char *s1;
size_t s1_len;

char *s2;
size_t s2_len;

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss",
                          &l, &s1, &s1_len, &s2 &s2_len)  != SUCCESS) {
    return;
}
2020-03-14 00:09:06
http://php5.kiev.ua/manual/ru/internals2.funcs.html

    Поддержать сайт на родительском проекте КГБ