On Sat, 20 Jun 2020 at 15:22, Peter Bowyer <phpmailingli...@gmail.com> wrote:
>
> Digging into the PHP source code is a fun challenge.

It really isn't. Collecting and publishing information on how to work
on PHP core, is one thing that takes a lot of time, that we should
make easier for people to contribute to.

> I've got stuck with adding `PDO::connect('sqlite:...')` [3]. Can someone take 
> a look and give me advice?

Thomas Weinert has a repo that implements features in core. Each
branch shows how to do a separate thing. Adding a class is on this
branch: https://github.com/ThomasWeinert/php-extension-sample/tree/class_method

Though you would need the ZEND_ACC_STATIC flag for the method entry also.

Also, probably useful:
http://www.phpinternalsbook.com/

Might be easier for people to help you if you open a pull request, as
that has more visibility, easier places to comment.

cheers
Dan
Ack

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

Reply via email to