From cea4f10f29c1e2ede3e5f42d0843195c17059362 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Sun, 8 Nov 2020 15:27:46 +0000 Subject: [PATCH] mysqli works with objects, not resources We also remove the strange bracketed info on the summary page. Maybe it was meant to say "Not *when* called on an object, as it returns a $mysqli object", but that's not true, because "$mysqli->init()" just returns NULL. Of course, that doesn't make sense, and likely mysqli::init() was supposed to be called statically, but that is no longer supported anyway. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351331 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysqli/mysqli/init.xml | 2 +- reference/mysqli/mysqli/refresh.xml | 2 +- reference/mysqli/summary.xml | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/reference/mysqli/mysqli/init.xml b/reference/mysqli/mysqli/init.xml index 4822584c6b..38d5bff529 100644 --- a/reference/mysqli/mysqli/init.xml +++ b/reference/mysqli/mysqli/init.xml @@ -4,7 +4,7 @@ mysqli::init mysqli_init - Initializes MySQLi and returns a resource for use with mysqli_real_connect() + Initializes MySQLi and returns an object for use with mysqli_real_connect() diff --git a/reference/mysqli/mysqli/refresh.xml b/reference/mysqli/mysqli/refresh.xml index bec555b47a..38139b2155 100644 --- a/reference/mysqli/mysqli/refresh.xml +++ b/reference/mysqli/mysqli/refresh.xml @@ -17,7 +17,7 @@ &style.procedural; boolmysqli_refresh - resourcelink + mysqlilink intoptions diff --git a/reference/mysqli/summary.xml b/reference/mysqli/summary.xml index a68a5cc5d2..7c766a8a8b 100644 --- a/reference/mysqli/summary.xml +++ b/reference/mysqli/summary.xml @@ -210,9 +210,8 @@ mysqli::init mysqli_init N/A - Initializes MySQLi and returns a resource for use with - mysqli_real_connect. [Not called on an object, as it returns a - $mysqli object.] + Initializes MySQLi and returns an object for use with + mysqli_real_connect. mysqli::kill