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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user