ID:               24121
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at alterego dot dp dot ua
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
-Operating System: All
+Operating System: Any
 PHP Version:      4.3.2
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

fixed by derick


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

[2003-06-11 04:28:25] php at alterego dot dp dot ua

Documentation states
void ob_start ( [callback output_callback])

In reality since 4.3.2 this function returns a boolean value. It
returns true if output buffering started successfully, and false if
some problem occured. This problem can be output callback function that
does not exist. Earlier versions of PHP started output buffering with
default handler in this case.

Code to show backward incompatibility:
<?
  ob_start();
  echo "AAA";
  $a = ob_get_contents();
  $var = ob_start("thereisnosuchfunction");
  echo "BBB";
  $b = ob_get_contents();
  ob_end_clean();
  ob_end_clean();
  echo $b.'---'.$a;
  var_dump($var);
?>

4.3.2 outputs
AAABBB---AAAbool(false)
earlier versions output
BBB---AAAbool(true)

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


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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to