mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fixed #68915 (wrong assertion here)
This commit is contained in:
parent
dfe6aea9ca
commit
59593ba66c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user