version 1.1.1.1, 2012/02/21 23:48:05
|
version 1.1.1.2, 2012/05/29 12:34:35
|
Line 50 PHPAPI int php_unregister_info_logo(char *logo_string)
|
Line 50 PHPAPI int php_unregister_info_logo(char *logo_string)
|
return zend_hash_del(&phpinfo_logo_hash, logo_string, strlen(logo_string)); |
return zend_hash_del(&phpinfo_logo_hash, logo_string, strlen(logo_string)); |
} |
} |
|
|
#if SUHOSIN_PATCH |
|
#include "suhosin_logo.h" |
|
#endif |
|
|
|
int php_init_info_logos(void) |
int php_init_info_logos(void) |
{ |
{ |
if(zend_hash_init(&phpinfo_logo_hash, 0, NULL, NULL, 1)==FAILURE) |
if(zend_hash_init(&phpinfo_logo_hash, 0, NULL, NULL, 1)==FAILURE) |
Line 62 int php_init_info_logos(void)
|
Line 58 int php_init_info_logos(void)
|
php_register_info_logo(PHP_LOGO_GUID , "image/gif", php_logo , sizeof(php_logo)); |
php_register_info_logo(PHP_LOGO_GUID , "image/gif", php_logo , sizeof(php_logo)); |
php_register_info_logo(PHP_EGG_LOGO_GUID, "image/gif", php_egg_logo, sizeof(php_egg_logo)); |
php_register_info_logo(PHP_EGG_LOGO_GUID, "image/gif", php_egg_logo, sizeof(php_egg_logo)); |
php_register_info_logo(ZEND_LOGO_GUID , "image/gif", zend_logo , sizeof(zend_logo)); |
php_register_info_logo(ZEND_LOGO_GUID , "image/gif", zend_logo , sizeof(zend_logo)); |
#if SUHOSIN_PATCH | |
php_register_info_logo(SUHOSIN_LOGO_GUID, "image/jpeg", suhosin_logo , sizeof(suhosin_logo)); | |
#endif | |
return SUCCESS; |
return SUCCESS; |
} |
} |
|
|
Line 91 int php_info_logos(const char *logo_string TSRMLS_DC)
|
Line 85 int php_info_logos(const char *logo_string TSRMLS_DC)
|
content_header[len] = '\0'; |
content_header[len] = '\0'; |
sapi_add_header(content_header, len, 0); |
sapi_add_header(content_header, len, 0); |
|
|
PHPWRITE(logo_image->data, logo_image->size); | PHPWRITE((char*)logo_image->data, logo_image->size); |
return 1; |
return 1; |
} |
} |
|
|