[TYPO3-core] RFC #16200: New feature: add a control function for debugging

Franz Holzinger franz at ttproducts.de
Tue Nov 2 11:16:13 CET 2010


Le 02/11/2010 10:57, Markus Klein a écrit :

>> function debugControl(array $parameters) {
>> 	ob_start();
>> 	print_r($parameters);
>> 	$debugOut = ob_get_contents();
>> 	ob_end_clean();
>> 	error_log ('debugControl $parameters: '.$debugOut); }
>
> Is there any reason you're doing this in such a complicated way?
> IMHO this will do the same:
> 	error_log ('debugControl $parameters: ' . print_r($parameters,
> TRUE));

Good point. Thank you.


- Franz



More information about the TYPO3-team-core mailing list