[PHP-CVS] cvs: php4 /ext/standard info.c
by Jan Lehnardt other posts by this author
Aug 29 2002 9:11AM messages near this date
[PHP-CVS] cvs: php4(PHP_4_2_0) /tests/basic 011.phpt
|
[PHP-CVS] cvs: php4(PHP_4_2_0) /ext/exif exif.c
jan Thu Aug 29 05:11:22 2002 EDT
Modified files:
/php4/ext/standard info.c
Log:
- fix ZTS build. thanks to edin.
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.195 php4/ext/standard/info.c:1.196
--- php4/ext/standard/info.c:1.195 Wed Aug 28 19:19:59 2002
+++ php4/ext/standard/info.c Thu Aug 29 05:11:22 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.195 2002/08/28 23:19:59 iliaa Exp $ */
+/* $Id: info.c,v 1.196 2002/08/29 09:11:22 jan Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -295,9 +295,13 @@
if (!charset || !charset[0]) {
charset = "US-ASCII";
}
- php_printf("<title> phpinfo()</title><meta http-equiv=\"Content-Type\" content=\"text/html;
charset=%s\"> </head>", charset);
- PUTS("<body text=\"#000000\" bgcolor=\"#f0f0ff\" link=\"#0000ff\" vlink=\"#ff00ff\" alink=
\"#0000ff\"> ");
+ if (PG(html_errors)) {
+ php_printf("<title> phpinfo()</title><meta http-equiv=\"Content-Type\" content=\"text/html
; charset=%s\"> </head>", charset);
+ PUTS("<body text=\"#000000\" bgcolor=\"#f0f0ff\" link=\"#0000ff\" vlink=\"#ff00ff\" alink
=\"#0000ff\"> ");
+ } else {
+ PUTS("phpinfo()");
+ }
if (flag & PHP_INFO_GENERAL) {
char *zend_version = get_zend_version();
@@ -537,6 +541,8 @@
PHPAPI void php_info_print_table_start()
{
+ TSRMLS_FETCH();
+
if (PG(html_errors)) {
php_printf("<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"600\" bgcolor
=\"#000000\" align=\"center\"> \n");
} else {
@@ -545,7 +551,9 @@
}
PHPAPI void php_info_print_table_end()
-{
+{
+ TSRMLS_FETCH();
+
if (PG(html_errors)) {
php_printf("</table> <br />\n");
}
@@ -554,6 +562,8 @@
PHPAPI void php_info_print_box_start(int flag)
{
+ TSRMLS_FETCH();
+
php_info_print_table_start();
if (flag) {
if (PG(html_errors)) {
@@ -570,6 +580,8 @@
PHPAPI void php_info_print_box_end()
{
+ TSRMLS_FETCH();
+
if (PG(html_errors)) {
php_printf("</td> </tr>\n");
}
@@ -578,6 +590,8 @@
PHPAPI void php_info_print_hr()
{
+ TSRMLS_FETCH();
+
if (PG(html_errors)) {
php_printf("<hr noshade size=\"1\" width=\"600\"> \n");
} else {
@@ -588,6 +602,8 @@
PHPAPI void php_info_print_table_colspan_header(int num_cols, char *header)
{
int spaces;
+
+ TSRMLS_FETCH();
if (PG(html_errors)) {
php_printf("<tr bgcolor=\"" PHP_HEADER_COLOR "\"> <th colspan=\"%d\">%s</th></tr>\n", num_
cols, header );
@@ -605,6 +621,8 @@
va_list row_elements;
char *row_element;
+ TSRMLS_FETCH();
+
va_start(row_elements, num_cols);
if (PG(html_errors)) {
php_printf("<tr valign=\"middle\" bgcolor=\"" PHP_HEADER_COLOR "\"> ");
@@ -640,6 +658,7 @@
int i;
va_list row_elements;
char *row_element;
+
TSRMLS_FETCH();
va_start(row_elements, num_cols);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Jan Lehnardt
Sebastian Bergmann
Jan Lehnardt
Sebastian Bergmann
Jan Lehnardt
Jan Lehnardt
|