]> granicus.if.org Git - php/commitdiff
- Update .dsp's
authorZeev Suraski <zeev@php.net>
Sat, 29 Jul 2000 10:48:57 +0000 (10:48 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 29 Jul 2000 10:48:57 +0000 (10:48 +0000)
- Make non ZTS Win32 build again

main/fopen_wrappers.c
main/main.c
main/php_main.h
main/php_virtual_cwd.c
win32/php4dll.dsp

index 30cdfaf2920f4b7a1291698c28917e9801074fe2..2064675418efe6d9cd2df3f4921f98bc326535e3 100644 (file)
@@ -101,7 +101,8 @@ int php_get_ftp_result(int socketd);
 
 HashTable fopen_url_wrappers_hash;
 
-PHPAPI int php_register_url_wrapper(char *protocol, FILE * (*wrapper)(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path)) {
+PHPAPI int php_register_url_wrapper(char *protocol, FILE * (*wrapper)(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path))
+{
 #if PHP_URL_FOPEN
        return zend_hash_add(&fopen_url_wrappers_hash, protocol, strlen(protocol)+1, &wrapper, sizeof(wrapper), NULL);
 #else
@@ -109,7 +110,8 @@ PHPAPI int php_register_url_wrapper(char *protocol, FILE * (*wrapper)(const char
 #endif
 }
 
-PHPAPI int php_unregister_url_wrapper(char *protocol) {
+PHPAPI int php_unregister_url_wrapper(char *protocol)
+{
 #if PHP_URL_FOPEN
        return zend_hash_del(&fopen_url_wrappers_hash, protocol, strlen(protocol)+1);
 #else
index 27787c6cd35142cbbb9679e0e88dcd8b6e43a0d4..927fd77200c1e9e750e6f5e900138733533fc28c 100644 (file)
@@ -1184,7 +1184,7 @@ PHPAPI int php_lint_script(zend_file_handle *file CLS_DC ELS_DC PLS_DC)
        }
 
 #ifdef PHP_WIN32
-       UpdateIniFromRegistry(primary_file->filename);
+       UpdateIniFromRegistry(file->filename);
 #endif
 
        EG(main_op_array) = zend_compile_files(ZEND_REQUIRE CLS_CC, 1, file);
index 9b7688606624a503533163a2831b6d0c7f9a20dc..6f0f0f2ae2bdc8ced45da1933d2209b00fbe9049 100644 (file)
@@ -41,6 +41,8 @@ PHPAPI int php_global_startup_extensions(zend_module_entry **ptr, int count);
 PHPAPI int php_global_shutdown_extensions(zend_module_entry **ptr, int count);
 
 PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_DC);
+PHPAPI int php_lint_script(zend_file_handle *file CLS_DC ELS_DC PLS_DC);
+
 
 extern void php_call_shutdown_functions(void);
 
index a248bea38da195d81ada6f37f67410eb1e219f28..ff8479b55c410156ce4428f3edebcebcf41b7aff 100644 (file)
@@ -43,7 +43,7 @@
 #endif
 
 /* Only need mutex for popen() in Windows because it doesn't chdir() on UNIX */
-#ifdef ZEND_WIN32
+#if defined(ZEND_WIN32) && defined(ZTS)
 MUTEX_T cwd_mutex;
 #endif
 
@@ -177,7 +177,7 @@ CWD_API void virtual_cwd_startup(void)
        main_cwd_state.cwd_length = strlen(cwd);
 
        ZEND_INIT_MODULE_GLOBALS(cwd, cwd_globals_ctor, cwd_globals_dtor);
-#ifdef ZEND_WIN32
+#if defined(ZEND_WIN32) && defined(ZTS)
        cwd_mutex = tsrm_mutex_alloc();
 #endif
 }
@@ -197,7 +197,7 @@ CWD_API void virtual_cwd_shutdown(void)
 #ifndef ZTS
        cwd_globals_dtor(&cwd_globals);
 #endif
-#ifdef ZEND_WIN32
+#if defined(ZEND_WIN32) && defined(ZTS)
        tsrm_mutex_free(cwd_mutex);
 #endif
 
@@ -659,14 +659,18 @@ CWD_API FILE *virtual_popen(const char *command, const char *type)
        if (!getcwd_result) {
                return NULL;
        }
-       
+
+#ifdef ZTS
        tsrm_mutex_lock(cwd_mutex);
+#endif
 
        chdir(CWDG(cwd).cwd);
        retval = popen(command, type);
        chdir(prev_cwd);
 
+#ifdef ZTS
        tsrm_mutex_unlock(cwd_mutex);
+#endif
 
        return retval;
 }
index ef3c5c6c05f869cd7d0177ed14a65159de161510..1e72135fc2d1ba95c350f421493d10a1291835fe 100644 (file)
@@ -333,6 +333,10 @@ SOURCE=..\ext\standard\browscap.c
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\ext\standard\crc32.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
@@ -385,6 +389,10 @@ SOURCE=..\ext\standard\image.c
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\ext\standard\incomplete_class.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
@@ -788,12 +796,12 @@ SOURCE=..\ext\pcre\pcrelib\pcre.h
 # Begin Source File\r
 \r
 SOURCE=..\ext\wddx\wddx.c\r
-# ADD CPP /I "..\Zend" /I ".." /I "..\regex" /I "..\..\bindlib_w32" /I "..\main" /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
+# ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
 # End Source File\r
 # Begin Source File\r
 \r
 SOURCE=..\ext\xml\xml.c\r
-# ADD CPP /I "..\Zend" /I ".." /I "..\regex" /I "..\..\bindlib_w32" /I "..\main" /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
+# ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
 # End Source File\r
 # End Group\r
 # Begin Group "Header Files No. 4"\r
@@ -813,22 +821,22 @@ SOURCE=..\ext\xml\php_xml.h
 # Begin Source File\r
 \r
 SOURCE=..\ext\xml\expat\xmlparse\hashtable.c\r
-# ADD CPP /I "..\Zend" /I ".." /I "..\regex" /I "..\..\bindlib_w32" /I "..\main" /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
+# ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
 # End Source File\r
 # Begin Source File\r
 \r
 SOURCE=..\ext\xml\expat\xmlparse\xmlparse.c\r
-# ADD CPP /I "..\Zend" /I ".." /I "..\regex" /I "..\..\bindlib_w32" /I "..\main" /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
+# ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
 # End Source File\r
 # Begin Source File\r
 \r
 SOURCE=..\ext\xml\expat\xmltok\xmlrole.c\r
-# ADD CPP /I "..\Zend" /I ".." /I "..\regex" /I "..\..\bindlib_w32" /I "..\main" /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
+# ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
 # End Source File\r
 # Begin Source File\r
 \r
 SOURCE=..\ext\xml\expat\xmltok\xmltok.c\r
-# ADD CPP /I "..\Zend" /I ".." /I "..\regex" /I "..\..\bindlib_w32" /I "..\main" /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
+# ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"\r
 # End Source File\r
 # End Group\r
 # Begin Group "Header Files No. 5"\r
@@ -920,7 +928,7 @@ SOURCE=..\win32\wfile.c
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\dl\snmp\winsnmp.c\r
+SOURCE=..\ext\snmp\winsnmp.c\r
 # End Source File\r
 # Begin Source File\r
 \r