Lines Matching refs:p

141 static char *unserialize_str(const unsigned char **p, size_t *len, size_t maxlen)
145 unsigned char *end = *(unsigned char **)p+maxlen;
147 if (end < *p) {
153 if (*p >= end) {
157 if (**p != '\\') {
158 str[i] = (char)**p;
163 (*p)++;
164 if (**p >= '0' && **p <= '9') {
165 ch = (ch << 4) + (**p -'0');
166 } else if (**p >= 'a' && **p <= 'f') {
167 ch = (ch << 4) + (**p -'a'+10);
168 } else if (**p >= 'A' && **p <= 'F') {
169 ch = (ch << 4) + (**p -'A'+10);
177 (*p)++;
202 static inline long parse_iv2(const unsigned char *p, const unsigned char **q)
208 switch (*p) {
213 p++;
217 cursor = (char)*p;
223 p++;
225 if (q) *q = p;
230 static inline long parse_iv(const unsigned char *p)
232 return parse_iv2(p, NULL);
236 static inline size_t parse_uiv(const unsigned char *p)
241 if (*p == '+') {
242 p++;
246 cursor = *p;
252 p++;
257 #define UNSERIALIZE_PARAMETER zval **rval, const unsigned char **p, const unsigned char *max, php_u…
258 #define UNSERIALIZE_PASSTHRU rval, p, max, var_hash TSRMLS_CC
267 if (!php_var_unserialize(&key, p, max, NULL TSRMLS_CC)) {
281 if (!php_var_unserialize(&data, p, max, var_hash TSRMLS_CC)) {
314 if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
315 (*p)--;
325 if (*((*p)++) == '}')
338 datalen = parse_iv2((*p) + 2, p);
340 (*p) += 2;
342 if (datalen < 0 || (*p) + datalen >= max) {
343 …G, "Insufficient data for unserializing - %ld required, %ld present", datalen, (long)(max - (*p)));
350 …} else if (ce->unserialize(rval, ce, (const unsigned char*)*p, datalen, (zend_unserialize_data *)v…
354 (*p) += datalen;
363 elements = parse_iv2((*p) + 2, p);
365 (*p) += 2;
399 limit = cursor = *p;
414 *p = YYCURSOR;
435 *p = YYCURSOR;
456 *p = YYCURSOR;
463 *p = YYCURSOR;
490 *p = YYCURSOR;
497 *p = YYCURSOR;
515 *p = YYCURSOR;
528 *p = start + 2;
537 *p = YYCURSOR;
542 *p = YYCURSOR;
556 *p = start + 2;
566 *p = YYCURSOR;
571 *p = YYCURSOR;
581 *p = YYCURSOR;
629 *p = start + 2;
638 *p = YYCURSOR;
642 *p = YYCURSOR+1;
649 *p = YYCURSOR + len3 - len;
701 *p = YYCURSOR;