[PHP-DEV] Fwd: PHP7 extension to control raspberry GPIO

2017-05-11 Thread simon .barotte
Hi all, I have developed a php extension to use the gpio ports of a raspberry directly from a php code. This is my first php extension (which I developed following the advice of PHP internals book), so I would have liked to know if people could read my code in order to advise me, or to guide me on

[PHP-DEV] Use pthread in php extension

2016-12-06 Thread simon .barotte
Hi all, I developpe an extension php, and I would like use Linux pthread in my extension (PHP 5.6.27). But I have a feeling that my thread don't work, I looked for the documentation but I find no concrete example. Can I use pthread without zts activated ? Sample of my code : void *called_from_thr