summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReeze Xia <reeze.xia@gmail.com>2012-08-09 21:43:59 +0800
committerReeze Xia <reeze.xia@gmail.com>2012-08-09 21:43:59 +0800
commit3d4169d751d443313da9f6299d1aff3d9fdc7ed0 (patch)
treea2c27471e62ec8bbb1a0fe5f6adf4b2c40f4d9ee
parent1190bc440be0ab8ef6703dc9cb1dc4d64bf538f0 (diff)
downloadphp-git-3d4169d751d443313da9f6299d1aff3d9fdc7ed0.tar.gz
Fix phpcredits() BC after remove Logo GUIDs
This test was affected: ext/standard/tests/general_functions/phpcredits2.phpt see https://github.com/php/php-src/pull/132/files#diff-3 This makes constant PHP_CREDITS_FULLPAGE didn't functional anymore.
-rw-r--r--ext/standard/credits.c8
-rw-r--r--ext/standard/info.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/ext/standard/credits.c b/ext/standard/credits.c
index 0f5d6d7351..e87cdcad8b 100644
--- a/ext/standard/credits.c
+++ b/ext/standard/credits.c
@@ -27,6 +27,10 @@
PHPAPI void php_print_credits(int flag TSRMLS_DC) /* {{{ */
{
+ if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
+ php_print_info_htmlhead(TSRMLS_C);
+ }
+
if (!sapi_module.phpinfo_as_text) {
PUTS("<h1>PHP Credits</h1>\n");
} else {
@@ -119,6 +123,10 @@ PHPAPI void php_print_credits(int flag TSRMLS_DC) /* {{{ */
CREDIT_LINE("Windows Infrastructure", "Alex Schoenmaker");
php_info_print_table_end();
}
+
+ if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
+ PUTS("</div></body></html>\n");
+ }
}
/* }}} */
diff --git a/ext/standard/info.c b/ext/standard/info.c
index 089f515d95..beb147797d 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -881,7 +881,7 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
if ((flag & PHP_INFO_CREDITS) && !sapi_module.phpinfo_as_text) {
php_info_print_hr();
- php_print_credits(PHP_CREDITS_ALL TSRMLS_CC);
+ php_print_credits(PHP_CREDITS_ALL & ~PHP_CREDITS_FULLPAGE TSRMLS_CC);
}
if (flag & PHP_INFO_LICENSE) {