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
#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
}
#ifdef PHP_WIN32
- UpdateIniFromRegistry(primary_file->filename);
+ UpdateIniFromRegistry(file->filename);
#endif
EG(main_op_array) = zend_compile_files(ZEND_REQUIRE CLS_CC, 1, file);
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);
#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
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
}
#ifndef ZTS
cwd_globals_dtor(&cwd_globals);
#endif
-#ifdef ZEND_WIN32
+#if defined(ZEND_WIN32) && defined(ZTS)
tsrm_mutex_free(cwd_mutex);
#endif
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;
}
# 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
# 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
# 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
# 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
# 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