3 * Automatically generated by running "php schema.php hash".
5 * You may modify the file, but re-running schema.php against this file will
6 * standardize the format without losing your schema changes. It does lose
7 * any changes that are not part of schema. Use "note" field to comment on
8 * schema itself, and "note" fields are not used in any code generation but
9 * only staying within this file.
11 ///////////////////////////////////////////////////////////////////////////////
12 // Preamble: C++ code inserted at beginning of ext_{name}.h
19 ///////////////////////////////////////////////////////////////////////////////
23 // 'name' => name of the constant
24 // 'type' => type of the constant
25 // 'note' => additional note about this constant's schema
29 ///////////////////////////////////////////////////////////////////////////////
33 // 'name' => name of the function
34 // 'desc' => description of the function's purpose
35 // 'flags' => attributes of the function, see base.php for possible values
36 // 'opt' => optimization callback function's name for compiler
37 // 'note' => additional note about this function's schema
40 // 'type' => return type, use Reference for ref return
41 // 'desc' => description of the return value
43 // 'args' => arguments
45 // 'name' => name of the argument
46 // 'type' => type of the argument, use Reference for output parameter
47 // 'value' => default value of the argument
48 // 'desc' => description of the argument
55 'flags' => HasDocComment
,
58 'desc' => "Returns a string containing the calculated message digest as lowercase hexits unless raw_output is set to true in which case the raw binary representation of the message digest is returned.",
64 'desc' => "Name of selected hashing algorithm (i.e. \"md5\", \"sha256\", \"haval160,4\", etc..)",
69 'desc' => "Message to be hashed.",
72 'name' => "raw_output",
75 'desc' => "When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.",
78 'taint_observer' => array(
79 'set_mask' => "TAINT_BIT_MUTATED",
80 'clear_mask' => "TAINT_BIT_NONE",
86 'name' => "hash_algos",
87 'flags' => HasDocComment
,
90 'desc' => "Returns a numerically indexed array containing the list of supported hashing algorithms.",
92 'taint_observer' => false,
97 'name' => "hash_init",
98 'flags' => HasDocComment
,
101 'desc' => "Returns a Hashing Context resource for use with hash_update(), hash_update_stream(), hash_update_file(), and hash_final().",
107 'desc' => "Name of selected hashing algorithm (i.e. \"md5\", \"sha256\", \"haval160,4\", etc..)",
113 'desc' => "Optional settings for hash generation, currently supports only one option: HASH_HMAC. When specified, the key must be specified.",
118 'value' => "null_string",
119 'desc' => "When HASH_HMAC is specified for options, a shared secret key to be used with the HMAC hashing method must be supplied in this parameter.",
122 'taint_observer' => false,
127 'name' => "hash_file",
128 'flags' => HasDocComment
,
131 'desc' => "Returns a string containing the calculated message digest as lowercase hexits unless raw_output is set to true in which case the raw binary representation of the message digest is returned.",
137 'desc' => "Name of selected hashing algorithm (i.e. \"md5\", \"sha256\", \"haval160,4\", etc..)",
140 'name' => "filename",
142 'desc' => "URL describing location of file to be hashed; Supports fopen wrappers.",
145 'name' => "raw_output",
148 'desc' => "When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.",
151 'taint_observer' => array(
152 'set_mask' => "TAINT_BIT_MUTATED",
153 'clear_mask' => "TAINT_BIT_NONE",
159 'name' => "hash_final",
160 'flags' => HasDocComment
,
163 'desc' => "Returns a string containing the calculated message digest as lowercase hexits unless raw_output is set to true in which case the raw binary representation of the message digest is returned.",
169 'desc' => "Hashing context returned by hash_init().",
172 'name' => "raw_output",
175 'desc' => "When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.",
178 'taint_observer' => array(
179 'set_mask' => "TAINT_BIT_MUTATED",
180 'clear_mask' => "TAINT_BIT_NONE",
186 'name' => "hash_hmac_file",
187 'flags' => HasDocComment
,
190 'desc' => "Returns a string containing the calculated message digest as lowercase hexits unless raw_output is set to true in which case the raw binary representation of the message digest is returned.",
196 'desc' => "Name of selected hashing algorithm (i.e. \"md5\", \"sha256\", \"haval160,4\", etc..) See hash_algos() for a list of supported algorithms.",
199 'name' => "filename",
201 'desc' => "URL describing location of file to be hashed; Supports fopen wrappers.",
206 'desc' => "Shared secret key used for generating the HMAC variant of the message digest.",
209 'name' => "raw_output",
212 'desc' => "When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.",
215 'taint_observer' => array(
216 'set_mask' => "TAINT_BIT_MUTATED",
217 'clear_mask' => "TAINT_BIT_NONE",
223 'name' => "hash_hmac",
224 'flags' => HasDocComment
,
227 'desc' => "Returns a string containing the calculated message digest as lowercase hexits unless raw_output is set to true in which case the raw binary representation of the message digest is returned.",
233 'desc' => "Name of selected hashing algorithm (i.e. \"md5\", \"sha256\", \"haval160,4\", etc..) See hash_algos() for a list of supported algorithms.",
238 'desc' => "Message to be hashed.",
243 'desc' => "Shared secret key used for generating the HMAC variant of the message digest.",
246 'name' => "raw_output",
249 'desc' => "When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.",
252 'taint_observer' => array(
253 'set_mask' => "TAINT_BIT_MUTATED",
254 'clear_mask' => "TAINT_BIT_NONE",
260 'name' => "hash_update_file",
261 'flags' => HasDocComment
,
264 'desc' => "Returns TRUE on success or FALSE on failure.",
268 'name' => "init_context",
270 'desc' => "Hashing context returned by hash_init().",
273 'name' => "filename",
275 'desc' => "URL describing location of file to be hashed; Supports fopen wrappers.",
278 'name' => "stream_context",
281 'desc' => "Stream context as returned by stream_context_create().",
284 'taint_observer' => false,
289 'name' => "hash_update_stream",
290 'flags' => HasDocComment
,
293 'desc' => "Actual number of bytes added to the hashing context from handle.",
299 'desc' => "Hashing context returned by hash_init().",
304 'desc' => "Open file handle as returned by any stream creation function.",
310 'desc' => "Maximum number of characters to copy from handle into the hashing context.",
313 'taint_observer' => false,
318 'name' => "hash_update",
319 'flags' => HasDocComment
,
322 'desc' => "Returns TRUE.",
328 'desc' => "Hashing context returned by hash_init().",
333 'desc' => "Message to be included in the hash digest.",
336 'taint_observer' => false,
342 'name' => "furchash_hphp_ext",
343 'flags' => HasDocComment
,
346 'desc' => "Returns a number in the range of 0-(nPart-1)",
352 'desc' => "The key to hash",
357 'desc' => "Number of bytes to use from the hash",
362 'desc' => "The number of buckets",
365 'taint_observer' => false,
370 'name' => "furchash_hphp_ext_supported",
371 'flags' => HasDocComment
,
374 'desc' => "Returns whether furchash extension is supported",
378 'taint_observer' => false,
383 'name' => "hphp_murmurhash",
384 'flags' => HasDocComment
,
387 'desc' => "Returns the Int64 hash of the first len input characters",
393 'desc' => "The key to hash",
398 'desc' => "Number of bytes to use from the hash",
403 'desc' => "The seed to use for hashing",
406 'taint_observer' => false,
409 ///////////////////////////////////////////////////////////////////////////////
414 // 'name' => name of the class
415 // 'desc' => description of the class's purpose
416 // 'flags' => attributes of the class, see base.php for possible values
417 // 'note' => additional note about this class's schema
418 // 'parent' => parent class name, if any
419 // 'ifaces' => array of interfaces tihs class implements
420 // 'bases' => extra internal and special base classes this class requires
421 // 'footer' => extra C++ inserted at end of class declaration
424 // DefineConstant(..)
425 // DefineConstant(..)
427 // DefineFunction(..)
428 // DefineFunction(..)
434 // 'name' => name of the property
435 // 'type' => type of the property
436 // 'flags' => attributes of the property
437 // 'desc' => description of the property
438 // 'note' => additional note about this property's schema