第46行
$act_attachname=substr($act_attachname,-60);
新版php就变成空值了。。
lanny at freemail dot hu
26-Jun-2007 06:31
Starting from version 5.2.3 if $start is negative and larger then the length of the string, the result is an empty string, while in earlier versions the result was the string itself!
substr ("abcdef", -1000);
result in 5.2.0
'abcdef'
result in 5.2.3
''
This is a small inconsistency, one of those things that makes the life of a PHP programmer like hell.
--
FROM 221.201.193.*