Lines Matching refs:value

85         foreach ($message->toArray() as $key => $value) {
91 $value,
130 throw new SaslEncodingException('Unexpected end of digest. Expected a value following a key.');
145 $value = null;
154 $value = $this->parseQuotedValue();
159 $value = $this->parseQuotedCommaList();
161 $value = $this->parseRegex(self::MATCH_ALPHA_NUMERIC, 'The value is malformed.');
165 $value = $this->parseExact('true');
168 $value = $this->parseRegex(self::MATCH_DIGITS, 'Expected a series of digits for a key value.');
171 $value = $this->parseExact('md5-sess');
174 $value = $this->parseExact('utf-8');
177 $value = $this->parseLHexValue(8);
181 $value = $this->parseLHexValue(32);
193 'Expected a comma following digest value for %s.',
209 return $value;
216 protected function encodeOptValue(string $name, $value, bool $isServerMode)
227 $encoded = '"' . str_replace(['\\', '"'], ['\\\\', '\"'], $value) . '"';
232 $encoded = '"' . implode(',', (array) $value) . '"';
234 $encoded = (string) $value;
243 $encoded = (string) $value;
246 $encoded = str_pad(dechex($value), 8, '0', STR_PAD_LEFT);
250 $encoded = $this->encodeLHexValue($value, 32);
271 'Expected the directive value to be "%s", but it is not.',
286 throw new SaslEncodingException('The value is malformed. Expected a qdstr-val.');
298 $value = $this->parseQuotedValue();
300 return explode(',', $value);
309 throw new SaslEncodingException('Expected a hex value.');
312 throw new SaslEncodingException(sprintf('Expected the hex value to be %s characters long.', $length));
338 throw new SaslEncodingException(sprintf('Expected the encoded hex value to be %s characters long.', $length));