Re: SQLite3, PDO/SQLite and driver specific methods

From: Date: Sun, 21 Jun 2020 15:12:18 +0000
Subject: Re: SQLite3, PDO/SQLite and driver specific methods
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-110693@lists.php.net to get a copy of this message
On Sat, 20 Jun 2020 at 15:22, Peter Bowyer <phpmailinglists@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


Thread (6 messages)

« previous php.internals (#110693) next »