[svn:PHP-Sandwich] r1491 - PHP-Sandwich/trunk

[email protected] 29 Aug 2005 21:48:03 -0000
Newsgroups perl.php.sandwich.dev
Message-ID <[email protected]>
Author: gschlossnagle
Date: Mon Aug 29 14:48:02 2005
New Revision: 1491

Modified:
   PHP-Sandwich/trunk/phpinterp.c
Log:
we only want to dance this dance if we're ZTS


Modified: PHP-Sandwich/trunk/phpinterp.c
==============================================================================
--- PHP-Sandwich/trunk/phpinterp.c	(original)
+++ PHP-Sandwich/trunk/phpinterp.c	Mon Aug 29 14:48:02 2005
@@ -156,8 +156,8 @@ int sandwich_php_interpreter_create()
 
 sandwich_per_interp *sandwich_per_interp_setup() 
 {
-  /* if (!conf->eval_ok) return NULL; */
   sandwich_per_interp *info;
+#ifdef ZTS
   if(free_interps) {
     struct interp_list *tofree = free_interps;
     info = free_interps->interp;
@@ -175,8 +175,7 @@ sandwich_per_interp *sandwich_per_interp
     }
     return info;
   }
-
-#ifndef ZTS
+#else
   if(one_true_interp) return one_true_interp;
 #endif