On 6/17/07, muquaddim <[EMAIL PROTECTED]> wrote:

"Tijnema" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 6/17/07, muquaddim <[EMAIL PROTECTED]> 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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to