Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30237 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31324 invoked by uid 1010); 19 Jun 2007 07:48:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31309 invoked from network); 19 Jun 2007 07:48:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2007 07:48:41 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 83.243.58.163 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:36942] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/E1-11764-55A87764 for ; Tue, 19 Jun 2007 03:48:38 -0400 Received: (qmail 23420 invoked by uid 507); 19 Jun 2007 07:48:32 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.65.231) by mail4.netbeat.de with ESMTPA; 19 Jun 2007 07:48:32 -0000 To: muquaddim Cc: internals@lists.php.net In-Reply-To: <14.EA.00919.65307764@pb1.pair.com> References: <00.05.25319.F9955764@pb1.pair.com> <14.EA.00919.65307764@pb1.pair.com> Content-Type: text/plain Date: Tue, 19 Jun 2007 09:47:36 +0200 Message-ID: <1182239257.3364.890.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 (2.10.1-4.fc7) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: documentation of php5ts.dll and .NET wrapper From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi again, On Mon, 2007-06-18 at 18:12 -0400, muquaddim wrote: > I think the configure option "--disable-zts" will work on the following > lines. > > #ifdef ZTS > #define TSRMLS_D void ***tsrm_ls > #define TSRMLS_DC , TSRMLS_D > #define TSRMLS_C tsrm_ls > #define TSRMLS_CC , TSRMLS_C > #else > #define TSRMLS_D > #define TSRMLS_DC > #define TSRMLS_C > #define TSRMLS_CC > > In that case my function definition will be easily understandable as I don't > understand the TSRMLS_DC part. Sara has a nice article about TSRM: http://blog.libssh2.org/index.php?/archives/22-What-the-heck-is-TSRMLS_CC-anyway.html and since you're using php5ts.dll you have zts enabled. > I am planning to call the php5nsapi.dll entry points. those were most easy > for me. > Just tell me someone, Is it the right way? When using php5nsapi.dll you're application has to offer the nsapi stuff PHP uses then. As said in my last post: The best is to build a custom SAPI which fit's your need. I mentioned sapi/embed, Wez had a few suggestions about activescript. Just calling some random API functions will most likely not work, you should first write a (small) sapi in C giving you the API you need for your needs. johannes