ID:               42641
 Comment by:       web4you at inbox dot ru
 Reported By:      robin_fernandes at uk dot ibm dot com
 Status:           Assigned
 Bug Type:         Output Control
 Operating System: Windows
 PHP Version:      5CVS-2007-09-12 (snap)
 Assigned To:      mike
 New Comment:

<?php
function f($str) {
  return $str;
}
function checkAndClean() {
  print_r(ob_list_handlers());
  while (ob_get_level()>0) {
    ob_end_flush();
  }
}
var_dump(ob_start(array('non_existent', 'f')));
checkAndClean();
var_dump(ob_start(array('non_existent', 'f', 'f')));
checkAndClean();
var_dump(ob_start('non_existent,f'));
checkAndClean();
var_dump(ob_start('non_existent,f,f'));  //bug: expecting false with
no
output buffers. Actually returns true and initialises 2 output
buffers.
checkAndClean();
?>


is it right


buy oem 
http://5starcontent.com/


Previous Comments:
------------------------------------------------------------------------

[2008-07-13 16:23:16] [EMAIL PROTECTED]

Mike? See above comment..?

------------------------------------------------------------------------

[2007-09-18 12:28:29] [EMAIL PROTECTED]

Mike, can you backport the stuff to PHP_5_3 once it's opened?

------------------------------------------------------------------------

[2007-09-14 10:07:18] robin_fernandes at uk dot ibm dot com

OK. On this subject, I think I'm running into a few other output
buffering issues which seem to be fixed in the php6 snaps. Some of these
are illustrated by tests in HEAD that fail on php5 snaps, e.g.
http://lxr.php.net/source/php-src/tests/output/ob_017.phpt . Should I
raise bugs against php5, or is there a plan to backport some output
buffering code from HEAD to php5?

------------------------------------------------------------------------

[2007-09-13 19:05:24] [EMAIL PROTECTED]

This undocumented behaviour does not exist in any way in HEAD any
longer.  The implementation seemed questionable, as an array as
parameter usually indicates a method callback.


------------------------------------------------------------------------

[2007-09-13 09:22:07] [EMAIL PROTECTED]

Yeah, now that I took a closer look I can see there's something like
this implemented..I wonder when/why. :)

Please don't open documentation issue yet.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/42641

-- 
Edit this bug report at http://bugs.php.net/?id=42641&edit=1

Reply via email to