PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Benchmarking » Benchmark » Bug #6157

text output even on http connection

Details

Request #6157text output even on http connection
Submitted2005-12-05 16:30 UTC
Fromsintemaa at hotmail dot com
Assignedmatthias
StatusClosed
PackageBenchmark
PHP Version4.4.0
Roadmaps(Not assigned)

Comments

[2005-12-05 16:30 UTC] sintemaa at hotmail dot com

Description:
------------
I saw by looking in the code that display only outputs a html formatted table if it detects it is being opened through a browser, and uses text formatting otherwise.

I assume this behaviour has been added to facilitate the benchmarking of commandline scripts ofcourse.

However I would like it very much if there would be a way to get non-html layout over http requests aswell. I have a script which is tested through a browser, but outputs plain text.

Maybe an optional parameter for display and/or getOutput?

[2006-03-02 09:26 UTC] matthias at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

There is now an optinal string parameter for display. Possible values are

plain = plaintext output
html = html formatted output
auto = autodetect

auto is the default.