diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-07-11 16:32:20 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-07-11 16:32:20 +0400 |
| commit | 27f38798a1963de1c60aae4ef8a3675138255574 (patch) | |
| tree | 479abed5848c1b7c9eacec88c85d98c80acf07e7 /Zend/zend_operators.c | |
| parent | 8f229b285527a403d46be047546384032a0f6bb3 (diff) | |
| download | php-git-27f38798a1963de1c60aae4ef8a3675138255574.tar.gz | |
Fast parameter parsing API
This API is experemental. It may be changed or removed.
It should be used only for really often used functions.
(Keep the original parsing code and wrap usage with #ifndef FAST_ZPP)
Diffstat (limited to 'Zend/zend_operators.c')
| -rw-r--r-- | Zend/zend_operators.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 76c732732e..dc2756fe09 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -2561,6 +2561,10 @@ ZEND_API zend_string *zend_long_to_str(long num) /* {{{ */ } /* }}} */ +ZEND_API zend_uchar is_numeric_str_function(const zend_string *str, long *lval, double *dval) { + return is_numeric_string_ex(str->val, str->len, lval, dval, -1, NULL); +} + /* * Local variables: * tab-width: 4 |
