16

how can i write my own module in C ? is it possible ?

Gordon
  • 296,205
  • 68
  • 508
  • 534
Sourav
  • 15,195
  • 32
  • 97
  • 152
  • 2
    http://devzone.zend.com/article/1021 – Matthew Apr 12 '11 at 06:34
  • if you have posted the comment as an answer i will be able to vote up and select it as answer – Sourav Apr 12 '11 at 06:37
  • possible duplicate of [where can i learn php internals, how they work ?](http://stackoverflow.com/questions/4389738/where-can-i-learn-php-internals-how-they-work) – Gordon Apr 12 '11 at 06:40
  • 1
    Old question but since 2014 you can also use PHP-CPP library (www.php-cpp.com, Apache license) to simplify the writing of PHP extensions. – MV. Feb 11 '16 at 22:21

1 Answers1

19

Yes, it is possible. Here's an old article that I used when I wrote my first extension:

http://web.archive.org/web/20110222035803/http://devzone.zend.com/article/1021

Things may have changed since then, so you may want to search for similar tutorials for additional references.

Oh, and this should be useful:

http://www.php.net/manual/en/internals2.php

Martijn Pieters
  • 889,049
  • 245
  • 3,507
  • 2,997
Matthew
  • 45,217
  • 11
  • 82
  • 95