Почему не удаётся присоединить символ к строке длиной более 1024 байта

Статус
В этой теме нельзя размещать новые ответы.

dump1111

Участник
Регистрация
7 Июл 2009
Сообщения
266
Реакции
8
Когда строка достигает длину более 1024 байта, к ней перестают присоединятся символы. Это баг или так и должно быть? И как можно это обойти?
 
не замечал. пример, если можно?
 
это баг однозначно, у меня строки и по нескольку тысяч символов - проблем незамечал
 
не замечал. пример, если можно?
Ну вот пример.
PHP:
<?php
$content= <<< CONTENT
. . . And Basil?  From a psychological point of view,how interesting he was!  The new manner in art, the freshmode of looking at life, suggested so strangely by the merelyvisible presence of one who was unconscious of it all;the silent spirit that dwelt in dim woodland, and walked unseenin open field, suddenly showing herself, Dryadlike and not afraid,because in his soul who sought for her there had been wakenedthat wonderful vision to which alone are wonderful things revealed;the mere shapes and patterns of things becoming, as it were,refined, and gaining a kind of symbolical value, as thoughthey were themselves patterns of some other and more perfectform whose shadow they made real:  how strange it all was!He remembered something like it in history.  Was it not Plato,that artist in thought, who had first analyzed it?Was it not Buonarotti who had carved it in the coloured marblesof a sonnetsequence? But in our own century it was strange.. . . Yes; he would try to be to Dorian Gray what, without knowing it
CONTENT;
$newcontent='fgssssssssssssssssssssssssssss';
$content=$content.$newcontent;
?>
К значению переменной $newcontent прибовляется только fgs, а остальные sss.. не прибавляются. Я использую PHP 5.2.10.
 
У меня все работает. Вот просто скопировал твой код, добавил в конце echo $content и запустил - весь текст, все sssss в конце вывелись, как и положено.
 
Копайте в сторону php.ini(php.conf). Скорее всего там стоит какой-то лимит.
 
вбей в начало скрипта ini_set('error_reporting', E_ALL);
и посмотри что при соединении строк выдает
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху