Yasuo Ohgaki wrote:
> yohgaki Thu Oct 3 04:54:45 2002 EDT
>
> Modified files:
> /php4/ext/standard var.c
> Log:
> Prevent unwanted fluhsing.
Unwanted flushing which Derick mentioned is fixed.
I think there is something wrong in CLI.
It seems CLI is bypassing output buffer somehow. It leads
to unwanted behavior for any code uses buffer. Unless this
is fixed, all ob_*() functions cannot be used or is useless
under CLI.
[yohgaki@dev DEV]$ sapi/cli/php
<?php
$str = var_export ("foo", TRUE);
var_dump($str);
?>
AAAAAAAA
======= OUTPUTS ========
string(0) ""
AAAAAAAA
[yohgaki@dev DEV]$ sapi/cgi/php-cgi
<?php
$str = var_export ("foo", TRUE);
var_dump($str);
?>
AAAAAAAA
======= OUTPUTS ========
Status: 200
Content-type: text/html
string(5) "'foo'"
AAAAAAAA
[yohgaki@dev DEV]$
--
Yasuo Ohgaki
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php