summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2003-07-23 08:56:34 +0000
committerZeev Suraski <zeev@php.net>2003-07-23 08:56:34 +0000
commite89977f9d9c60d93d8e8b966d9fb2cb1558a90f0 (patch)
tree713035036b48c18f38d6f97d544cd91478ba8109 /Zend/zend_hash.c
parent785130c09c4b5ccbbd7fd52818cc5c4e2042a477 (diff)
downloadphp-git-e89977f9d9c60d93d8e8b966d9fb2cb1558a90f0.tar.gz
Go back to ZE1-like code
Diffstat (limited to 'Zend/zend_hash.c')
-rw-r--r--Zend/zend_hash.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c
index 1ba0b4b3ec..ac53af332a 100644
--- a/Zend/zend_hash.c
+++ b/Zend/zend_hash.c
@@ -130,37 +130,6 @@ ZEND_API ulong zend_hash_func(char *arKey, uint nKeyLength)
}
-ZEND_API zend_bool zend_is_numeric_key(char *arKey, uint nKeyLength, long *val)
-{
- char *tmp = arKey;
-
- if ((*tmp>='0' && *tmp<='9')) { /* possibly a numeric index */
- char *end=tmp+nKeyLength-1;
- ulong idx;
-
- if (*tmp++=='0' && nKeyLength>2) { /* don't accept numbers with leading zeros */
- return 0;
- }
-
- while (tmp<end) {
- if (!(*tmp>='0' && *tmp<='9')) {
- break;
- }
- tmp++;
- }
-
- if (tmp==end && *tmp=='\0') { /* a numeric index */
- idx = strtol(arKey, NULL, 10);
- if (idx!=LONG_MAX) {
- *val = idx;
- return 1;
- }
- }
- }
-
- return 0;
-}
-
ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC)
{