Re: PHP 4.0 Bug #5714: print_r() or/and var_dump() into a string
| From: | Zeev Suraski | Date: | Thu, 20 Jul 2000 22:30:14 +0000 |
| Subject: | Re: PHP 4.0 Bug #5714: print_r() or/and var_dump() into a string | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25300@lists.php.net to get a copy of this message | ||
Look into the output buffering functions (ob_*()). There's no intention
to add the ability to redirect each and every PHP function into a string;
The output buffering give you a generic interface for that.
You can see their prototypes at http://www.zend.com/phpfunc/
Zeev
On 20 Jul 2000 Dante@altmuehlnet.de wrote:
> From: Dante@altmuehlnet.de
> Operating system: Linux / Win98 / Win2000
> PHP version: 4.0.0
> PHP Bug Type: Feature/Change Request
> Bug description: print_r() or/and var_dump() into a string
>
> print_r() and var_dump() are very usefull for debugging!
>
> I have an extra class for errors, for logging and so on...
> I would be very usefull when print_r() and/or var_dump() could return a string containig the
> informaition, cause normally will be directly printed to screen, and I can't bring that into an
> log-file.
> I can read out the information by self (while...each($object)), but if print_r() and/or
> var_dump() directly could do this it would be more better.
>
> Bye & Thanks
> Dante
>
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/