From: edwin at cheatah dot nl Operating system: PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug description: ob_include function
Description: ------------ I often use something like the following code: ob_start (); include './tpl/mail.php'; $message = ob_get_contents (); ob_end_flush (); I would very much like to see a function of control stucture like this: $message = ob_include ( './tpl/mail.php' ); // or $message = ob_include './tpl/mail.php'; Of course ob_include_once, ob_require and ob_require_once behave similarly. (Creating a custom function in PHP code is NOT possible, for the function's scope would be used.) -- Edit bug report at http://bugs.php.net/?id=29416&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29416&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29416&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29416&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29416&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29416&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29416&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29416&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29416&r=support Expected behavior: http://bugs.php.net/fix.php?id=29416&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29416&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29416&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29416&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29416&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29416&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29416&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29416&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29416&r=float