# writing pecl's?

- Thread: https://externals.io/message/64461
- Original archive: https://news-web.php.net/php.internals/64461
- Started by Lars Nielsen on 2012-12-30T22:21:54+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #64461 — Lars Nielsen — 2012-12-30T22:21:54+00:00

URL: https://externals.io/message/64461#64461

Hi,

I am looking at how to write an extension for php, and i have found an
article on zend.com from 2005 which works fine with my local php 5.3. 

My question is should i be worried that this article is almost 8 years
old? Is there some more recent articles? Or is this the way to do it?

http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/

Med venlig hilsen / Best Regards

Lars Nielsen
email : lars@lfweb.dk

---

## #64462 — Xinchen Hui — 2012-12-31T00:46:48+00:00

URL: https://externals.io/message/64461#64462 · In reply to: #64461

hey：


发自我的 iPhone

在 2012-12-31，6:22，Lars Nielsen <lars@lfweb.dk> 写道：

> Hi,
>
> I am looking at how to write an extension for php, and i have found an
> article on zend.com from 2005 which works fine with my local php 5.3.
>
> My question is should i be worried that this article is almost 8 years
> old? Is there some more recent articles? Or is this the way to do it?
>
      we are always careful of API & ABI consistence.

      So I think the answer is no, you don't have to worry too much.
If your ext works well.

Thanks
> http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/
>
> Med venlig hilsen / Best Regards
>
> Lars Nielsen
> email : lars@lfweb.dk

---

## #64463 — J. Adams — 2012-12-31T00:55:19+00:00

URL: https://externals.io/message/64461#64463 · In reply to: #64461

Please note:  I'm hardly an advanced developer and have yet to produce 
any viable PHP extension.

That said, I have found this book to be helpful:
http://www.amazon.com/Extending-Embedding-PHP-Sara-Golemon/dp/067232704X

All these links and books are probably dated in some respects, but will 
help get you started. I have found that the source itself relies heavily 
on macro definitions in the code. This source browser has been extremely 
useful for me:
http://lxr.php.net/




> Hi,
>
> I am looking at how to write an extension for php, and i have found an
> article on zend.com from 2005 which works fine with my local php 5.3.
>
> My question is should i be worried that this article is almost 8 years
> old? Is there some more recent articles? Or is this the way to do it?
>
> http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/
>
> Med venlig hilsen / Best Regards
>
> Lars Nielsen
> email : lars@lfweb.dk
