]> granicus.if.org Git - php/commitdiff
Fix bug #28438: win32 build fails in non-zts mode
authorWez Furlong <wez@php.net>
Tue, 18 May 2004 20:14:54 +0000 (20:14 +0000)
committerWez Furlong <wez@php.net>
Tue, 18 May 2004 20:14:54 +0000 (20:14 +0000)
Zend/zend_execute_API.c

index 7db680089b17f794098638212399ce897dd8c943..0cee71deb1d9da7d43c9efa4202258e1aa67685f 100644 (file)
@@ -1101,14 +1101,17 @@ static LRESULT CALLBACK zend_timeout_WndProc(HWND hWnd, UINT message, WPARAM wPa
                        if (lParam==0) {
                                KillTimer(timeout_window, wParam);
                        } else {
+#ifdef ZTS
                                void ***tsrm_ls;
-
+#endif
                                SetTimer(timeout_window, wParam, lParam*1000, NULL);
+#ifdef ZTS
                                tsrm_ls = ts_resource_ex(0, &wParam);
                                if (!tsrm_ls) {
                                        /* shouldn't normally happen */
                                        break;
                                }
+#endif
                                EG(timed_out) = 0;
                        }
                        break;