[php5_debug] String 클래스에서 Fill2함수에서 $String변수 초기화가 없어 에러가 발생. 경우에 따라 더미값이 들어갈 여지가 있어 for문 앞에서 초기화를 1회 수행.
This commit is contained in:
@@ -173,7 +173,7 @@ class _String {
|
||||
$size = strlen($str);
|
||||
|
||||
$count = ($maxsize - $size);
|
||||
|
||||
$string = '';
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$string = $string.$ch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user