Browse Source

additional checks in is_*

pull/550/head
krakjoe 13 years ago
parent
commit
8e597eba07
  1. 6
      phpdbg_utils.c

6
phpdbg_utils.c

@ -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;

Loading…
Cancel
Save