mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 18:35:42 +00:00
Fixed bug codes in SplFileInfo::getExtension
This commit is contained in:
1 parent
a49781f20d
commit
b264e96497
1 file changed
+1
-1
@@ -939,7 +939,7 @@ SPL_METHOD(SplFileInfo, getExtension)
|
||||
|
||||
p = zend_memrchr(ret->val, '.', ret->len);
|
||||
if (p) {
|
||||
idx = p - fname;
|
||||
idx = p - ret->val;
|
||||
RETVAL_STRINGL(ret->val + idx + 1, ret->len - idx - 1);
|
||||
STR_RELEASE(ret);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user