Lines Matching refs:spec
143 const char *spec = *specp; in parse_serialize_spec() local
145 if (*spec == 's' || *spec == 'S') { in parse_serialize_spec()
148 } else if (*spec == 'l' || *spec == 'L') { in parse_serialize_spec()
151 } else if (*spec == 'q' || *spec == 'Q') { in parse_serialize_spec()
154 } else if (*spec == 'i' || *spec == 'I') { in parse_serialize_spec()
158 ZEND_ASSERT(*spec == 'b' || *spec == 'B'); in parse_serialize_spec()
166 ++spec; in parse_serialize_spec()
167 if (isdigit((unsigned char) *spec)) { in parse_serialize_spec()
169 while (isdigit((unsigned char) *spec)) { in parse_serialize_spec()
170 count = 10 * count + *spec - '0'; in parse_serialize_spec()
171 ++spec; in parse_serialize_spec()
176 *specp = spec; in parse_serialize_spec()
233 …t php_hash_serialize_spec(const php_hashcontext_object *hash, zval *zv, const char *spec) /* {{{ */ in php_hash_serialize_spec() argument
242 while (*spec != '\0' && *spec != '.') { in php_hash_serialize_spec()
243 char spec_ch = *spec; in php_hash_serialize_spec()
244 size_t sz, count = parse_serialize_spec(&spec, &pos, &sz, &max_alignment); in php_hash_serialize_spec()
268 if (*spec == '.' && align_to(pos, max_alignment) != hash->ops->context_size) { in php_hash_serialize_spec()
281 …php_hash_unserialize_spec(php_hashcontext_object *hash, const zval *zv, const char *spec) /* {{{ */ in php_hash_unserialize_spec() argument
289 while (*spec != '\0' && *spec != '.') { in php_hash_unserialize_spec()
290 char spec_ch = *spec; in php_hash_unserialize_spec()
291 size_t sz, count = parse_serialize_spec(&spec, &pos, &sz, &max_alignment); in php_hash_unserialize_spec()
328 if (*spec == '.' && align_to(pos, max_alignment) != hash->ops->context_size) { in php_hash_unserialize_spec()