I'm curious about why there is no PHP & Zend image and take a look
at info.c finally.

phpinfo() do not show PHP & Zend logo when expose_php is set to
off. I thought this is a some thought of a problem at first. This
behaviour is confusing anyway. Any good reason for this?

It just doesn't make sense, no images if expose_php=off.
Any need to hide images, if expose_php=off?

Here is code from ext/standard/info.c.

-----
if (expose_php) {
        PUTS("<a href=\"http://www.php.net/\"><img src=\"");
        if (SG(request_info).request_uri) {
                PUTS(SG(request_info).request_uri);
        }
        if ((ta->tm_mon==3) && (ta->tm_mday==1)) {
                PUTS("?="PHP_EGG_LOGO_GUID"\" border=0 align=\"right\"
alt=\"Thies!\"></a>");
        } else {
                PUTS("?="PHP_LOGO_GUID"\" border=0 align=\"right\" alt=\"PHP
Logo\"></a>");
        }
}

-----
php_info_print_box_start(0);
if (expose_php) {
        PUTS("<a href=\"http://www.zend.com/\"><img src=\"");
        if (SG(request_info).request_uri) {
        PUTS(SG(request_info).request_uri);
}
PUTS("?="ZEND_LOGO_GUID"\" border=\"0\" align=\"right\" alt=\"Zend
logo\"></a>\n");

--
Yasuo Ohgaki


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to