ob_start() and objects
| From: | (Marcus Boerger) | Date: | Sun, 25 Aug 2002 13:25:25 +0000 |
| Subject: | ob_start() and objects | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-87436@lists.php.net to get a copy of this message | ||
To have ob_start() working again i first allowed
array(object,method).
In addition to that i allowed single objects to be passed
which results in calling __output_handler() method of
that object.
You can now use:
ob_start(string)
ob_start(object)
ob_start(array(object,method))
ob_start(array(mixed))
string is either a functionname or a comma separated list of functionnames
mixed is string, object or array
example script with object only call: http://zaphod.boerger.de/php/ext/output-method-source.php
notice that this server does not run a cvs snapshot.
marcus