]> granicus.if.org Git - php/commitdiff
* Plenty of thread safety and Win32 work.
authorZeev Suraski <zeev@php.net>
Mon, 26 Apr 1999 14:00:49 +0000 (14:00 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 26 Apr 1999 14:00:49 +0000 (14:00 +0000)
* Changed PHP4 to compile as a DLL, both ISAPI and the the CGI run with the same DLL.
* Switched to using the DLL runtime library under Win32.  PHP will NOT work if
  compiled against the static library!
* Removed yesterday's php4libts project (with php4dllts, it's obsolete).

This *does* affect thread-unsafe Windows as well - the thread unsafe CGI is also
dependant on the thread-unsafe DLL.

32 files changed:
cgi_main.c
ext/standard/basic_functions.c
ext/standard/basic_functions.h
ext/standard/datetime.c
ext/standard/head.c
ext/standard/head.h
ext/standard/info.c
ext/standard/info.h
ext/standard/post.c
ext/standard/post.h
getopt.c
getopt.h
main.h
main/SAPI.c
main/SAPI.h
main/configuration-parser.y
main/fopen_wrappers.c
main/fopen_wrappers.h
main/main.c
main/php.h
main/php_globals.h
mod_php3.c
output.c
output.h
php4.dsp
php4.dsw
php4dll.dsp [new file with mode: 0644]
php4dllts.dsp [moved from php4libts.dsp with 75% similarity]
php4ts.dsp
php4ts.dsw
request_info.c
request_info.h

index 4d4ab20a47a91d6cb761dc8c8c625523b695e72a..d53905390cebaaf3bdf6d9d063bf7c61ac2cbc55 100644 (file)
@@ -45,6 +45,7 @@
 #include "zend_highlight.h"
 #include "zend_indent.h"
 
+
 #if USE_SAPI
 #include "serverapi/sapi.h"
 void *gLock;
@@ -57,12 +58,14 @@ struct sapi_request_info *sapi_rqst;
 #include "getopt.h"
 #endif
 
-extern char *php3_ini_path;
+PHPAPI extern char *php3_ini_path;
 
 #define PHP_MODE_STANDARD      1
 #define PHP_MODE_HIGHLIGHT     2
 #define PHP_MODE_INDENT                3
 
+PHPAPI extern char *optarg;
+PHPAPI extern int optind;
 
 
 static int zend_cgibin_ub_write(const char *str, uint str_length)
@@ -71,11 +74,40 @@ static int zend_cgibin_ub_write(const char *str, uint str_length)
 }
 
 
-sapi_functions_struct sapi_functions = {
+static sapi_functions_struct sapi_functions = {
        zend_cgibin_ub_write
 };
 
 
+static void php_cgi_usage(char *argv0)
+{
+       char *prog;
+
+       prog = strrchr(argv0, '/');
+       if (prog) {
+               prog++;
+       } else {
+               prog = "php";
+       }
+
+       php3_printf("Usage: %s [-q] [-h]"
+                               " [-s]"
+                               " [-v] [-i] [-f <file>] | "
+                               "{<file> [args...]}\n"
+                               "  -q       Quiet-mode.  Suppress HTTP Header output.\n"
+                               "  -s       Display colour syntax highlighted source.\n"
+                               "  -f<file> Parse <file>.  Implies `-q'\n"
+                               "  -v       Version number\n"
+                               "  -c<path> Look for php3.ini file in this directory\n"
+#if SUPPORT_INTERACTIVE
+                               "  -a           Run interactively\n"
+#endif
+                               "  -e           Generate extended information for debugger/profiler\n"
+                               "  -i       PHP information\n"
+                               "  -h       This help\n", prog);
+}
+
+
 int main(int argc, char *argv[])
 {
        int cgi = 0, c, i, len;
@@ -144,7 +176,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
 #endif                                                 /* FORCE_CGI_REDIRECT */
        }
 
-       if (php3_module_startup()==FAILURE) {
+       if (php_module_startup(&sapi_functions)==FAILURE) {
                return FAILURE;
        }
 #ifdef ZTS
@@ -161,8 +193,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
                        switch (c) {
                                case 'f':
                                        if (!_cgi_started){ 
-                                               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                                                       php3_module_shutdown();
+                                               if (php_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
+                                                       php_module_shutdown();
                                                        return FAILURE;
                                                }
                                        }
@@ -174,8 +206,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
                                        break;
                                case 'v':
                                        if (!_cgi_started) {
-                                               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                                                       php3_module_shutdown();
+                                               if (php_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
+                                                       php_module_shutdown();
                                                        return FAILURE;
                                                }
                                        }
@@ -184,8 +216,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
                                        break;
                                case 'i':
                                        if (!_cgi_started) {
-                                               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                                                       php3_module_shutdown();
+                                               if (php_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
+                                                       php_module_shutdown();
                                                        return FAILURE;
                                                }
                                        }
@@ -218,7 +250,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
                                case '?':
                                        php3_noheader();
                                        zend_output_startup();
-                                       _php3_usage(argv[0]);
+                                       php_cgi_usage(argv[0]);
                                        exit(1);
                                        break;
                                default:
@@ -232,8 +264,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
 #endif
 
        if (!_cgi_started) {
-               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                       php3_module_shutdown();
+               if (php_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
+                       php_module_shutdown();
                        return FAILURE;
                }
        }
@@ -286,8 +318,8 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
                        }
                }
 #endif
-               php3_request_shutdown((void *) 0);
-               php3_module_shutdown();
+               php_request_shutdown((void *) 0);
+               php_module_shutdown();
                return FAILURE;
        } else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
                /* #!php support */
@@ -304,7 +336,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
 
        switch (behavior) {
                case PHP_MODE_STANDARD:
-                       php3_parse(&file_handle CLS_CC ELS_CC PLS_CC);
+                       php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC);
                        break;
                case PHP_MODE_HIGHLIGHT: {
                                zend_syntax_highlighter_ini syntax_highlighter_ini;
@@ -326,7 +358,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
        }
 
        php3_header();                  /* Make sure headers have been sent */
-       php3_request_shutdown((void *) 0);
-       php3_module_shutdown();
+       php_request_shutdown((void *) 0);
+       php_module_shutdown();
        return SUCCESS;
 }
index d2ce463783d8cf751279bbd31c6de3f7d0ed0550..d12fcddceafdef595b707730ceee29ae268e6e10 100644 (file)
@@ -1752,7 +1752,7 @@ PHP_FUNCTION(register_shutdown_function)
 /* }}} */
 
 
-void php_get_highlight_struct(zend_syntax_highlighter_ini *syntax_highlighter_ini)
+ZEND_API void php_get_highlight_struct(zend_syntax_highlighter_ini *syntax_highlighter_ini)
 {
        syntax_highlighter_ini->highlight_comment = INI_STR("highlight_comment");
        syntax_highlighter_ini->highlight_default = INI_STR("highlight_default");
index 4a1e0bcec937f19295a197bfbea11eb88a1b1774..1620c65a794edc84b03e290c9df75826ef85ba4f 100644 (file)
@@ -102,7 +102,7 @@ extern void php3_call_user_method(INTERNAL_FUNCTION_PARAMETERS);
 PHP_FUNCTION(register_shutdown_function);
 PHP_FUNCTION(highlight_file);
 PHP_FUNCTION(highlight_string);
-void php_get_highlight_struct(zend_syntax_highlighter_ini *syntax_highlighter_ini);
+ZEND_API void php_get_highlight_struct(zend_syntax_highlighter_ini *syntax_highlighter_ini);
 
 PHP_FUNCTION(ob_start);
 PHP_FUNCTION(ob_end_flush);
index 6cf2c37cb50fd7c29a6ae84718853abf6d24ca21..a58a58c626fc36cc464d74e38f8a4acacfb35085 100644 (file)
@@ -61,11 +61,9 @@ char *day_short_names[] =
        "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
 };
 
-#ifndef HAVE_TM_ZONE
-#ifndef _TIMEZONE
+#if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE) && !(WIN32||WINNT)
 extern time_t timezone;
 #endif
-#endif
 
 static int phpday_tab[2][12] =
 {
index ab8eb483d699763cd9a34085539f3ceeaa4a8c00..365728abd6cea0ffa564fa045048e26d87dd38ba 100644 (file)
@@ -67,7 +67,8 @@ int php3_init_head(INIT_FUNC_ARGS)
        return SUCCESS;
 }
 
-void php3_noheader(void)
+
+PHPAPI void php3_noheader(void)
 {
        php3_PrintHeader = 0;
        header_called = 1;
index f71f7c90274726f143b8b030233d4da1ceeefa9d..f7b33d73fd059cdc0357ca2535fa1356ba6ec5cd 100644 (file)
@@ -58,9 +58,8 @@ extern void php3_SetCookie(INTERNAL_FUNCTION_PARAMETERS);
 
 void php4i_add_header_information(char *header_information);
 
-extern void php3_noheader(void);
-extern PHPAPI int php3_header(void);
-extern void php3_noheader(void);
-extern int php3_headers_unsent(void);
+PHPAPI void php3_noheader(void);
+PHPAPI int php3_header(void);
+int php3_headers_unsent(void);
 
 #endif
index ea90416530e2a7b2b4f76dff8d6e3f636f630ff6..d0add9d66b5dff806db7af56876e0df9032e97a8 100644 (file)
@@ -53,8 +53,6 @@
 #define PHP3_CONF_LONG(directive,value1,value2) \
        php3_printf("<tr><td bgcolor=\"" ENTRY_NAME_COLOR "\">%s</td><td bgcolor=\"" CONTENTS_COLOR "\">%ld</td><td bgcolor=\"" CONTENTS_COLOR "\">%ld</td></tr>\n",directive,value1,value2);
 
-extern char **environ;
-
 #define SECTION(name)  PUTS("<hr><h2>" name "</h2>\n")
 
 #define ENTRY_NAME_COLOR "#999999"
@@ -76,7 +74,7 @@ static int _display_module_info(php3_module_entry *module)
 }
 
 
-void _php3_info(void)
+PHPAPI void _php3_info(void)
 {
        char **env,*tmp1,*tmp2;
        char *php3_uname;
index 41e5483145e46c334a951abd4e7c7c67657bc8bf..49adc456f653483e305eaeb876e6e71e8a5e0577 100644 (file)
@@ -35,6 +35,6 @@
 extern void php3_version(INTERNAL_FUNCTION_PARAMETERS);
 extern void php3_info(INTERNAL_FUNCTION_PARAMETERS);
 
-extern void _php3_info(void);
+PHPAPI void _php3_info(void);
 
 #endif /* _INFO_H */
index 21e09d521a11acc7807979bf15055b231b8f2210..7429cfeb7b8761013ece2c7714c17c9aacdf59c5 100644 (file)
@@ -393,7 +393,7 @@ void php3_treat_data(int arg, char *str)
 }
 
 
-void php3_TreatHeaders(void)
+PHPAPI void php3_TreatHeaders(void)
 {
 #if APACHE
 #if MODULE_MAGIC_NUMBER > 19961007
index 37920a8978bf49c760525c94593bd3eb3f7ee020..7ba44c55eb68c0c52b2bc55cba108020618644ca 100644 (file)
@@ -36,8 +36,8 @@
 #define PARSE_COOKIE 2
 #define PARSE_STRING 3
 
-extern void php3_treat_data(int arg, char *str);
-extern void php3_TreatHeaders(void);
-extern void _php3_parse_gpc_data(char *, char *, pval *track_vars_array);
+void php3_treat_data(int arg, char *str);
+void _php3_parse_gpc_data(char *, char *, pval *track_vars_array);
+PHPAPI void php3_TreatHeaders(void);
 
 #endif
index 09ccdc79015622d4a6be547e78a844aa6e69fa1b..1662cf1677e48483235f76bfa8d9ad2ed3074d7e 100644 (file)
--- a/getopt.c
+++ b/getopt.c
 #define OPTERRARG (3)
 
 
-char *optarg;
-int optind = 1;
-int opterr = 1;
-int optopt;
+PHPAPI char *optarg;
+PHPAPI int optind = 1;
+static int opterr = 1;
+static int optopt;
 
 static int
 optiserr(int argc, char * const *argv, int oint, const char *optstr,
@@ -44,8 +44,7 @@ optiserr(int argc, char * const *argv, int oint, const char *optstr,
     return('?');
 }
     
-int
-getopt(int argc, char* const *argv, const char *optstr)
+PHPAPI int getopt(int argc, char* const *argv, const char *optstr)
 {
     static int optchr = 0;
     static int dash = 0; /* have already seen the - */
index 6f197aabd55a973adaab5a210a785ea9be7bf465..e84e11752750ab76b474ab127ccc5a80f799d1db 100644 (file)
--- a/getopt.h
+++ b/getopt.h
@@ -1,9 +1,9 @@
 /* Borrowed from Apache NT Port */
 #include "php.h"
 
-extern char *optarg;
-extern int optind;
+PHPAPI extern char *optarg;
+PHPAPI extern int optind;
 extern int opterr;
 extern int optopt;
 
-extern int getopt(int argc, char* const *argv, const char *optstr);
+PHPAPI int getopt(int argc, char* const *argv, const char *optstr);
diff --git a/main.h b/main.h
index d80236031e8288f72d4fc530d6f9723b2dc6f839..d450ac598624f41c9660acd403559aceb12192d1 100644 (file)
--- a/main.h
+++ b/main.h
 
 #include "zend_globals.h"
 #include "php_globals.h"
+#include "SAPI.h"
 
-int php3_request_startup(CLS_D ELS_DC PLS_DC);
-extern void php3_request_shutdown(void *dummy);
-extern void php3_request_shutdown_for_exec(void *dummy);
-extern int php3_module_startup();
-extern void php3_module_shutdown();
-extern void php3_module_shutdown_for_exec(void);
+PHPAPI int php_request_startup(CLS_D ELS_DC PLS_DC);
+PHPAPI void php_request_shutdown(void *dummy);
+PHPAPI void php_request_shutdown_for_exec(void *dummy);
+PHPAPI int php_module_startup(sapi_functions_struct *sf);
+PHPAPI void php_module_shutdown();
+PHPAPI void php_module_shutdown_for_exec(void);
+
+PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_DC);
 
 extern void php3_call_shutdown_functions(void);
 
index d04c051727e0fc32745273eb0cb1f89f10fc24eb..2456662401a9a3c275e983b1d6a9caf183ae5190 100644 (file)
@@ -1,16 +1,20 @@
 #include "SAPI.h"
+#ifdef ZTS
 #include "TSRM.h"
+#endif
 
 
 #ifdef ZTS
-int sapi_globals_id;
+SAPI_API int sapi_globals_id;
 #endif
 
+/* A true global (no need for thread safety) */
+sapi_functions_struct sapi_functions;
 
-void sapi_startup()
+void sapi_startup(sapi_functions_struct *sf)
 {
+       sapi_functions = *sf;
 #ifdef ZTS
        sapi_globals_id = ts_allocate_id(sizeof(sapi_globals_struct), NULL, NULL);
 #endif
-}
-
+}
\ No newline at end of file
index de6af839d156f1ace6afc9824b876302aae91cba..bd62eaed76e24cf416d6e51709fea65b609e60fb 100644 (file)
@@ -1,6 +1,18 @@
 #ifndef _NEW_SAPI_H
 #define _NEW_SAPI_H
 
+
+#if WIN32||WINNT
+#      ifdef SAPI_EXPORTS
+#      define SAPI_API __declspec(dllexport) 
+#      else
+#      define SAPI_API __declspec(dllimport) 
+#      endif
+#else
+#define SAPI_API
+#endif
+
+
 typedef struct {
        int (*ub_write)(const char *str, unsigned int str_length);
 } sapi_functions_struct;
@@ -13,7 +25,7 @@ typedef struct {
 } sapi_globals_struct;
 
 
-void sapi_startup();
+void sapi_startup(sapi_functions_struct *sf);
 
 #ifdef ZTS
 # define SLS_D sapi_globals_struct *sapi_globals
@@ -22,7 +34,7 @@ void sapi_startup();
 # define SLS_CC , SLS_C
 # define SG(v) (sapi_globals->v)
 # define SLS_FETCH()   sapi_globals_struct *sapi_globals = ts_resource(sapi_globals_id)
-extern int sapi_globals_id;
+SAPI_API extern int sapi_globals_id;
 #else
 # define SLS_D
 # define SLS_DC
@@ -30,7 +42,7 @@ extern int sapi_globals_id;
 # define SLS_CC
 # define SG(v) (sapi_globals.v)
 # define SLS_FETCH()
-extern ZEND_API sapi_globals_struct sapi_globals;
+extern SAPI_API sapi_globals_struct sapi_globals;
 #endif
 
 
index 19bbb0d62dc9afe2458eaabbba6071235707991c..79153c10eecda556f704c62ac966a60309930cde 100644 (file)
@@ -60,7 +60,7 @@
 static HashTable configuration_hash;
 #ifndef THREAD_SAFE
 extern HashTable browser_hash;
-extern char *php3_ini_path;
+PHPAPI extern char *php3_ini_path;
 #endif
 static HashTable *active__php3_hash_table;
 static pval *current_section;
index 6128750bf43cfe209ab625e6e8b102de970186b9..8b2814bf88956f77b5ce27e01cddee424228d89f 100644 (file)
@@ -198,7 +198,7 @@ PHPAPI FILE *php3_fopen_wrapper(char *path, char *mode, int options, int *issock
 
 #if CGI_BINARY || FHTTPD || USE_SAPI
 
-FILE *php3_fopen_for_parser(void)
+PHPAPI FILE *php3_fopen_for_parser(void)
 {
        FILE *fp;
        struct stat st;
index 0b3834a1e31db331c9dc54793b7fc820ba5b4ebf..c1e1420b3c6cac2e01f2e83cda754cc105affb89 100644 (file)
@@ -69,7 +69,7 @@ extern int wsa_fp; /* a list for open sockets */
 
 extern PHPAPI FILE *php3_fopen_wrapper(char *filename, char *mode, int options, int *issock, int *socketd);
 
-extern FILE *php3_fopen_for_parser(void);
+PHPAPI FILE *php3_fopen_for_parser(void);
 
 extern PHPAPI int _php3_check_open_basedir(char *path);
 
index 236209a41c22c3f95fa1f7e60c63e96ad764579c..0df2c4049e3e93740f80e8f1016ac356503e8749 100644 (file)
@@ -93,7 +93,7 @@ struct sapi_request_info *sapi_rqst;
 #ifndef ZTS
 php_core_globals core_globals;
 #else
-int core_globals_id;
+PHPAPI int core_globals_id;
 #endif
 
 void _php3_build_argv(char * ELS_DC);
@@ -109,7 +109,7 @@ void *gLock;                                        /*mutex variable */
 
 /* True globals (no need for thread safety) */
 HashTable configuration_hash;
-char *php3_ini_path = NULL;
+PHPAPI char *php3_ini_path = NULL;
 #ifdef ZTS
 php_core_globals *main_core_globals=NULL;
 #endif
@@ -606,36 +606,7 @@ static void php_message_handler_for_zend(long message, void *data)
 
 
 
-#ifndef NEW_SAPI
-#      if APACHE
-static int zend_apache_ub_write(const char *str, uint str_length)
-{
-       if (php3_rqst) {
-               return rwrite(str, str_length, php3_rqst);
-       } else {
-               return fwrite(str, 1, str_length, stdout);
-       }
-}
-
-sapi_functions_struct sapi_functions = {
-       zend_apache_ub_write
-};
-
-#      elif CGI_BINARY
-
-static int zend_cgibin_ub_write(const char *str, uint str_length)
-{
-       return fwrite(str, 1, str_length, stdout);
-}
-
-sapi_functions_struct sapi_functions = {
-       zend_cgibin_ub_write
-};
-#      endif
-#endif
-
-
-int php3_request_startup(CLS_D ELS_DC PLS_DC)
+int php_request_startup(CLS_D ELS_DC PLS_DC)
 {
        zend_output_startup();
 
@@ -651,7 +622,7 @@ int php3_request_startup(CLS_D ELS_DC PLS_DC)
         * memory.  
         */
        block_alarms();
-       register_cleanup(php3_rqst->pool, NULL, php3_request_shutdown, php3_request_shutdown_for_exec);
+       register_cleanup(php3_rqst->pool, NULL, php_request_shutdown, php_request_shutdown_for_exec);
        unblock_alarms();
 #endif
 
@@ -675,7 +646,7 @@ int php3_request_startup(CLS_D ELS_DC PLS_DC)
 }
 
 
-void php3_request_shutdown_for_exec(void *dummy)
+void php_request_shutdown_for_exec(void *dummy)
 {
        /* used to close fd's in the 3..255 range here, but it's problematic
         */
@@ -689,7 +660,7 @@ int return_one(void *p)
 }
 
 
-void php3_request_shutdown(void *dummy)
+void php_request_shutdown(void *dummy)
 {
 #if FHTTPD
        char tmpline[128];
@@ -791,7 +762,7 @@ static core_globals_ctor(php_core_globals *core_globals)
 #endif
 
 
-int php3_module_startup()
+int php_module_startup(sapi_functions_struct *sf)
 {
        zend_utility_functions zuf;
        zend_utility_values zuv;
@@ -829,9 +800,7 @@ int php3_module_startup()
        main_core_globals = core_globals;
 #endif
 
-#ifdef NEW_SAPI
-       sapi_startup();
-#endif
+       sapi_startup(sf);
 
 #if HAVE_SETLOCALE
        setlocale(LC_CTYPE, "");
@@ -870,12 +839,12 @@ int php3_module_startup()
 
 
 
-void php3_module_shutdown_for_exec(void)
+void php_module_shutdown_for_exec(void)
 {
        /* used to close fd's in the range 3.255 here, but it's problematic */
 }
 
-void php3_module_shutdown()
+void php_module_shutdown()
 {
        int module_number=0;    /* for UNREGISTER_INI_ENTRIES() */
        CLS_FETCH();
@@ -1144,7 +1113,7 @@ void _php3_build_argv(char *s ELS_DC)
 
 #include "logos.h"
 
-void php3_parse(zend_file_handle *primary_file CLS_DC ELS_DC PLS_DC)
+PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_DC)
 {
        zend_file_handle *prepend_file_p, *append_file_p;
        zend_file_handle prepend_file, append_file;
@@ -1199,304 +1168,7 @@ void php3_parse(zend_file_handle *primary_file CLS_DC ELS_DC PLS_DC)
 
 
 
-#if CGI_BINARY
-
-void _php3_usage(char *argv0)
-{
-       char *prog;
-
-       prog = strrchr(argv0, '/');
-       if (prog) {
-               prog++;
-       } else {
-               prog = "php";
-       }
-
-       php3_printf("Usage: %s [-q] [-h]"
-                               " [-s]"
-                               " [-v] [-i] [-f <file>] | "
-                               "{<file> [args...]}\n"
-                               "  -q       Quiet-mode.  Suppress HTTP Header output.\n"
-                               "  -s       Display colour syntax highlighted source.\n"
-                               "  -f<file> Parse <file>.  Implies `-q'\n"
-                               "  -v       Version number\n"
-                               "  -c<path> Look for php3.ini file in this directory\n"
-#if SUPPORT_INTERACTIVE
-                               "  -a           Run interactively\n"
-#endif
-                               "  -e           Generate extended information for debugger/profiler\n"
-                               "  -i       PHP information\n"
-                               "  -h       This help\n", prog);
-}
-
 /* some systems are missing these from their header files */
-extern char *optarg;
-extern int optind;
-
-#if THREAD_SAFE
-extern flex_globals *yy_init_tls(void);
-extern void yy_destroy_tls(void);
-#endif
-
-#ifndef ZTS
-int main(int argc, char *argv[])
-{
-       int cgi = 0, c, i, len;
-       zend_file_handle file_handle;
-       char *s;
-/* temporary locals */
-       char *_cgi_filename=NULL;
-       int _cgi_started=0;
-       int behavior=PHP_MODE_STANDARD;
-#if SUPPORT_INTERACTIVE
-       int interactive=0;
-#endif
-/* end of temporary locals */
-#ifdef ZTS
-       zend_compiler_globals *compiler_globals;
-       zend_executor_globals *executor_globals;
-       php_core_globals *core_globals;
-#endif
-
-
-#ifndef ZTS
-       if (setjmp(EG(bailout))!=0) {
-               return -1;
-       }
-#endif
-               
-#if WIN32|WINNT
-       _fmode = _O_BINARY;                     /*sets default for file streams to binary */
-       setmode(_fileno(stdin), O_BINARY);              /* make the stdio mode be binary */
-       setmode(_fileno(stdout), O_BINARY);             /* make the stdio mode be binary */
-       setmode(_fileno(stderr), O_BINARY);             /* make the stdio mode be binary */
-#endif
-
-
-       /* Make sure we detect we are a cgi - a bit redundancy here,
-          but the default case is that we have to check only the first one. */
-       if (getenv("SERVER_SOFTWARE")
-               || getenv("SERVER_NAME")
-               || getenv("GATEWAY_INTERFACE")
-               || getenv("REQUEST_METHOD")) {
-               cgi = 1;
-               if (argc > 1)
-                       request_info.php_argv0 = strdup(argv[1]);
-               else request_info.php_argv0 = NULL;
-#if FORCE_CGI_REDIRECT
-               if (!getenv("REDIRECT_STATUS")) {
-                       PUTS("<b>Security Alert!</b>  PHP CGI cannot be accessed directly.\n\
-\n\
-<P>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This\n\
-means that a page will only be served up if the REDIRECT_STATUS CGI variable is\n\
-set.  This variable is set, for example, by Apache's Action directive redirect.\n\
-<P>You may disable this restriction by recompiling the PHP binary with the\n\
---disable-force-cgi-redirect switch.  If you do this and you have your PHP CGI\n\
-binary accessible somewhere in your web tree, people will be able to circumvent\n\
-.htaccess security by loading files through the PHP parser.  A good way around\n\
-this is to define doc_root in your php3.ini file to something other than your\n\
-top-level DOCUMENT_ROOT.  This way you can separate the part of your web space\n\n\
-which uses PHP from the normal part using .htaccess security.  If you do not have\n\
-any .htaccess restrictions anywhere on your site you can leave doc_root undefined.\n\
-\n");
-
-                       /* remove that detailed explanation some time */
-
-                       return FAILURE;
-               }
-#endif                                                 /* FORCE_CGI_REDIRECT */
-       }
-
-       if (php3_module_startup()==FAILURE) {
-               return FAILURE;
-       }
-#ifdef ZTS
-       compiler_globals = ts_resource(compiler_globals_id);
-       executor_globals = ts_resource(executor_globals_id);
-       core_globals = ts_resource(core_globals_id);
-#endif
-
-       CG(extended_info) = 0;
-
-       if (!cgi) {                                     /* never execute the arguments if you are a CGI */
-               request_info.php_argv0 = NULL;
-               while ((c = getopt(argc, argv, "c:qvisnaeh?vf:")) != -1) {
-                       switch (c) {
-                               case 'f':
-                                       if (!_cgi_started){ 
-                                               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                                                       php3_module_shutdown();
-                                                       return FAILURE;
-                                               }
-                                       }
-                                       _cgi_started=1;
-                                       _cgi_filename = estrdup(optarg);
-                                       /* break missing intentionally */
-                               case 'q':
-                                       php3_noheader();
-                                       break;
-                               case 'v':
-                                       if (!_cgi_started) {
-                                               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                                                       php3_module_shutdown();
-                                                       return FAILURE;
-                                               }
-                                       }
-                                       php3_printf("%s\n", PHP_VERSION);
-                                       exit(1);
-                                       break;
-                               case 'i':
-                                       if (!_cgi_started) {
-                                               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                                                       php3_module_shutdown();
-                                                       return FAILURE;
-                                               }
-                                       }
-                                       _cgi_started=1;
-                                       php3_TreatHeaders();
-                                       _php3_info();
-                                       exit(1);
-                                       break;
-                               case 's':
-                                       behavior=PHP_MODE_HIGHLIGHT;
-                                       break;
-                               case 'n':
-                                       behavior=PHP_MODE_INDENT;
-                                       break;
-                               case 'c':
-                                       php3_ini_path = strdup(optarg);         /* intentional leak */
-                                       break;
-                               case 'a':
-#if SUPPORT_INTERACTIVE
-                                       printf("Interactive mode enabled\n\n");
-                                       interactive=1;
-#else
-                                       printf("Interactive mode not supported!\n\n");
-#endif
-                                       break;
-                               case 'e':
-                                       CG(extended_info) = 1;
-                                       break;
-                               case 'h':
-                               case '?':
-                                       php3_noheader();
-                                       zend_output_startup();
-                                       _php3_usage(argv[0]);
-                                       exit(1);
-                                       break;
-                               default:
-                                       break;
-                       }
-               }
-       }                                                       /* not cgi */
-
-#if SUPPORT_INTERACTIVE
-       EG(interactive) = interactive;
-#endif
-
-       if (!_cgi_started) {
-               if (php3_request_startup(CLS_C ELS_CC PLS_CC)==FAILURE) {
-                       php3_module_shutdown();
-                       return FAILURE;
-               }
-       }
-       file_handle.filename = "-";
-       file_handle.type = ZEND_HANDLE_FP;
-       file_handle.handle.fp = stdin;
-       if (_cgi_filename) {
-               request_info.filename = _cgi_filename;
-       }
-
-       php3_TreatHeaders();
-
-       if (!cgi) {
-               if (!request_info.query_string) {
-                       for (i = optind, len = 0; i < argc; i++)
-                               len += strlen(argv[i]) + 1;
-
-                       s = malloc(len + 1);    /* leak - but only for command line version, so ok */
-                       *s = '\0';                      /* we are pretending it came from the environment  */
-                       for (i = optind, len = 0; i < argc; i++) {
-                               strcat(s, argv[i]);
-                               if (i < (argc - 1))
-                                       strcat(s, "+");
-                       }
-                       request_info.query_string = s;
-               }
-               if (!request_info.filename && argc > optind)
-                       request_info.filename = argv[optind];
-       }
-       /* If for some reason the CGI interface is not setting the
-          PATH_TRANSLATED correctly, request_info.filename is NULL.
-          We still call php3_fopen_for_parser, because if you set doc_root
-          or user_dir configuration directives, PATH_INFO is used to construct
-          the filename as a side effect of php3_fopen_for_parser.
-        */
-       if (cgi || request_info.filename) {
-               file_handle.filename = request_info.filename;
-               file_handle.handle.fp = php3_fopen_for_parser();
-       }
-
-       if (cgi && !file_handle.handle.fp) {
-               PUTS("No input file specified.\n");
-#if 0  /* this is here for debuging under windows */
-               if (argc) {
-                       i = 0;
-                       php3_printf("\nargc %d\n",argc); 
-                       while (i <= argc) {
-                               php3_printf("%s\n",argv[i]); 
-                               i++;
-                       }
-               }
-#endif
-               php3_request_shutdown((void *) 0);
-               php3_module_shutdown();
-               return FAILURE;
-       } else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
-               /* #!php support */
-               c = fgetc(file_handle.handle.fp);
-               if (c == '#') {
-                       while (c != 10 && c != 13) {
-                               c = fgetc(file_handle.handle.fp);       /* skip to end of line */
-                       }
-                       CG(zend_lineno)++;
-               } else {
-                       rewind(file_handle.handle.fp);
-               }
-       }
-
-       switch (behavior) {
-               case PHP_MODE_STANDARD:
-                       php3_parse(&file_handle CLS_CC ELS_CC PLS_CC);
-                       break;
-               case PHP_MODE_HIGHLIGHT: {
-                               zend_syntax_highlighter_ini syntax_highlighter_ini;
-
-                               if (open_file_for_scanning(&file_handle CLS_CC)==SUCCESS) {
-                                       php_get_highlight_struct(&syntax_highlighter_ini);
-                                       zend_highlight(&syntax_highlighter_ini);
-                                       fclose(file_handle.handle.fp);
-                               }
-                               return 0;
-                       }
-                       break;
-               case PHP_MODE_INDENT:
-                       open_file_for_scanning(&file_handle CLS_CC);
-                       zend_indent();
-                       fclose(file_handle.handle.fp);
-                       return 0;
-                       break;
-       }
-
-       php3_header();                  /* Make sure headers have been sent */
-       php3_request_shutdown((void *) 0);
-       php3_module_shutdown();
-       return SUCCESS;
-}
-#endif                                                 /* CGI_BINARY */
-
-#endif /* ZTS */
-
 
 #if APACHE
 PHPAPI int apache_php3_module_main(request_rec * r, int fd, int display_source_mode)
@@ -1513,14 +1185,14 @@ PHPAPI int apache_php3_module_main(request_rec * r, int fd, int display_source_m
 
        php3_rqst = r;
 
-       if (php3_request_startup(CLS_C ELS_CC PLS_CC) == FAILURE) {
+       if (php_request_startup(CLS_C ELS_CC PLS_CC) == FAILURE) {
                return FAILURE;
        }
        php3_TreatHeaders();
        file_handle.type = ZEND_HANDLE_FD;
        file_handle.handle.fd = fd;
        file_handle.filename = request_info.filename;
-       (void) php3_parse(&file_handle CLS_CC ELS_CC);
+       (void) php_execute_script(&file_handle CLS_CC ELS_CC);
        
        php3_header();                  /* Make sure headers have been sent */
        zend_end_ob_buffering(1);
@@ -1528,6 +1200,15 @@ PHPAPI int apache_php3_module_main(request_rec * r, int fd, int display_source_m
 }
 #endif                                                 /* APACHE */
 
+
+#if WIN32||WINNT
+/* just so that this symbol gets exported... */
+PHPAPI void dummy_indent()
+{
+       zend_indent();
+}
+#endif
+
 /*
  * Local variables:
  * tab-width: 4
index d66976e58b57b55bcdf829b3c64102f762b6f762..ab4a159069d79b59c2c881c156646eed1bd8e478 100644 (file)
@@ -69,15 +69,15 @@ extern unsigned char second_arg_allow_ref[];
 #if WIN32
 #include "config.w32.h"
 #include "win95nt.h"
-# if defined(COMPILE_DL)
-# define PHPAPI __declspec(dllimport) 
-# else
-# define PHPAPI __declspec(dllexport) 
-# endif
+#      ifdef PHP_EXPORTS
+#      define PHPAPI __declspec(dllexport) 
+#      else
+#      define PHPAPI __declspec(dllimport) 
+#      endif
 #else
-# include "config.h"
-# define PHPAPI
-# define THREAD_LS
+#include "config.h"
+#define PHPAPI
+#define THREAD_LS
 #endif
 
 
@@ -314,12 +314,11 @@ extern PHPAPI int php3_fhttpd_write(char *a,int n);
 
 
 /* global variables */
-#ifndef THREAD_SAFE
 extern pval *data;
-#if (!PHP_ISAPI)
+#if !(WIN32||WINNT)
 extern char **environ;
 #endif
-#endif
+
 extern PHPAPI int le_index_ptr;  /* list entry type for index pointers */
 
 extern void phperror(char *error);
index 969d7cab667811a8f678c95450f802dbb7755f84..ce5405c930e4e318092602f22e4dce45602bc4c6 100644 (file)
@@ -12,7 +12,7 @@ typedef struct _php_core_globals php_core_globals;
 # define PLS_CC , PLS_C
 # define PG(v) (core_globals->v)
 # define PLS_FETCH()   php_core_globals *core_globals = ts_resource(core_globals_id)
-extern int core_globals_id;
+PHPAPI extern int core_globals_id;
 #else
 # define PLS_D
 # define PLS_DC
index 9f8d56dc3320026c0f3ac6216f575286b7148b66..ba0d6b6db51aa731c23706d0cde9dc2d39f5f3ed 100644 (file)
@@ -87,68 +87,10 @@ int saved_umask;
 php_apache_info_struct php_apache_info;                /* active config */
 
 int apache_php3_module_main(request_rec * r, int fd, int display_source_mode);
-extern int php3_module_startup();
-extern void php3_module_shutdown();
-extern void php3_module_shutdown_for_exec();
+int php_module_startup(sapi_functions_struct *sf);
+void php_module_shutdown();
+void php_module_shutdown_for_exec();
 
-extern int tls_create(void);
-extern int tls_destroy(void);
-extern int tls_startup(void);
-extern int tls_shutdown(void);
-
-#if WIN32|WINNT
-
-/* 
-       we will want to change this to the apache api
-       process and thread entry and exit functions
-*/
-BOOL WINAPI DllMain(HANDLE hModule, 
-                      DWORD  ul_reason_for_call, 
-                      LPVOID lpReserved)
-{
-    switch( ul_reason_for_call ) {
-    case DLL_PROCESS_ATTACH:
-               /* 
-                  I should be loading ini vars here 
-                  and doing whatever true global inits
-                  need to be done
-               */
-               if (!tls_startup())
-                       return 0;
-               if (!tls_create())
-                       return 0;
-
-               break;
-    case DLL_THREAD_ATTACH:
-               if (!tls_create())
-                       return 0;
-               /*              if (php3_module_startup()==FAILURE) {
-                       return FAILURE;
-               }
-*/             break;
-    case DLL_THREAD_DETACH:
-               if (!tls_destroy())
-                       return 0;
-/*             if (initialized) {
-                       php3_module_shutdown();
-                       return SUCCESS;
-               } else {
-                       return FAILURE;
-               }
-*/             break;
-    case DLL_PROCESS_DETACH:
-               /*
-                   close down anything down in process_attach 
-               */
-               if (!tls_destroy())
-                       return 0;
-               if (!tls_shutdown())
-                       return 0;
-               break;
-    }
-    return 1;
-}
-#endif
 
 void php3_save_umask()
 {
@@ -156,11 +98,28 @@ void php3_save_umask()
        umask(saved_umask);
 }
 
+
+static int zend_apache_ub_write(const char *str, uint str_length)
+{
+       if (php3_rqst) {
+               return rwrite(str, str_length, php3_rqst);
+       } else {
+               return fwrite(str, 1, str_length, stdout);
+       }
+}
+
+
+sapi_functions_struct sapi_functions = {
+       zend_apache_ub_write
+};
+
+
 void php3_restore_umask()
 {
        umask(saved_umask);
 }
 
+
 int send_php3(request_rec *r, int display_source_mode, char *filename)
 {
        int fd, retval;
@@ -230,16 +189,19 @@ int send_php3(request_rec *r, int display_source_mode, char *filename)
        return OK;
 }
 
+
 int send_parsed_php3(request_rec * r)
 {
        return send_php3(r, 0, NULL);
 }
 
+
 int send_parsed_php3_source(request_rec * r)
 {
        return send_php3(r, 0, NULL);
 }
 
+
 /*
  * Create the per-directory config structure with defaults
  */
@@ -299,10 +261,11 @@ int php3_xbithack_handler(request_rec * r)
        return send_parsed_php3(r);
 }
 
+
 void php3_init_handler(server_rec *s, pool *p)
 {
-       register_cleanup(p, NULL, php3_module_shutdown, php3_module_shutdown_for_exec);
-       php3_module_startup();
+       register_cleanup(p, NULL, php_module_shutdown, php_module_shutdown_for_exec);
+       php_module_startup(&sapi_functions);
 #if MODULE_MAGIC_NUMBER >= 19980527
        ap_add_version_component("PHP/" PHP_VERSION);
 #endif
index 886ba87a1756c3c2c6c5c8dc07dd6841d18ef1a3..e1bf28b40949a93d842b52487bbd7246048c59ad 100644 (file)
--- a/output.c
+++ b/output.c
@@ -43,7 +43,7 @@ static int header_request;
  * Main
  */
 
-void zend_output_startup()
+PHPAPI void zend_output_startup()
 {
        ob_buffer = NULL;
        zend_body_write = zend_ub_body_write;
index dabb9425c5dd2e6182a0b962fa558c548f92494d..ae6602351bb8df3bd40bc098c3829b60434c1254 100644 (file)
--- a/output.h
+++ b/output.h
@@ -3,7 +3,7 @@
 
 #include "php.h"
 
-void zend_output_startup();
+PHPAPI void zend_output_startup();
 
 /* exported output functions */
 int (*zend_body_write)(const char *str, uint str_length);              /* string output */
index 8cbb2329a01ec18cecd0473b08f3fbc5459f80ce..19ac7a720a80648711616e3f33a49a848851cdbb 100644 (file)
--- a/php4.dsp
+++ b/php4.dsp
@@ -42,7 +42,7 @@ RSC=rc.exe
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "include" /I "..\libzend" /I "." /I "regex\\" /I "d:\src\bind\include" /D "NDEBUG" /D "MSVC5" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "COMPILE_LIBZEND" /Fr /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\libzend" /I "." /I "regex\\" /I "..\bindlib" /D "NDEBUG" /D "MSVC5" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /Fr /FD /c
 # SUBTRACT CPP /YX /Yc /Yu
 # ADD BASE RSC /l 0x409 /d "NDEBUG"
 # ADD RSC /l 0x409 /d "NDEBUG"
@@ -51,7 +51,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 lib44bsd95.lib resolv.lib winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /version:3.0 /subsystem:console /machine:I386 /out:"Release\php.exe" /libpath:"lib" /libpath:"\src\lib" /libpath:"d:\src\bind\lib" /libpath:"..\libzend\Release"
+# ADD LINK32 php4nts.lib winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /version:3.0 /subsystem:console /machine:I386 /nodefaultlib:"libc.lib" /out:"Release\php.exe" /libpath:"Release"
 
 !ELSEIF  "$(CFG)" == "php4 - Win32 Debug"
 
@@ -67,7 +67,7 @@ LINK32=link.exe
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "include" /I "..\libzend" /I "." /I "regex\\" /I "d:\src\bind\include" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "COMPILE_LIBZEND" /FR /FD /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\libzend" /I "." /I "regex\\" /I "..\bindlib" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /FR /FD /c
 # SUBTRACT CPP /YX
 # ADD BASE RSC /l 0x409 /d "_DEBUG"
 # ADD RSC /l 0x409 /i "c:\include" /d "_DEBUG"
@@ -76,7 +76,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 lib44bsd95.lib resolv.lib winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libzend.lib /nologo /version:3.0 /subsystem:console /debug /machine:I386 /nodefaultlib:"libcmt" /nodefaultlib:"libcd" /out:"Debug\php.exe" /pdbtype:sept /libpath:"lib" /libpath:"\src\lib" /libpath:"d:\src\bind\lib" /libpath:"..\libzend\Debug"
+# ADD LINK32 winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4nts.lib /nologo /version:3.0 /subsystem:console /debug /machine:I386 /nodefaultlib:"libcd" /nodefaultlib:"libcmt" /out:"Debug\php.exe" /pdbtype:sept /libpath:"Debug"
 # SUBTRACT LINK32 /pdb:none
 
 !ENDIF 
@@ -85,605 +85,17 @@ LINK32=link.exe
 
 # Name "php4 - Win32 Release"
 # Name "php4 - Win32 Debug"
-# Begin Group "Core"
-
-# PROP Default_Filter ""
 # Begin Group "Source Files"
 
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=".\configuration-parser.c"
-# End Source File
-# Begin Source File
-
-SOURCE=".\configuration-scanner.c"
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\cyr_convert.c
-# End Source File
-# Begin Source File
-
-SOURCE=".\fopen-wrappers.c"
-# End Source File
-# Begin Source File
-
-SOURCE=.\getopt.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\internal_functions.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\main.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\output.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\php3_realpath.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\php_ini.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\quot_print.c
-# End Source File
+# PROP Default_Filter ".c"
 # Begin Source File
 
-SOURCE=.\request_info.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\safe_mode.c
+SOURCE=.\cgi_main.c
 # End Source File
 # End Group
 # Begin Group "Header Files"
 
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\config.w32.h
-# End Source File
-# Begin Source File
-
-SOURCE=".\configuration-parser.h"
-# End Source File
-# Begin Source File
-
-SOURCE=".\configuration-parser.tab.h"
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\cyr_convert.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\getopt.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\internal_functions_registry.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\logos.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\main.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\output.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\php.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\php3_compat.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\php3_realpath.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\php_globals.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\php_ini.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\quot_print.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\request_info.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\safe_mode.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win95nt.h
-# End Source File
-# End Group
-# End Group
-# Begin Group "Function Modules"
-
-# PROP Default_Filter ""
-# Begin Group "Source Files No. 1"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\ext\apache\apache.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\base64.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\basic_functions.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\bcmath\bcmath.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\browscap.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\datetime.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\dir.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\dl.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\dns.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\exec.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\file.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\filestat.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\flock_compat.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\formatted_print.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\fsock.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\head.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\html.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\image.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\info.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\iptc.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\link.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\mail.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\math.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\md5.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\microtime.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\mime.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\bcmath\number.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\odbc\odbc.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\pack.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\pageinfo.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\post.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\rand.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\reg.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\soundex.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\string.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\syslog.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\type.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\uniqid.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\url.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\var.c
-# End Source File
-# End Group
-# Begin Group "Header Files No. 1"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\ext\standard\base64.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\basic_functions.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\datetime.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\dl.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\dns.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\exec.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\file.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\flock_compat.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\fsock.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\global.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\head.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\html.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\md5.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\mime.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\number.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\pageinfo.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\php3_bcmath.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\php3_dir.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\php3_filestat.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\php3_ldap.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\php3_mail.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\odbc\php3_odbc.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\php3_string.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\php3_string.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\php3_syslog.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\phpdir.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\phpmath.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\functions\post.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\reg.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\type.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\uniqid.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ext\standard\url.h
-# End Source File
-# End Group
-# Begin Group "Regular Expressions"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\regex\regcomp.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\regex\regerror.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\regex\regexec.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\regex\regfree.c
-# End Source File
-# End Group
-# End Group
-# Begin Group "Win32"
-
-# PROP Default_Filter ""
-# Begin Group "Source Files No. 2"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\ext\com\COM.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\pwd.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\readdir.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\registry.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\sendmail.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\time.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\wfile.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\dl\snmp\winsnmp.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\winutil.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\wsyslog.c
-# End Source File
-# End Group
-# Begin Group "Header Files No. 2"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\win32\grp.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\param.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\php_registry.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\pwd.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\readdir.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\sendmail.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\syslog.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\time.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\unistd.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\wfile.h
-# End Source File
-# End Group
-# End Group
-# Begin Group "Parsers"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=".\configuration-parser.y"
-
-!IF  "$(CFG)" == "php4 - Win32 Release"
-
-!ELSEIF  "$(CFG)" == "php4 - Win32 Debug"
-
-# Begin Custom Build
-InputDir=.
-InputPath=".\configuration-parser.y"
-
-BuildCmds= \
-       bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y
-
-"$(InputDir)\configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-   $(BuildCmds)
-
-"$(InputDir)\configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-   $(BuildCmds)
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# End Group
-# Begin Group "Scanners"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=".\configuration-scanner.l"
-
-!IF  "$(CFG)" == "php4 - Win32 Release"
-
-!ELSEIF  "$(CFG)" == "php4 - Win32 Debug"
-
-# Begin Custom Build
-InputPath=".\configuration-scanner.l"
-
-"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
+# PROP Default_Filter ".h"
 # End Group
 # End Target
 # End Project
index f423e89b4b1afef8d1f3108bb18ad5705b0e3b79..c14719887c39cbdfd03170d555aa6b6bae57bf4c 100644 (file)
--- a/php4.dsw
+++ b/php4.dsw
@@ -21,6 +21,21 @@ Package=<5>
 {{{
 }}}
 
+Package=<4>
+{{{
+    Begin Project Dependency
+    Project_Dep_Name php4dll
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "php4dll"=.\php4dll.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
 Package=<4>
 {{{
     Begin Project Dependency
diff --git a/php4dll.dsp b/php4dll.dsp
new file mode 100644 (file)
index 0000000..6eb327d
--- /dev/null
@@ -0,0 +1,667 @@
+# Microsoft Developer Studio Project File - Name="php4dll" - Package Owner=<4>\r
+# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
+# ** DO NOT EDIT **\r
+\r
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102\r
+\r
+CFG=php4dll - Win32 Debug\r
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
+!MESSAGE use the Export Makefile command and run\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "php4dll.mak".\r
+!MESSAGE \r
+!MESSAGE You can specify a configuration when running NMAKE\r
+!MESSAGE by defining the macro CFG on the command line. For example:\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "php4dll.mak" CFG="php4dll - Win32 Debug"\r
+!MESSAGE \r
+!MESSAGE Possible choices for configuration are:\r
+!MESSAGE \r
+!MESSAGE "php4dll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")\r
+!MESSAGE "php4dll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")\r
+!MESSAGE \r
+\r
+# Begin Project\r
+# PROP AllowPerConfigDependencies 0\r
+# PROP Scc_ProjName ""\r
+# PROP Scc_LocalPath ""\r
+CPP=cl.exe\r
+MTL=midl.exe\r
+RSC=rc.exe\r
+\r
+!IF  "$(CFG)" == "php4dll - Win32 Debug"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 1\r
+# PROP BASE Output_Dir "Debug"\r
+# PROP BASE Intermediate_Dir "Debug"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 1\r
+# PROP Output_Dir "Debug"\r
+# PROP Intermediate_Dir "Debug"\r
+# PROP Ignore_Export_Lib 0\r
+# PROP Target_Dir ""\r
+# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /YX /FD /GZ /c\r
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "include" /I "..\libzend" /I "." /I "regex\\" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /D "MSVC5" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "WIN32" /D "_MBCS" /FR /YX /FD /GZ /c\r
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
+# ADD BASE RSC /l 0x40d /d "_DEBUG"\r
+# ADD RSC /l 0x40d /d "_DEBUG"\r
+BSC32=bscmake.exe\r
+# ADD BASE BSC32 /nologo\r
+# ADD BSC32 /nologo\r
+LINK32=link.exe\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib wsock32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libzend.lib resolv.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"libcmt" /nodefaultlib:"libc" /nodefaultlib:"libcmtd" /out:"Debug/php4nts.dll" /pdbtype:sept /libpath:"..\TSRM\Debug" /libpath:"..\libzend\Debug" /libpath:"..\bindlib\Debug"\r
+\r
+!ELSEIF  "$(CFG)" == "php4dll - Win32 Release"\r
+\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 0\r
+# PROP BASE Output_Dir "Release"\r
+# PROP BASE Intermediate_Dir "Release"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 0\r
+# PROP Output_Dir "Release"\r
+# PROP Intermediate_Dir "Release"\r
+# PROP Ignore_Export_Lib 0\r
+# PROP Target_Dir ""\r
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /YX /FD /c\r
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /I "..\libzend" /I "." /I "regex\\" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /D "MSVC5" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "WIN32" /D "_MBCS" /YX /FD /c\r
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
+# ADD BASE RSC /l 0x40d /d "NDEBUG"\r
+# ADD RSC /l 0x40d /d "NDEBUG"\r
+BSC32=bscmake.exe\r
+# ADD BASE BSC32 /nologo\r
+# ADD BSC32 /nologo\r
+LINK32=link.exe\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib wsock32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libzend.lib resolv.lib /nologo /dll /machine:I386 /nodefaultlib:"libc.lib" /out:"Release/php4nts.dll" /libpath:"..\TSRM\Release" /libpath:"..\libzend\Release" /libpath:"..\bindlib\Release"\r
+\r
+!ENDIF \r
+\r
+# Begin Target\r
+\r
+# Name "php4dll - Win32 Debug"\r
+# Name "php4dll - Win32 Release"\r
+# Begin Group "Core"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Group "Source Files"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=".\configuration-parser.c"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=".\configuration-scanner.c"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\cyr_convert.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=".\fopen-wrappers.c"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\getopt.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\internal_functions.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\main.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\output.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\php3_realpath.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\php_ini.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\quot_print.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\request_info.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\safe_mode.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\SAPI.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "Header Files"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=.\config.w32.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=".\configuration-parser.h"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=".\configuration-parser.tab.h"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\cyr_convert.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\getopt.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\internal_functions_registry.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\logos.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\main.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\output.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\php.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\php3_compat.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\php3_realpath.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\php_globals.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\php_ini.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\quot_print.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\request_info.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\safe_mode.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\SAPI.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win95nt.h\r
+# End Source File\r
+# End Group\r
+# End Group\r
+# Begin Group "Function Modules"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Group "Source Files No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\apache\apache.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\base64.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\basic_functions.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\bcmath\bcmath.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\browscap.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\datetime.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\dir.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\dl.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\dns.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\exec.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\file.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\filestat.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\flock_compat.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\formatted_print.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\fsock.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\head.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\html.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\image.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\info.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\iptc.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\link.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\mail.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\math.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\md5.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\microtime.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\mime.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\bcmath\number.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\odbc\odbc.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\pack.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\pageinfo.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\post.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\rand.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\reg.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\soundex.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\string.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\syslog.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\type.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\uniqid.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\url.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\var.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "Header Files No. 1"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\base64.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\basic_functions.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\datetime.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\dl.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\dns.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\exec.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\file.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\flock_compat.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\fsock.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\global.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\head.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\html.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\md5.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\mime.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\bcmath\number.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\pageinfo.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\bcmath\php3_bcmath.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\php3_dir.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\php3_filestat.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\php3_ldap.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\php3_mail.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\odbc\php3_odbc.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\php3_string.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\php3_string.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\php3_syslog.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\phpdir.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\functions\phpmath.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\post.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\reg.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\type.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\uniqid.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\standard\url.h\r
+# End Source File\r
+# End Group\r
+# Begin Group "Regular Expressions"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=.\regex\regcomp.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\regex\regerror.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\regex\regexec.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\regex\regfree.c\r
+# End Source File\r
+# End Group\r
+# End Group\r
+# Begin Group "Win32"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Group "Source Files No. 2"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\com\COM.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\pwd.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\readdir.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\registry.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\sendmail.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\time.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\wfile.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\dl\snmp\winsnmp.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\winutil.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\wsyslog.c\r
+# End Source File\r
+# End Group\r
+# Begin Group "Header Files No. 2"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\grp.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\param.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\ext\com\php3_COM.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\php_registry.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\pwd.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\readdir.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\sendmail.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\syslog.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\time.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\unistd.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\win32\wfile.h\r
+# End Source File\r
+# End Group\r
+# End Group\r
+# Begin Group "Parsers"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=".\configuration-parser.y"\r
+# End Source File\r
+# End Group\r
+# Begin Group "Scanners"\r
+\r
+# PROP Default_Filter ""\r
+# Begin Source File\r
+\r
+SOURCE=".\configuration-scanner.l"\r
+# End Source File\r
+# End Group\r
+# End Target\r
+# End Project\r
similarity index 75%
rename from php4libts.dsp
rename to php4dllts.dsp
index f77fd2c69f0e2797f57e82bbde71a4f70308711f..68b1e0456f89868ba7dfe51ae2ebb5f1027c14fa 100644 (file)
@@ -1,24 +1,24 @@
-# Microsoft Developer Studio Project File - Name="php4libts" - Package Owner=<4>\r
+# Microsoft Developer Studio Project File - Name="php4dllts" - Package Owner=<4>\r
 # Microsoft Developer Studio Generated Build File, Format Version 6.00\r
 # ** DO NOT EDIT **\r
 \r
-# TARGTYPE "Win32 (x86) Static Library" 0x0104\r
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102\r
 \r
-CFG=php4libts - Win32 Debug_TS\r
+CFG=php4dllts - Win32 Debug_TS\r
 !MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
 !MESSAGE use the Export Makefile command and run\r
 !MESSAGE \r
-!MESSAGE NMAKE /f "php4libts.mak".\r
+!MESSAGE NMAKE /f "php4dllts.mak".\r
 !MESSAGE \r
 !MESSAGE You can specify a configuration when running NMAKE\r
 !MESSAGE by defining the macro CFG on the command line. For example:\r
 !MESSAGE \r
-!MESSAGE NMAKE /f "php4libts.mak" CFG="php4libts - Win32 Debug_TS"\r
+!MESSAGE NMAKE /f "php4dllts.mak" CFG="php4dllts - Win32 Debug_TS"\r
 !MESSAGE \r
 !MESSAGE Possible choices for configuration are:\r
 !MESSAGE \r
-!MESSAGE "php4libts - Win32 Debug_TS" (based on "Win32 (x86) Static Library")\r
-!MESSAGE "php4libts - Win32 Release_TS" (based on "Win32 (x86) Static Library")\r
+!MESSAGE "php4dllts - Win32 Debug_TS" (based on "Win32 (x86) Dynamic-Link Library")\r
+!MESSAGE "php4dllts - Win32 Release_TS" (based on "Win32 (x86) Dynamic-Link Library")\r
 !MESSAGE \r
 \r
 # Begin Project\r
@@ -26,9 +26,10 @@ CFG=php4libts - Win32 Debug_TS
 # PROP Scc_ProjName ""\r
 # PROP Scc_LocalPath ""\r
 CPP=cl.exe\r
+MTL=midl.exe\r
 RSC=rc.exe\r
 \r
-!IF  "$(CFG)" == "php4libts - Win32 Debug_TS"\r
+!IF  "$(CFG)" == "php4dllts - Win32 Debug_TS"\r
 \r
 # PROP BASE Use_MFC 0\r
 # PROP BASE Use_Debug_Libraries 1\r
@@ -39,19 +40,22 @@ RSC=rc.exe
 # PROP Use_Debug_Libraries 1\r
 # PROP Output_Dir "Debug_TS"\r
 # PROP Intermediate_Dir "Debug_TS"\r
+# PROP Ignore_Export_Lib 0\r
 # PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ  /c\r
-# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "include" /I "..\libzend" /I "." /I "regex\\" /I "..\tsrm" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "COMPILE_LIBZEND" /D "MSVC5" /D "ZTS" /D "NEW_SAPI" /FR /YX /FD /GZ  /c\r
+# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /YX /FD /GZ /c\r
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "include" /I "..\libzend" /I "." /I "regex\\" /I "..\tsrm" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /D "MSVC5" /D "PHP_EXPORTS" /D "WIN32" /D "_MBCS" /D "LIBZEND_EXPORTS" /D "ZTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /FR /YX /FD /GZ /c\r
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32\r
 # ADD BASE RSC /l 0x40d /d "_DEBUG"\r
 # ADD RSC /l 0x40d /d "_DEBUG"\r
 BSC32=bscmake.exe\r
 # ADD BASE BSC32 /nologo\r
 # ADD BSC32 /nologo\r
-LIB32=link.exe -lib\r
-# ADD BASE LIB32 /nologo\r
-# ADD LIB32 /nologo\r
+LINK32=link.exe\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib wsock32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libzendts.lib TSRM.lib resolv.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"libcmt" /nodefaultlib:"libc" /out:"Debug_TS/php4ts.dll" /pdbtype:sept /libpath:"..\TSRM\Debug_TS" /libpath:"..\libzend\Debug_TS" /libpath:"..\bindlib\Debug"\r
 \r
-!ELSEIF  "$(CFG)" == "php4libts - Win32 Release_TS"\r
+!ELSEIF  "$(CFG)" == "php4dllts - Win32 Release_TS"\r
 \r
 # PROP BASE Use_MFC 0\r
 # PROP BASE Use_Debug_Libraries 0\r
@@ -62,24 +66,27 @@ LIB32=link.exe -lib
 # PROP Use_Debug_Libraries 0\r
 # PROP Output_Dir "Release_TS"\r
 # PROP Intermediate_Dir "Release_TS"\r
+# PROP Ignore_Export_Lib 0\r
 # PROP Target_Dir ""\r
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c\r
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "include" /I "..\libzend" /I "." /I "regex\\" /I "..\tsrm" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "COMPILE_LIBZEND" /D "MSVC5" /D "ZTS" /D "NEW_SAPI" /YX /FD /c\r
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /YX /FD /c\r
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "include" /I "..\libzend" /I "." /I "regex\\" /I "..\tsrm" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "PHP4DLLTS_EXPORTS" /D "MSVC5" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "ZTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "WIN32" /D "_MBCS" /YX /FD /c\r
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32\r
 # ADD BASE RSC /l 0x40d /d "NDEBUG"\r
 # ADD RSC /l 0x40d /d "NDEBUG"\r
 BSC32=bscmake.exe\r
 # ADD BASE BSC32 /nologo\r
 # ADD BSC32 /nologo\r
-LIB32=link.exe -lib\r
-# ADD BASE LIB32 /nologo\r
-# ADD LIB32 /nologo\r
+LINK32=link.exe\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib wsock32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libzendts.lib TSRM.lib resolv.lib /nologo /dll /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libcmt.lib" /out:"Release_TS/php4ts.dll" /libpath:"..\TSRM\Release_TS" /libpath:"..\libzend\Release_TS" /libpath:"..\bindlib\Release"\r
 \r
 !ENDIF \r
 \r
 # Begin Target\r
 \r
-# Name "php4libts - Win32 Debug_TS"\r
-# Name "php4libts - Win32 Release_TS"\r
+# Name "php4dllts - Win32 Debug_TS"\r
+# Name "php4dllts - Win32 Release_TS"\r
 # Begin Group "Core"\r
 \r
 # PROP Default_Filter ""\r
@@ -646,41 +653,6 @@ SOURCE=.\win32\wfile.h
 # Begin Source File\r
 \r
 SOURCE=".\configuration-parser.y"\r
-\r
-!IF  "$(CFG)" == "php4libts - Win32 Debug_TS"\r
-\r
-# Begin Custom Build\r
-InputDir=.\r
-InputPath=.\configuration-parser.y\r
-\r
-BuildCmds= \\r
-       bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y\r
-\r
-"$(InputDir)\configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
-   $(BuildCmds)\r
-\r
-"$(InputDir)\configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
-   $(BuildCmds)\r
-# End Custom Build\r
-\r
-!ELSEIF  "$(CFG)" == "php4libts - Win32 Release_TS"\r
-\r
-# Begin Custom Build\r
-InputDir=.\r
-InputPath=.\configuration-parser.y\r
-\r
-BuildCmds= \\r
-       bison --output=configuration-parser.c -v -d -S "C:\Program Files\Cygnus\share\bison.simple" -p cfg configuration-parser.y\r
-\r
-"$(InputDir)\configuration-parser.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
-   $(BuildCmds)\r
-\r
-"$(InputDir)\configuration-parser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
-   $(BuildCmds)\r
-# End Custom Build\r
-\r
-!ENDIF \r
-\r
 # End Source File\r
 # End Group\r
 # Begin Group "Scanners"\r
@@ -689,29 +661,6 @@ BuildCmds= \
 # Begin Source File\r
 \r
 SOURCE=".\configuration-scanner.l"\r
-\r
-!IF  "$(CFG)" == "php4libts - Win32 Debug_TS"\r
-\r
-# Begin Custom Build\r
-InputPath=.\configuration-scanner.l\r
-\r
-"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
-       flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l\r
-\r
-# End Custom Build\r
-\r
-!ELSEIF  "$(CFG)" == "php4libts - Win32 Release_TS"\r
-\r
-# Begin Custom Build\r
-InputPath=.\configuration-scanner.l\r
-\r
-"configuration-scanner.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
-       flex -i -Pcfg -oconfiguration-scanner.c configuration-scanner.l\r
-\r
-# End Custom Build\r
-\r
-!ENDIF \r
-\r
 # End Source File\r
 # End Group\r
 # End Target\r
index 2917e91c6780b496b7b56ad3328b8120cf902014..3bb94cdc9cc15fae306759f78c0f0e316bc230b9 100644 (file)
@@ -42,7 +42,7 @@ RSC=rc.exe
 # PROP Ignore_Export_Lib 0\r
 # PROP Target_Dir ""\r
 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "include" /I "..\libzend" /I "." /I "regex\\" /I "d:\src\bind\include" /I "..\tsrm" /D "NDEBUG" /D "MSVC5" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "COMPILE_LIBZEND" /D "ZTS" /D "TSRM_EXPORTS" /Fr /FD /c\r
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\libzend" /I "." /I "regex\\" /I "..\tsrm" /I "..\bindlib" /D "NDEBUG" /D "MSVC5" /D "_CONSOLE" /D "ZTS" /D "WIN32" /D "_MBCS" /Fr /FD /c\r
 # SUBTRACT CPP /YX /Yc /Yu\r
 # ADD BASE RSC /l 0x409 /d "NDEBUG"\r
 # ADD RSC /l 0x409 /d "NDEBUG"\r
@@ -51,7 +51,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo\r
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 lib44bsd95.lib resolv.lib winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib libzendts.lib tsrm.lib /nologo /version:3.0 /subsystem:console /machine:I386 /nodefaultlib:"libc.lib" /out:"Release_TS\php.exe" /libpath:"lib" /libpath:"..\tsrm\release_TS" /libpath:"..\libzend\Release_TS" /libpath:"."\r
+# ADD LINK32 php4ts.lib winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /version:3.0 /subsystem:console /machine:I386 /nodefaultlib:"libc.lib" /out:"Release_TS\php.exe" /libpath:"Release_TS"\r
 \r
 !ELSEIF  "$(CFG)" == "php4ts - Win32 Debug_TS"\r
 \r
@@ -67,7 +67,7 @@ LINK32=link.exe
 # PROP Ignore_Export_Lib 0\r
 # PROP Target_Dir ""\r
 # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "include" /I "..\libzend" /I "." /I "regex\\" /I "d:\src\bind\include" /I "..\tsrm" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "COMPILE_LIBZEND" /D "ZTS" /D "TSRM_EXPORTS" /FR /FD /c\r
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\libzend" /I "." /I "regex\\" /I "..\tsrm" /I "..\bindlib" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "ZTS" /FR /FD /c\r
 # SUBTRACT CPP /YX\r
 # ADD BASE RSC /l 0x409 /d "_DEBUG"\r
 # ADD RSC /l 0x409 /i "c:\include" /d "_DEBUG"\r
@@ -76,7 +76,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo\r
 LINK32=link.exe\r
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib TSRM.lib libzendts.lib php4libts.lib lib44bsd95.lib resolv.lib /nologo /version:3.0 /subsystem:console /debug /machine:I386 /nodefaultlib:"libcd" /nodefaultlib:"libcmt" /out:"Debug_TS\php.exe" /pdbtype:sept /libpath:"lib" /libpath:"..\TSRM\debug_ts" /libpath:"..\libzend\Debug_TS" /libpath:"Debug_TS"\r
+# ADD LINK32 winmm.lib wsock32.lib netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts.lib /nologo /version:3.0 /subsystem:console /debug /machine:I386 /nodefaultlib:"libcd" /nodefaultlib:"libcmt" /out:"Debug_TS\php.exe" /pdbtype:sept /libpath:"Debug_TS"\r
 # SUBTRACT LINK32 /pdb:none\r
 \r
 !ENDIF \r
index ee8e1f2617524d0223a00b5d5123f43cd41f5e4c..5bf76329bf3cae15122481a14a2a7fb9d9483328 100644 (file)
@@ -27,7 +27,7 @@ Package=<4>
 \r
 ###############################################################################\r
 \r
-Project: "php4isapi"=.\php4isapi\php4isapi.dsp - Package Owner=<4>\r
+Project: "php4dllts"=.\php4dllts.dsp - Package Owner=<4>\r
 \r
 Package=<5>\r
 {{{\r
@@ -39,16 +39,13 @@ Package=<4>
     Project_Dep_Name libzendts\r
     End Project Dependency\r
     Begin Project Dependency\r
-    Project_Dep_Name php4libts\r
-    End Project Dependency\r
-    Begin Project Dependency\r
     Project_Dep_Name TSRM\r
     End Project Dependency\r
 }}}\r
 \r
 ###############################################################################\r
 \r
-Project: "php4libts"=.\php4libts.dsp - Package Owner=<4>\r
+Project: "php4isapi"=.\php4isapi\php4isapi.dsp - Package Owner=<4>\r
 \r
 Package=<5>\r
 {{{\r
@@ -56,6 +53,9 @@ Package=<5>
 \r
 Package=<4>\r
 {{{\r
+    Begin Project Dependency\r
+    Project_Dep_Name php4dllts\r
+    End Project Dependency\r
 }}}\r
 \r
 ###############################################################################\r
@@ -69,13 +69,7 @@ Package=<5>
 Package=<4>\r
 {{{\r
     Begin Project Dependency\r
-    Project_Dep_Name libzendts\r
-    End Project Dependency\r
-    Begin Project Dependency\r
-    Project_Dep_Name TSRM\r
-    End Project Dependency\r
-    Begin Project Dependency\r
-    Project_Dep_Name php4libts\r
+    Project_Dep_Name php4dllts\r
     End Project Dependency\r
 }}}\r
 \r
index 86fad8c337054e9fe6900f072e22776b1b3907f9..b64ed54461219acb38ea55323aa2f40096a91628 100644 (file)
@@ -30,7 +30,7 @@
 #include "php.h"
 
 #ifndef THREAD_SAFE
-php3_request_info request_info;
+PHPAPI php3_request_info request_info;
 #endif
 
 #if CGI_BINARY
index 8600e28f6809550a9b45a6df2892bca020b956b2..71c50cc698d8e6d16bd826d91e84c45a216f21a4 100644 (file)
@@ -47,7 +47,7 @@ typedef struct {
 } php3_request_info;
 
 #ifndef THREAD_SAFE
-extern php3_request_info request_info;
+PHPAPI extern php3_request_info request_info;
 #endif
 
 extern int php3_init_request_info(void *conf);