| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
For some very, very weird reason, if you pass an invalid argument to this function:
<?php $cfg['blowfish_secret'] = sodium_hex2bin('f16ce59f45714194371b48dZGBmq4sRDUFy99glKIlKjlxaB76luP64d6fb13851'); ?>
then you'll get "Fatal error: Uncaught Error: Call to undefined function sodium_hex2bin()" error instead of any error that would tell you that your argument is invalid.
I still keep wondering why this isn't intercepted internally and how can PHP find one of its internal functions undefined only due to the wrong argument developer calls them with.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 46.148.14.55)
----
Manual Page -- https://php.net/manual/en/function.sodium-hex2bin.php
Edit -- https://main.php.net/note/edit/130184
Del: integrated -- https://main.php.net/note/delete/130184/integrated
Del: useless -- https://main.php.net/note/delete/130184/useless
Del: bad code -- https://main.php.net/note/delete/130184/bad+code
Del: spam -- https://main.php.net/note/delete/130184/spam
Del: non-english -- https://main.php.net/note/delete/130184/non-english
Del: in docs -- https://main.php.net/note/delete/130184/in+docs
Del: other reasons-- https://main.php.net/note/delete/130184
Reject -- https://main.php.net/note/reject/130184
Search -- https://main.php.net/manage/user-notes.php