mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
- Added "list func" support
This commit is contained in:
parent
77cb82dd22
commit
e32d511cec
8 changed files with 118 additions and 28 deletions
31
phpdbg_utils.c
Normal file
31
phpdbg_utils.c
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
+----------------------------------------------------------------------+
|
||||
| PHP Version 5 |
|
||||
+----------------------------------------------------------------------+
|
||||
| Copyright (c) 1997-2013 The PHP Group |
|
||||
+----------------------------------------------------------------------+
|
||||
| This source file is subject to version 3.01 of the PHP license, |
|
||||
| that is bundled with this package in the file LICENSE, and is |
|
||||
| available through the world-wide-web at the following url: |
|
||||
| http://www.php.net/license/3_01.txt |
|
||||
| If you did not receive a copy of the PHP license and are unable to |
|
||||
| obtain it through the world-wide-web, please send a note to |
|
||||
| license@php.net so we can mail you a copy immediately. |
|
||||
+----------------------------------------------------------------------+
|
||||
| Authors: Felipe Pena <felipe@php.net> |
|
||||
| Authors: Joe Watkins <joe.watkins@live.co.uk> |
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include "phpdbg_utils.h"
|
||||
|
||||
int phpdbg_is_numeric(const char *str) /* {{{ */
|
||||
{
|
||||
for (; *str; str++) {
|
||||
if (isspace(*str)) {
|
||||
continue;
|
||||
}
|
||||
return isdigit(*str);
|
||||
}
|
||||
} /* }}} */
|
Loading…
Add table
Add a link
Reference in a new issue