RE: [PHP-DEV] Bug #858: sprintf gives "Document Contains No Data" when referenced string is empty From: Leon Atkinson (leon <email protected>)
Date: 10/20/98

Yes I'm printing lots of other stuff. This is just a snippet. If you
prefer:

<HTML>
<?
        print(sprintf("%s", ""));
?>
</HTML>

In the script in which I discovered this, I had lots of other print
statements. If I added calls to flush(), then I would get the output, up to
the point where sprintf caused the script to crash.

Leon

> Are you printing anything else?
> if not, how is this a bug?
>
> you are telling it to print out nothing, and your browser
> is verifying that by stating that your page contains nothing.
>
> Mark
>
> >
> > From: leon <email protected>
> > Operating system: Solaris
> > PHP version: 3.0.5
> > PHP Bug Type: Misbehaving function
> > Bug description: sprintf gives "Document Contains No Data"
> when referenced string is empty
> >
> > <?
> > print(sprintf("%s", ""));
> > ?>
> >
> > I should note that this is intermittent, though hitting reload
> a bunch of times seems
> > to cause it to happen reliably.

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>