Re: cvs: phpweb / mirror-info.php
| From: | shimi | Date: | Fri, 06 Aug 2004 13:33:02 +0000 |
| Subject: | Re: cvs: phpweb / mirror-info.php | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-25714@lists.php.net to get a copy of this message | ||
I rsynced my mirror, re-enabled output buffering in php.ini, and
restarted apache. mirror-info does not have the bug anymore.
Thanks. :)
Shimi
On Fri, 2004-08-06 at 14:58, Gabor Hojtsy wrote:
> goba Fri Aug 6 07:58:44 2004 EDT
>
> Modified files:
> /phpweb mirror-info.php
> Log:
> try to flush a php.ini started output buffer (problem noticed by shimi)
>
>
> http://cvs.php.net/diff.php/phpweb/mirror-info.php?r1=1.14&r2=1.15&ty=u
> Index: phpweb/mirror-info.php
> diff -u phpweb/mirror-info.php:1.14 phpweb/mirror-info.php:1.15
> --- phpweb/mirror-info.php:1.14 Wed Aug 20 13:06:20 2003
> +++ phpweb/mirror-info.php Fri Aug 6 07:58:44 2004
> @@ -32,6 +32,11 @@
>
> echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|$searchtype|$mirror_stats|"
> , default_language(), "|";
>
> +// Try to flush an output buffer which was
> +// started in php.ini, so the virtual() is really
> +// output after the info above
> +ob_flush();
> +
> // Test if there is a /manual alias
> $correctmanual = @virtual("/manual/noalias.txt");
> if (!$correctmanual) { echo "manual-alias"; }
--
Never forget that:
1. "Sure UNIX is user-friendly! It's just picky about who its friends
are!"
2. "The day that Microsoft make a product that doesn't suck,
is the day they start making vacuum cleaners.."
3. "Windows is a 32bit port for a 16bit GUI for an 8bit OS made for a
4bit CPU by a 2bit company that can't stand 1bit of competition!"