|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-30 22:59 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: PHP options/info functions
[2017-08-23 00:49 UTC] kalle@php.net
[2017-08-23 00:49 UTC] kalle@php.net
-Status: Open
+Status: Analyzed
[2018-07-04 01:21 UTC] kalle@php.net
-Status: Analyzed
+Status: Closed
-Assigned To:
+Assigned To: kalle
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 18:00:01 2025 UTC |
Description: ------------ Using CLI php.exe or php-win.exe on Windows, it is a perfectly reasonable thing to use COM to bring up Internet Explorer. In fact, it makes a lot of sense to use it strictly as a graphical output (or I/O) mechanism. Unfortunately, phpinfo() from these versions of php does not allow the option of outputting with HTML. Since COM is now supported in PHP5, it seems that wanting CLI output of phpinfo() to go to a browser will become more common. I would therefore like to suggest that either: (1) phpinfo() respect the html_errors setting or (2) phpinfo() take a second, optional argument, which, if supplied and non false, would lead to phpinfo() outputting HTML for CLI php and withholding the HTML for non CLI php. Thanks, Csaba Gabor from Vienna Note. Running the attached code with php-cgi.exe will illustrate what I would like: formatted phpinfo() appearing in IE. But I'd like it to work with php.exe and php-win.exe, too. Reproduce code: --------------- <?php // bring up IE (from CLI php.exe) $ie = new COM("InternetExplorer.Application"); $ie->Navigate("about:blank"); $ie->visible = true; // try to get formatted phpinfo(); ini_set("html_errors", "1"); ob_start(); phpinfo(); $phpinfo = ob_get_contents(); ob_end_clean(); // output it to IE $ie->Document->Write($phpinfo); ?> Expected result: ---------------- I would expect to get formatted phpinfo() with the supplied code example, but I only get raw phpinfo().