[dev] Allow Util::bufferOutput() to accept static methods?

Michael Rubinsky mike at theupstairsroom.com
Sun Nov 12 09:57:49 PST 2006


Needed the ability to buffer output (image generation) from within a  
class (a horde block, actually).  Instead of doing the ob_start()...  
stuff myself, would it be feasable to patch Util::bufferOutput() like  
the attached patch or am I missing some really obvious problem with  
this approach?


-- 
Thanks,
Mike

"Am I getting old, or has the supermarket been playing great music lately?"




-------------- next part --------------
Index: Util.php
===================================================================
RCS file: /repository/framework/Util/Util.php,v
retrieving revision 1.410
diff -r1.410 Util.php
79c79,84
<                 return false;
---
>                 $method = array_shift($args);
>                 if (is_callable(array($function, $method))) {
>                     call_user_func_array(array($function, $method), $args);
>                 } else {
>                     return false;
>                 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 2013 bytes
Desc: PGP Public Key
Url : http://lists.horde.org/archives/dev/attachments/20061112/598be708/attachment.bin


More information about the dev mailing list