version 1.1.1.4, 2013/10/14 08:02:35
|
version 1.1.1.5, 2014/06/15 20:03:57
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2013 The PHP Group | | | Copyright (c) 1997-2014 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| 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 | |
| that is bundled with this package in the file LICENSE, and is | |
Line 1441 PHPAPI void php_basename(const char *s, size_t len, ch
|
Line 1441 PHPAPI void php_basename(const char *s, size_t len, ch
|
state = 0; |
state = 0; |
cend = c; |
cend = c; |
} |
} |
|
#if defined(PHP_WIN32) || defined(NETWARE) |
|
/* Catch relative paths in c:file.txt style. They're not to confuse |
|
with the NTFS streams. This part ensures also, that no drive |
|
letter traversing happens. */ |
|
} else if ((*c == ':' && (c - comp == 1))) { |
|
if (state == 0) { |
|
comp = c; |
|
state = 1; |
|
} else { |
|
cend = c; |
|
state = 0; |
|
} |
|
#endif |
} else { |
} else { |
if (state == 0) { |
if (state == 0) { |
comp = c; |
comp = c; |