> De : Pierre Joye [mailto:pierre....@gmail.com]
>
> I have a working proof of concept using something like:
> 
> <?php
> function u_foo() {
> }
> ?>
> ---- native
> void foo()
> {
>  printf("Hello from native!");
> }
> ?>
> <?php
> ... some other codes.
> ?>

In your example, I don't see how you execute the foo() C function from PHP.

Would it be possible to embed C code in a PHP function or method ?

If yes, how do both codes access each other's data ? If foo() takes arguments, 
how would they be transmitted from PHP ? What about scalar type conversions to 
fit the expected C argument types ? The same about return value.

To summarize, I'd like to know how PHP and C code can communicate together.

Regards

François


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

Reply via email to