Re: ob_start() and objects

From: Date: Sun, 25 Aug 2002 13:53:01 +0000
Subject: Re: ob_start() and objects
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-87440@lists.php.net to get a copy of this message
At 16:25 25/08/2002, Marcus Boerger wrote:
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.
Why? Output handling doesn't appear to be something that's standard for objects to handle... I don't see why we should introduce a standard handler for it in objects, beyond the syntax that already works (array(object, method)).
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
What happens when there are multiple function names? Zeev

« previous php.dev (#87440) next »