Bug #71942 [NEW]: php_info() displays logo although expose_php is off

From: Date: Fri, 01 Apr 2016 13:27:17 +0000
Subject: Bug #71942 [NEW]: php_info() displays logo although expose_php is off
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200288@lists.php.net to get a copy of this message
From: powtac at gmx dot de Operating system: Ubuntu 3.13.0-79 PHP version: 5.6.20 Package: *General Issues Bug Type: Bug Bug description:php_info() displays logo although expose_php is off Description: ------------ With expose_php off I expect to have no logo displayed on php_info(). http://php.net/manual/ini.core.php#ini.expose-php says: "... affected the output of phpinfo(), as when disabled, the PHP logo and credits information would not be displayed." But actually the logo is displayed when running simple php_info(). See also http://stackoverflow.com/a/36356058/22470 Test script: --------------- <?php // expose_php must be off in php.ini // It can't be tested with 3v4l.org since php_info() is disabled there! ob_start(); phpinfo(); $out = ob_get_contents(); ob_end_clean(); echo 'expose_php is set to: '.var_export(getenv('expose_php'), 1)."\n"; echo 'Logo is present: '.var_export(preg_match('~alt="PHP logo"~', $out), 1); Expected result: ---------------- expose_php is set to: false Logo is present: 0 Actual result: -------------- expose_php is set to: false Logo is present: 1 -- Edit bug report at https://bugs.php.net/bug.php?id=71942&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71942&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71942&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71942&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71942&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71942&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71942&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71942&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71942&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71942&r=support Expected behavior: https://bugs.php.net/fix.php?id=71942&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71942&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71942&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71942&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71942&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71942&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71942&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71942&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71942&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71942&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71942&r=mysqlcfg

« previous php.bugs (#200288) next »