mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
additional checks in is_*
This commit is contained in:
@@ -30,6 +30,9 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
||||
|
||||
int phpdbg_is_numeric(const char *str) /* {{{ */
|
||||
{
|
||||
if (!str)
|
||||
return 0;
|
||||
|
||||
for (; *str; str++) {
|
||||
if (isspace(*str)) {
|
||||
continue;
|
||||
@@ -41,6 +44,9 @@ int phpdbg_is_numeric(const char *str) /* {{{ */
|
||||
|
||||
int phpdbg_is_empty(const char *str) /* {{{ */
|
||||
{
|
||||
if (!str)
|
||||
return 1;
|
||||
|
||||
for (; *str; str++) {
|
||||
if (isspace(*str)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user