RE: [PHP-DEV] Bug #858: sprintf gives "Document Contains No Data" when referenced string is empty

From: Date: Tue, 20 Oct 1998 15:46:54 +0000
Subject: RE: [PHP-DEV] Bug #858: sprintf gives "Document Contains No Data" when referenced string is empty
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-1923@lists.php.net to get a copy of this message
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@clearink.com > > 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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1923) next »