« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for sensitiveParametersWithAttribute (0.001 sec.)
SensitiveParameter アトリビュート 11228
« ReturnTypeWillChange::__construct SensitiveParameter::__construct » PHP Manual 定義済みのアトリビュート SensitiveParameter アトリビュート 検索 SensitiveParameter アトリビュート (PHP 8 >= 8.2.0) はじめに このアトリビュートを使うと、スタック ... () } 例 <?php function defaultBehavior ( string $secret , string $normal ) { throw new Exception ( 'Error!' ); } function sensitiveParametersWithAttribute ( #[ \SensitiveParameter ] string $secret , string $normal ) { throw new Exception ( 'Error!' ); } try { defaultBehavior ( ... 'password' , 'normal' ); } catch ( Exception $e ) { echo $e , PHP_EOL , PHP_EOL ; } try { sensitiveParametersWithAttribute ( 'password' , 'normal' ); } catch ( Exception $e ) { echo $e , PHP_EOL , PHP_EOL ; } ?> 上の例の PHP 8.2 での出力は、たと ... (19): defaultBehavior('password', 'normal') #1 {main} Exception: Error! in example.php:15 Stack trace: #0 example.php(25): sensitiveParametersWithAttribute(Object(SensitiveParameterValue), 'normal') #1 {main} 参考 アトリビュートの概要 SensitiveParameterValue 目次 SensitiveParam ...
https://man.mtool.work/php/8.3/class.sensitiveparameter.html
SensitiveParameter アトリビュート 7485
« ReturnTypeWillChange::__construct SensitiveParameter::__construct » PHP Manual 定義済みのアトリビュート SensitiveParameter アトリビュート 検索 SensitiveParameter アトリビュート (PHP 8 >= 8.2.0) はじめに このアトリビュートを使うと、スタック ... () } 例 <?php function defaultBehavior ( string $secret , string $normal ) { throw new Exception ( 'Error!' ); } function sensitiveParametersWithAttribute ( #[ \SensitiveParameter ] string $secret , string $normal ) { throw new Exception ( 'Error!' ); } try { defaultBehavior ( ... 'password' , 'normal' ); } catch ( Exception $e ) { echo $e , PHP_EOL , PHP_EOL ; } try { sensitiveParametersWithAttribute ( 'password' , 'normal' ); } catch ( Exception $e ) { echo $e , PHP_EOL , PHP_EOL ; } ?> 上の例の PHP 8.2 での出力は、たと ... (19): defaultBehavior('password', 'normal') #1 {main} Exception: Error! in example.php:15 Stack trace: #0 example.php(25): sensitiveParametersWithAttribute(Object(SensitiveParameterValue), 'normal') #1 {main} 参考 アトリビュートの概要 SensitiveParameterValue 目次 SensitiveParam ...
https://man.mtool.work/php/8.3/class.sensitiveparameter.html
PREV 1 NEXT