php-windows Digest 8 Sep 2009 08:51:06 -0000 Issue 3692

Topics (messages 29595 through 29597):

Re: there is no php5ts.dll under PHP 5.3
        29595 by: loki

Is it possible to pass a PHP userland function as a callbak in a COM interface.
        29596 by: Richard Quadling

compiling php 5.3
        29597 by: Tommy Pham

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---

""Jason"" <[email protected]> wrote in message news:009301ca2f8e$b47e2d70$1d7a88...@com...
-----Original Message-----
From: Fred Silsbee [mailto:[email protected]]
Sent: 06 September 2009 18:45
To: [email protected]
Subject: [PHP-WIN] there is no php5ts.dll under PHP 5.3


 there is no php5ts.dll under PHP 5.3
 downloaded file

 C:\PHPDownloads\SQLSERVER_Driver\SQLServerDriverForPHP_Readme.htm



That's because 5.3 dropped support for ISAPI - use FastCGI instead.

J


yes, but on the same way is their any sample code (C++, pascal, or .net) of how to call PHP by fastCGI throught a custom application (custom web server for exemple) ?

thanks you by advance

--
stephane

http://www.arkadia.com/fra/immobilier/vente/france/ile-de-france/paris/paris-20e-arrondissement/
http://www.arkadia.com/fra/immobilier/vente/france/ile-de-france/paris/annonces/
http://www.arkadia.com/fra/location-vacances/france/ile-de-france/paris/annonces/
--- End Message ---
--- Begin Message ---
Hi.

I'm playing with a COM exposed OCR tool.

One of the methods of the COM interface requires a callback.

The VB and C++ examples simply supply the address of the function to
the method ...

(VB) ret = objOCR.OCRSetOutputHandlerX(AddressOf myOutputHandler)
(C++) OCRSetOutputHandler(myOutputHandler);

(NOTE: that is a straight cut'n'paste from their dox - I don't think
the C++ example is complete, but you get the idea).

So, in PHP, create_function() creates a "lambda_n" and function()
creates a "closure".

Trying to pass the either of these (with or without &) results in an
exception. Pretty much as expected.

Is there any way of passing this?

At the moment I don't think so, but I may be wrong.

I think we need a more direct way of exposing the PHP function, OR to
have a callback type which proxies the callback from the COM layer to
the php userland code.

As I understand things, a function call essentially puts the params on
a stack/heap, switches execution point to the function. The function
retrieves the params from the stack/heap and carries on executing.

As the PHP userland "function" isn't available in the same way, a
proxy seems to be the only way I could think of.

But, this is WAY out of my skill set (I'm remembering my c coding from
over 25 years ago - eek!).

Any ideas, suggestions, etc.

Regards,

Richard Quadling.

-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--- End Message ---
--- Begin Message ---
Hi,

Has anyone manage to build v5.3.x on Windows without --disable-sockets?

I can't seem to get pass this error: :(

        "cl.exe" /DHAVE_WINSOCK_H=1 /D COMPILE_DL_SOCKETS /D SOCKETS_EXPORTS=1 /
nologo /FD /I . /I main /I Zend /I TSRM /I ext /D _WINDOWS /D ZEND_WIN32=1 /D 
PHP_WIN32=1 /D WIN32 /D _MBCS  /wd4996 /Wp64   /MP  /Zi /LD /MD /W3 /Ox /D 
NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0 /D ZTS=1 /I 
"..\deps\include"  /D FD_SETSIZE=256 /Fox64\Release_TS\ext\sockets\ 
/Fdx64\Release_TS\ext\sockets\ /Fpx64\Release_TS\ext\sockets\ 
/FRx64\Release_TS\ext\sockets\ /c ext\sockets\sockets.c
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be 
removed in a future release sockets.c
ext\sockets\sockets.c(327) : error C2491: 'php_sockets_le_socket' : definition 
of dllimport function not allowed

Googled for php_sockets_le_socket doesn't give much...

TIA,
Tommy

--- End Message ---

Reply via email to