[TYPO3-core] RFC #- buffer output for debug function

Steffen Kamper steffen at sk-typo3.de
Mon Nov 19 20:33:37 CET 2007


Hi,

Type: cleanup

Branches:
Trunk

Problem
one not very nice with t3lib_div::debug is that output is printed direct 
with echo. This causes error "header already sent..."

Solution
simply start debug-function with ob_start();

later improvement could return it in var so output could be controlled.

vg  Steffen


begin 666 20071119_debug_buffering.diff
M26YD97 at Z('0S;&EB+V-L87-S+G0S;&EB7V1I=BYP:' -"CT]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T-"BTM+2!T,VQI8B]C;&%S<RYT,VQI8E]D:78N<&AP"2AR
M979I<VEO;B R-S,T*0T**RLK('0S;&EB+V-L87-S+G0S;&EB7V1I=BYP:' )
M*'=O<FMI;F<@8V]P>2D-"D! ("TR.3 R+#8@*S(Y,#(L-R! 0 T*( D@*B! 
M<F5T=7)N"79O:60*( D@*B\*( EF=6YC=&EO;B!D96)U9R at D=F%R/2<G+"1B
M<D]R2&5A9&5R/3 I"7L**PD);V)?<W1A<G0H*3L*( D):68@*"1B<D]R2&5A
M9&5R("8F("%T,VQI8E]D:78Z.G1E<W1);G0H)&)R3W)(96%D97(I*0E["B )
M"0EE8VAO("<\=&%B;&4 at 8VQA<W,](G1Y<&\S+61E8G5G(B!B;W)D97(](C B
M(&-E;&QP861D:6YG/2(P(B!C96QL<W!A8VEN9STB,"(@8F=C;VQO<CTB=VAI
M=&4B('-T>6QE/2)B;W)D97(Z,'!X.R!M87)G:6XM=&]P.C-P>#L@;6%R9VEN
M+6)O='1O;3HS<'@[(CX\='(^/'1D('-T>6QE/2)B86-K9W)O=6YD+6-O;&]R
M.B-B8F)B8F([(&9O;G0M9F%M:6QY.B!V97)D86YA+&%R:6%L.R!F;VYT+7=E
M:6=H=#H at 8F]L9#L at 9F]N="US:7IE.B Q,'!X.R(^)RYH=&UL<W!E8VEA;&-H
M87)S*"AS=')I;F<I)&)R3W)(96%D97(I+B<\+W1D/CPO='(^/'1R/CQT9#XG
@.PH@"0E](&5L<V5I9B H)&)R3W)(96%D97(\,"D)>PH`
`
end



More information about the TYPO3-team-core mailing list