--- config.h.in Sun Dec 21 22:47:37 1997
+++ config.h.in Sun Dec 21 23:12:20 1997
@@ -132,6 +132,9 @@
/* Define if you are compiling PHP as an Apache module */
#define APACHE 0
+/* Since we are using *Russian* Apache we need this */
+#define USE_TRANSFER_TABLES 1
+
#define HAVE_SYBASE 0
#define HAVE_SYBASE_CT 0
--- main.c Mon Dec 8 02:10:43 1997
+++ main.c Sun Dec 21 23:10:14 1997
@@ -244,7 +244,17 @@
va_start(args, format);
#if APACHE
if (GLOBAL(php3_rqst)) {
+#ifndef USE_TRANSFER_TABLES
ret = vbprintf(GLOBAL(php3_rqst)->connection->client, format, args);
+#else
+ /* working copy of format again, see rputs's comment */
+ if(GLOBAL(php3_rqst)->codep && GLOBAL(php3_rqst)->codep->cp_otabl)
+ ret=charset_vbprintf(GLOBAL(php3_rqst)->connection->client,
+ GLOBAL(php3_rqst)->codep->cp_otabl, format, args);
+ else
+ ret=charset_vbprintf(GLOBAL(php3_rqst)->connection->client,
+ NULL, format, args);
+#endif
} else {
printf("Printing out...\n");
ret = vfprintf(stdout, format, args);
--- config.h.in Sun Dec 21 22:47:37 1997
+++ config.h.in Sun Dec 21 23:12:20 1997
@@ -132,6 +132,9 @@
/* Define if you are compiling PHP as an Apache module */
#define APACHE 0
+/* Since we are using *Russian* Apache we need this */
+#define USE_TRANSFER_TABLES 1
+
#define HAVE_SYBASE 0
#define HAVE_SYBASE_CT 0
--- main.c Mon Dec 8 02:10:43 1997
+++ main.c Sun Dec 21 23:10:14 1997
@@ -244,7 +244,13 @@
va_start(args, format);
#if APACHE
if (GLOBAL(php3_rqst)) {
+#ifndef USE_TRANSFER_TABLES
ret = vbprintf(GLOBAL(php3_rqst)->connection->client, format, args);
+#else
+ ret=charset_vbprintf(GLOBAL(php3_rqst)->connection->client,
+ GLOBAL(php3_rqst),
+ format, args);
+#endif
} else {
printf("Printing out...\n");
ret = vfprintf(stdout, format, args);
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.