1
0
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:
krakjoe
2013-11-14 13:04:59 +00:00
parent 187d1c726b
commit 8e597eba07
+6
View File
@@ -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;