1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00

Fixed #68915 (wrong assertion here)

This commit is contained in:
Xinchen Hui
2015-01-27 15:58:05 +08:00
parent dfe6aea9ca
commit 59593ba66c

View File

@@ -963,7 +963,6 @@ SPL_METHOD(DirectoryIterator, getExtension)
p = zend_memrchr(fname->val, '.', fname->len);
if (p) {
assert(p > fname->val);
idx = (int)(p - fname->val);
RETVAL_STRINGL(fname->val + idx + 1, fname->len - idx - 1);
zend_string_release(fname);