Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30212 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88818 invoked by uid 1010); 17 Jun 2007 17:09:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88794 invoked from network); 17 Jun 2007 17:09:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2007 17:09:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=tijnema@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tijnema@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.245 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tijnema@gmail.com X-Host-Fingerprint: 209.85.132.245 an-out-0708.google.com Received: from [209.85.132.245] ([209.85.132.245:62377] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/6B-25319-EAA65764 for ; Sun, 17 Jun 2007 13:09:04 -0400 Received: by an-out-0708.google.com with SMTP id c18so297637anc for ; Sun, 17 Jun 2007 10:08:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CXivzOWpZf2l2zt+1sJUkumbAiGf5TJekqLzPdivfapUm3edWJ1+Q4wFc+E6m6Q1ipPsXYAB5rVIeTovBXG1Q7p7csyAQexG1kt7rtPwG1dK+sVjIkSy6X1GrL4a7wwkdlkGKO83/q+2Thtrztvmh/MzcXBxfZpP7bPhE4iETHE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jdb9RarpK4WAUstUc0iBmkhwZw1m3fUyeo++XNfPc8aeyLOwMdEg3RNIsOHCMY7km54nmIFwU8Ug3NDehnv4s7UHjCxqM2FucUQegh88F1Ca0xSFOcZJIzzTRuYBrart4NF7ipwaCf5cEnoQg/T92Bwa6xtfxPWopO7nsKHnYZw= Received: by 10.100.165.9 with SMTP id n9mr2999370ane.1182100138598; Sun, 17 Jun 2007 10:08:58 -0700 (PDT) Received: by 10.100.33.17 with HTTP; Sun, 17 Jun 2007 10:08:58 -0700 (PDT) Message-ID: Date: Sun, 17 Jun 2007 19:08:58 +0200 To: muquaddim Cc: internals@lists.php.net In-Reply-To: <10.9A.25319.59465764@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <00.05.25319.F9955764@pb1.pair.com> <10.9A.25319.59465764@pb1.pair.com> Subject: Re: [PHP-DEV] documentation of php5ts.dll and .NET wrapper From: tijnema@gmail.com (Tijnema) On 6/17/07, muquaddim wrote: > > "Tijnema" wrote in message > news:d8269d910706170905h7c53fbd4sec26625dfaceda0b@mail.gmail.com... > > On 6/17/07, muquaddim wrote: > >> Hi, > >> I have use dumpbin to get the method names of php5ts.dll file. I get many > >> names. > >> 2 of these methods are, > >> "php_execute_script" > >> "php_execute_simple_script" > >> > >> I guess these are the methods that are responsible for executing php > >> source > >> (.php) files. > >> now I need to know, what are the parameter of these methods. How can I > >> get > >> the documenttation on parameters. > >> If I get this I could have make a .NET wrapper. > >> Thanks > > > > Just take a look at the PHP Source code, the functions are well > > described there... :) > > > > Tijnema > Yes I have been watching the source for long time. But no hope. There is no > comments on the source. > In the /main/main.c file I found this, > PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC) > here TSRMLS_DC is defined in /Zend/zend_language_scanner.c file as > ------------------------------------------------------------- > #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 > #endif > ------------------------------------------------------------- > this is contitional compilation. thats why I dont' know where the > php_execute_script method int php5ts.dll has the last parameter. > I think you understand. > The main problem with the last parameter Well, that has something to do with Maintainer ZTS mode, I don't study on PHP source myself, but php_execute_script requires a file handle, so you should open one first. (With some zend function...) Like Johannes said, take a look at other SAPI's, as there's usefull information in too... Tijnema