Skip to content

FR #74217 - Allow creation of deterministic sqlite functions#2412

Closed
andrewnester wants to merge 2 commits intophp:masterfrom
andrewnester:74217-sqllite-flags
Closed

FR #74217 - Allow creation of deterministic sqlite functions#2412
andrewnester wants to merge 2 commits intophp:masterfrom
andrewnester:74217-sqllite-flags

Conversation

@andrewnester
Copy link
Contributor

Added ability to pass flags to sqlite3_create_function calls.

Based on https://bugs.php.net/bug.php?id=74217

@andrewnester
Copy link
Contributor Author

@krakjoe I suppose it requires proper RFC, am I right?

@cmb69
Copy link
Member

cmb69 commented Mar 10, 2017

Would be a nice addition for ext/sqlite3, too!

@andrewnester
Copy link
Contributor Author

@cmb69
Copy link
Member

cmb69 commented Mar 10, 2017

@andrewnester Ah, I've overlooked that, because I thought its about PDO_sqlite only!

IMHO this doesn't need an RFC. It's a small, self-contained addition, and it's usefulness doesn't appear to be contentious. Anyhow, I'm +1 on this.

@andrewnester
Copy link
Contributor Author

andrewnester commented Mar 10, 2017

Travis failure says The job exceeded the maximum time limit for jobs, and has been terminated.
@cmb69 thanks for support!

@krakjoe krakjoe changed the title RFC #74217 - Allow creation of deterministic sqlite functions FR #74217 - Allow creation of deterministic sqlite functions Mar 10, 2017
@krakjoe
Copy link
Member

krakjoe commented Mar 10, 2017

No RFC is necessary. LGTM, let's just wait for CI ...

--EXPECTF--
array(2) {
["testing(name)"]=>
%string|unicode%(3) "php"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be just string.

?>
--EXPECTF--
bool(true)
%string|unicode%(4) "TEST"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @nikic pointed out, same here ;)

ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_sqlite3_createfunction, 0, 0, 2)
ZEND_BEGIN_ARG_INFO_EX(arginfo_sqlite3_createfunction, 0, 0, 3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a required argument.

@andrewnester
Copy link
Contributor Author

@krakjoe @nikic thanks! I updated my PR.

@nikic
Copy link
Member

nikic commented Mar 11, 2017

@krakjoe Can this go into 7.1?

@krakjoe
Copy link
Member

krakjoe commented Mar 11, 2017

@nikic fine for 7.1

@nikic
Copy link
Member

nikic commented Mar 12, 2017

Merged via fbf0e05 into 7.1+.

@nikic nikic closed this Mar 12, 2017
salathe pushed a commit to salathe/phpdoc-en that referenced this pull request Mar 17, 2017
LawnGnome pushed a commit to LawnGnome/phpdoc-en that referenced this pull request Mar 17, 2017
svn2github pushed a commit to svn2github/phpdoc_en that referenced this pull request Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants