luigimarmo / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

PHP extension to interact with PHP Desktop/Chromium API #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently you can call PHP Desktop internal functions only from within 
javascript, see the JavascriptApi wiki page.

It would be nice to be able to interact with PHP Desktop or the Chromium API 
directly from within PHP.

See the PHP-CPP project that lets you easily develop PHP extensions in C++, 
with no need to know all the internals of the Zend Engine:

http://www.php-cpp.com/

Original issue reported on code.google.com by czarek.t...@gmail.com on 26 Mar 2014 at 11:16

GoogleCodeExporter commented 9 years ago
The communication between the php extension and phpdesktop can only occur using 
asynchronous IPC messaging between the PHP process and PHPDesktop process. 
Returning any values would require callbacks. But this raises problems, because 
the response is not immediate. The php script may complete its execution before 
the response arrives, in such case the response would be lost. This also 
introduces threading issues. I'm not sure how php handles/supports threading, 
the callback would be called in a separate thread, or is there something 
similar to python like GIL (global interpreter lock)?

Original comment by czarek.t...@gmail.com on 29 Apr 2014 at 4:42

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:38

GoogleCodeExporter commented 9 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/99

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:29