Fixed bug codes in SplFileInfo::getExtension

This commit is contained in:
Xinchen Hui committed 2014-03-15 22:17:55 +08:00
1 parent a49781f20d
commit b264e96497
1 file changed
+1 -1
+1 -1
View File
@@ -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;