Re: [PHP4BETA] Thread safety

From: Date: Sat, 24 Apr 1999 10:10:03 +0000
Subject: Re: [PHP4BETA] Thread safety
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-437@lists.php.net to get a copy of this message
Zeev Suraski wrote: > > Hi, > > First, the permissions on TSRM were messed up - it's ok now. Use cvs -d > :pserver:username@cvs.zend.com:/repository co TSRM to check it out. > > Right now TSRM compiles under Win32 and UNIX with POSIX threads. > > Stig - is it possible to integrate it to the building process of PHP, > selectively? I.e., only if --enable-thread-safety is specified or > something? > Also, in to avoid opening a gap between UNIX and Win32 as far as thread > safety goes (right now they're equally supported, at least at the engine > level) - it'd be cool if we could implement --enable-thread-safety all the > way: > > 1. It would compile and link TSRM. > > 2. It would generate and compile the C++ scanner instead of the C one. > I've added a rule to generate zend-scanner.cc to the Makefile.am, but I > have no idea how to selectively compile it instead of the C one, and use > g++ for the job. > > 3. Specify -DZTS through the command line of all the compiler calls. > > That definitely falls in Stig's area of expertise. Stig? :) Okay, how do we integrate TSRM with php4? Right now I have checked it out inside the php4 directory (could make a symlink like with libzend as well, but all the source gets updated with one "cvs update" this way). What I'll do for now is to set up automake in the TSRM (why the caps, btw?) directory as well and use php4's config.h, and this way make it part of php4. Or you could just stuff it into libzend. - Stig -- PHP 4 Beta

« previous php.version4 (#437) next »