Skip to content

Commit ee6540a

Browse files
Removed now-unnecessary expose_php checks for logo
1 parent 92d2aeb commit ee6540a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ext/standard/info.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
652652
{
653653
char **env, *tmp1, *tmp2;
654654
char *php_uname;
655-
int expose_php = INI_INT("expose_php");
656655

657656
if (!sapi_module.phpinfo_as_text) {
658657
php_print_info_htmlhead(TSRMLS_C);
@@ -670,7 +669,7 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
670669
php_info_print_box_start(1);
671670
}
672671

673-
if (expose_php && !sapi_module.phpinfo_as_text) {
672+
if (!sapi_module.phpinfo_as_text) {
674673
time_t the_time;
675674
struct tm *ta, tmbuf;
676675

@@ -783,7 +782,7 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
783782

784783
/* Zend Engine */
785784
php_info_print_box_start(0);
786-
if (expose_php && !sapi_module.phpinfo_as_text) {
785+
if (!sapi_module.phpinfo_as_text) {
787786
php_info_print("<a href=\"http://www.zend.com/\"><img border=\"0\" src=\"");
788787
php_info_print(ZEND_LOGO_DATA_URI "\" alt=\"Zend logo\" /></a>\n");
789788
}
@@ -798,7 +797,7 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
798797
efree(php_uname);
799798
}
800799

801-
if ((flag & PHP_INFO_CREDITS) && expose_php && !sapi_module.phpinfo_as_text) {
800+
if ((flag & PHP_INFO_CREDITS) && !sapi_module.phpinfo_as_text) {
802801
php_info_print_hr();
803802
php_info_print("<script>(function () {\n");
804803
php_info_print("'use strict';\n");

0 commit comments

Comments
 (0)