diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-10-13 20:03:00 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-10-16 10:56:33 +0200 |
commit | d6264b09665c20ee73d7a1017db0730f9a7c7973 (patch) | |
tree | bb465d70db16df73ce28bcc1fadab1a57dd92c02 /ext/mysqli/mysqli_nonapi.c | |
parent | 3841ea338ef2508d467efef9ec45d03162ba695d (diff) | |
download | php-git-d6264b09665c20ee73d7a1017db0730f9a7c7973.tar.gz |
Verify parameter names of function aliases
Closes GH-6335
Diffstat (limited to 'ext/mysqli/mysqli_nonapi.c')
-rw-r--r-- | ext/mysqli/mysqli_nonapi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index c75527ff93..4ffe1c1307 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -383,6 +383,13 @@ PHP_METHOD(mysqli, __construct) mysqli_common_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, FALSE, TRUE); } +/* {{{ Initialize mysqli and return a resource for use with mysql_real_connect */ +PHP_METHOD(mysqli, init) +{ + php_mysqli_init(INTERNAL_FUNCTION_PARAM_PASSTHRU, TRUE); +} +/* }}} */ + /* {{{ Returns the numerical value of the error message from last connect command */ PHP_FUNCTION(mysqli_connect_errno) { |