summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-11-12 17:30:41 +0000
committerJoe Watkins <krakjoe@php.net>2016-11-12 17:30:41 +0000
commita2bc7cf9ca74c051bfd287c1b3d54c76945f10cc (patch)
treeb45a5d42d9d2ab47f9f06180e12ca973d289a3cc /Zend/zend_compile.c
parent6c0e1ca4fa31a860a363abecd6376d99edff8833 (diff)
parent2104bea5d756dfa40b605a4a2765a3bc4637a76c (diff)
downloadphp-git-a2bc7cf9ca74c051bfd287c1b3d54c76945f10cc.tar.gz
Merge branch 'master' of git.php.net:/php-src
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 14e9a9c4ca..44ed339d4e 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1879,22 +1879,6 @@ ZEND_API size_t zend_dirname(char *path, size_t len)
return len;
}
}
-#elif defined(NETWARE)
- /*
- * Find the first occurrence of : from the left
- * move the path pointer to the position just after :
- * increment the len_adjust to the length of path till colon character(inclusive)
- * If there is no character beyond : simple return len
- */
- char *colonpos = NULL;
- colonpos = strchr(path, ':');
- if (colonpos != NULL) {
- len_adjust = ((colonpos - path) + 1);
- path += len_adjust;
- if (len_adjust == len) {
- return len;
- }
- }
#endif
if (len == 0) {
@@ -1919,20 +1903,9 @@ ZEND_API size_t zend_dirname(char *path, size_t len)
}
if (end < path) {
/* No slash found, therefore return '.' */
-#ifdef NETWARE
- if (len_adjust == 0) {
- path[0] = '.';
- path[1] = '\0';
- return 1; /* only one character */
- } else {
- path[0] = '\0';
- return len_adjust;
- }
-#else
path[0] = '.';
path[1] = '\0';
return 1 + len_adjust;
-#endif
}
/* Strip slashes which came before the file name */