[php5_debug] String 클래스에서 Fill2함수에서 $String변수 초기화가 없어 에러가 발생. 경우에 따라 더미값이 들어갈 여지가 있어 for문 앞에서 초기화를 1회 수행.

This commit is contained in:
2018-01-17 13:05:30 +09:00
parent 1082a8077d
commit 9a1d23f8b9
+1 -1
View File
@@ -173,7 +173,7 @@ class _String {
$size = strlen($str);
$count = ($maxsize - $size);
$string = '';
for($i=0; $i < $count; $i++) {
$string = $string.$ch;
}