Home
last modified time | relevance | path

Searched refs:mlen (Results 1 – 10 of 10) sorted by relevance

/PHP-5.5/main/streams/
H A Dmemory.c614 size_t mlen, dlen, plen, vlen; in php_stream_url_wrap_rfc2397() local
638 mlen = comma - path; in php_stream_url_wrap_rfc2397()
639 dlen -= mlen; in php_stream_url_wrap_rfc2397()
640 semi = memchr(path, ';', mlen); in php_stream_url_wrap_rfc2397()
641 sep = memchr(path, '/', mlen); in php_stream_url_wrap_rfc2397()
652 mlen = 0; in php_stream_url_wrap_rfc2397()
656 mlen -= plen; in php_stream_url_wrap_rfc2397()
666 mlen--; in php_stream_url_wrap_rfc2397()
667 sep = memchr(path, '=', mlen); in php_stream_url_wrap_rfc2397()
690 mlen -= plen; in php_stream_url_wrap_rfc2397()
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dascmagic.c106 size_t mlen, i; in file_ascmagic_with_encoding() local
141 mlen = ulen * 6; in file_ascmagic_with_encoding()
142 if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) { in file_ascmagic_with_encoding()
143 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
146 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding()
H A Dencoding.c70 size_t mlen; in file_encoding() local
75 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding()
76 if ((nbuf = CAST(unsigned char *, calloc((size_t)1, mlen))) == NULL) { in file_encoding()
77 file_oomem(ms, mlen); in file_encoding()
80 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); in file_encoding()
81 if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) { in file_encoding()
82 file_oomem(ms, mlen); in file_encoding()
H A Dapprentice.c1191 size_t mlen; in apprentice_load() local
1193 mlen = maxfiles * sizeof(*filearr); in apprentice_load()
1195 erealloc(filearr, mlen))) == NULL) { in apprentice_load()
1196 file_oomem(ms, mlen); in apprentice_load()
/PHP-5.5/ext/ereg/regex/
H A Ddebug.c41 fprintf(d, ", must(%ld) `%*s'", (long)g->mlen, (int)g->mlen,
H A Dregcomp.c155 g->mlen = 0;
1556 if (newlen > g->mlen) { /* ends one */
1558 g->mlen = newlen;
1565 if (g->mlen == 0) /* there isn't one */
1569 g->mlen = 0;
1574 g->must = malloc((size_t)g->mlen + 1);
1576 g->mlen = 0;
1581 for (i = g->mlen; i > 0; i--) {
1584 assert(cp < g->must + g->mlen);
1587 assert(cp == g->must + g->mlen);
H A Dregex2.h130 int mlen; /* length of must */ member
H A Dengine.c99 if (*dp == g->must[0] && stop - dp >= g->mlen &&
100 memcmp(dp, g->must, (size_t)g->mlen) == 0)
/PHP-5.5/Zend/
H A Dzend_API.c2749 int clen, mlen; in zend_is_callable_check_func() local
2764 mlen = Z_STRLEN_P(callable) - 1; in zend_is_callable_check_func()
2765 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable) + 1, mlen); in zend_is_callable_check_func()
2767 mlen = Z_STRLEN_P(callable); in zend_is_callable_check_func()
2768 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable), mlen); in zend_is_callable_check_func()
2786 mlen = Z_STRLEN_P(callable) - clen - 2; in zend_is_callable_check_func()
2814 mlen = Z_STRLEN_P(callable); in zend_is_callable_check_func()
2826 lmname = zend_str_tolower_dup(mname, mlen); in zend_is_callable_check_func()
2829 mlen == sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)-1 && in zend_is_callable_check_func()
2842 if (zend_hash_find(&EG(scope)->function_table, lmname, mlen+1, (void **) &priv_fbc)==SUCCESS in zend_is_callable_check_func()
[all …]
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch441 mlen = maxfiles * sizeof(*filearr);
443 - realloc(filearr, mlen))) == NULL) {
444 + erealloc(filearr, mlen))) == NULL) {
445 file_oomem(ms, mlen);
849 mlen = ulen * 6;
850 - if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) {
851 + if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) {
852 file_oomem(ms, mlen);

Completed in 63 milliseconds