(PHP 8 >= 8.4.0)
HashContext::__debugInfo — Returns debugging information about the hashing context
This method is not meant to be called directly; it is invoked by var_dump() and related functions when inspecting a HashContext instance.
この関数にはパラメータはありません。
Returns an associative array of debugging information. It contains an
algo key holding the name of the hashing algorithm
in use by the context.
例1 HashContext::__debugInfo() example
<?php
$ctx = hash_init('sha256');
var_dump($ctx);
?>上の例の出力は以下となります。
object(HashContext)#1 (1) {
["algo"]=>
string(6) "sha256"
}