-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #52 - cast 'NUMBER_SEARCH_CRITERIA' as (string). #60
base: main
Are you sure you want to change the base?
Fix #52 - cast 'NUMBER_SEARCH_CRITERIA' as (string). #60
Conversation
…UMBER and VONAGE_API_SIGNATURE_SECRET so things work when running sms/send-signed-sms.php
…ent to caution use of criteria starting with '0' to avoid conversion-to-octal issues. Added some more comments while I was at it to help users understand the use of the filter object
…ent to caution use of criteria starting with '0' to avoid conversion-to-octal issues. Added some more comments while I was at it to help users understand the use of the filter object
numbers/search-available.php
Outdated
/** Note: be careful when specifying "NUMBER_SEARCH_CRITERIA" environment variable: | ||
* surround it with quotes if it has a leading zero, otherwise the (string) conversion | ||
* will assume it is an Octal number and convert it. e.g., (string)0123 results in "83". | ||
* NUMBER_SEARCH_PATTERN will be one of 0 (search for numbers that start with pattern); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with the warning above, but an we remove the options listed here? The allowed options are all listed on https://developer.nexmo.com/numbers/code-snippets/search-available/php, and it's expected that these snippets are being used with the documentation versus stand-alone.
The information in the code snippet duplicates the online documentation, so there is no need to include it in the PHP code.
removed the superfluous comment options. |
The information in the code snippet duplicates the online documentation, so there is no need to include it in the PHP code.
…com/gthoffer/vonage-php-code-snippets into 52_numbers_search_pattern_exception
Added comment to caution use of criteria starting with '0' to avoid conversion-to-octal issues. Added some more comments while I was at it to help users understand the use of the filter object